src/WebBrowserOnVisualStudio/WebBrowser/MainWindowControl.xaml.cs
/// <summary>
/// Handles click on the button by displaying a message box.
/// </summary>
/// <param name="sender">The event sender.</param>
/// <param name="e">The event args.</param>
Handles click on the button by displaying a message box.
Handles click on the button by displaying a message box .
[SuppressMessage("Microsoft.Globalization", "CA1300:SpecifyMessageBoxOptions", Justification = "Sample code")]
        [SuppressMessage("StyleCop.CSharp.NamingRules", "SA1300:ElementMustBeginWithUpperCaseLetter", Justification = "Default event handler naming pattern")]
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show(
                string.Format(System.Globalization.CultureInfo.CurrentUICulture, "Invoked '{0}'", this.ToString()),
                "MainWindow");
        }
[ SuppressMessage ( " " , " " , Justification = " " ) ] [ SuppressMessage ( " " , " " , Justification = " " ) ] private void button1_Click ( object sender , RoutedEventArgs e ) { MessageBox . Show ( string . Format ( System . Globalization . CultureInfo . CurrentUICulture , " " , this . ToString ( ) ) , " " ) ; }
Handles click on the button by displaying a message box.
Handles click on the button by displaying a message box .
sender
object
The event sender.
The event sender .
e
RoutedEventArgs
The event args.
The event args .