// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.VisualStudio.SecretManager.TestExtension { using System.Diagnostics.CodeAnalysis; using System.Windows; using System.Windows.Controls; /// /// Interaction logic for SecretManagerTestControl. /// public partial class SecretManagerTestControl : UserControl { /// /// Initializes a new instance of the class. /// public SecretManagerTestControl() { this.InitializeComponent(); } /// /// Handles click on the button by displaying a message box. /// /// The event sender. /// The event args. [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()), "SecretManagerTest"); } } }