📄 unprotectform.cs
字号:
//***************************************************************************
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This code sample is provided "AS IS" without warranty of any kind.
//
//***************************************************************************
#region Using directives
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
#endregion
namespace DocumentProtector
{
/// <summary>
/// Dialog that can be used to get the
/// password to unprotect a documents with.
/// </summary>
partial class UnprotectForm : Form
{
public UnprotectForm()
{
InitializeComponent();
}
/// <summary>
/// The user indicated password.
/// </summary>
/// <value>Returns the password that the user typed in.</value>
internal string Password
{
get
{
return this.passwordTextbox.Text;
}
}
/// <summary>
/// Handles the Cancel Button Click event.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">EventArgs that contain event data.</param>
private void cancelButton_Click(object sender, System.EventArgs e)
{
// Clear out the password that the user may have typed
// into the textbox since they canceled out of the dialog.
this.passwordTextbox.Text = String.Empty;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -