DotNetTools/tooling/Microsoft.VisualStudio.Secr.../SecretManagerTestControl.xa...

38 строки
1.5 KiB
C#

// 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;
/// <summary>
/// Interaction logic for SecretManagerTestControl.
/// </summary>
public partial class SecretManagerTestControl : UserControl
{
/// <summary>
/// Initializes a new instance of the <see cref="SecretManagerTestControl"/> class.
/// </summary>
public SecretManagerTestControl()
{
this.InitializeComponent();
}
/// <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>
[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");
}
}
}