• C#

    call click event in c#

    You can easily do it by the following piece of code: button.PerformClick(); 2. private void Some_Method() //this method is called { SubGraphButton_Click(new object(), new EventArgs()); } 3. private void ChildNode_Click(object sender, RoutedEventArgs args) { SubGraphButton_Click(sender, args); }

  • C#

    Get Indian Standard Time(IST) in c#?

    This method to Get current date-time from UTC and saving through Entity Framework.