📄 changemanagerinfo.h
字号:
#pragma once
using namespace System;
using namespace System::IO;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
namespace ClassRoom {
/// <summary>
/// ChangeManagerInfo 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class ChangeManagerInfo : public System::Windows::Forms::Form
{
public:
ChangeManagerInfo(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~ChangeManagerInfo()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::GroupBox^ groupBox1;
private: System::Windows::Forms::TextBox^ UserName;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::TextBox^ UserPassWord;
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Button^ button1;
private: System::Windows::Forms::Button^ button2;
private: System::Windows::Forms::Button^ button3;
protected:
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(ChangeManagerInfo::typeid));
this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
this->label2 = (gcnew System::Windows::Forms::Label());
this->UserPassWord = (gcnew System::Windows::Forms::TextBox());
this->label1 = (gcnew System::Windows::Forms::Label());
this->UserName = (gcnew System::Windows::Forms::TextBox());
this->button1 = (gcnew System::Windows::Forms::Button());
this->button2 = (gcnew System::Windows::Forms::Button());
this->button3 = (gcnew System::Windows::Forms::Button());
this->groupBox1->SuspendLayout();
this->SuspendLayout();
//
// groupBox1
//
this->groupBox1->BackColor = System::Drawing::Color::Transparent;
this->groupBox1->Controls->Add(this->label2);
this->groupBox1->Controls->Add(this->UserPassWord);
this->groupBox1->Controls->Add(this->label1);
this->groupBox1->Controls->Add(this->UserName);
this->groupBox1->Location = System::Drawing::Point(12, 12);
this->groupBox1->Name = L"groupBox1";
this->groupBox1->Size = System::Drawing::Size(304, 132);
this->groupBox1->TabIndex = 0;
this->groupBox1->TabStop = false;
this->groupBox1->Text = L"管理员个人信息修改";
//
// label2
//
this->label2->AutoSize = true;
this->label2->Location = System::Drawing::Point(39, 83);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(77, 12);
this->label2->TabIndex = 3;
this->label2->Text = L"新的用户密码";
//
// UserPassWord
//
this->UserPassWord->Location = System::Drawing::Point(128, 78);
this->UserPassWord->Name = L"UserPassWord";
this->UserPassWord->Size = System::Drawing::Size(129, 21);
this->UserPassWord->TabIndex = 2;
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location = System::Drawing::Point(39, 37);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(77, 12);
this->label1->TabIndex = 1;
this->label1->Text = L"新的用户名称";
//
// UserName
//
this->UserName->Location = System::Drawing::Point(128, 32);
this->UserName->Name = L"UserName";
this->UserName->Size = System::Drawing::Size(129, 21);
this->UserName->TabIndex = 0;
//
// button1
//
this->button1->BackColor = System::Drawing::Color::Transparent;
this->button1->FlatStyle = System::Windows::Forms::FlatStyle::Popup;
this->button1->ForeColor = System::Drawing::Color::Black;
this->button1->Location = System::Drawing::Point(19, 173);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(75, 23);
this->button1->TabIndex = 1;
this->button1->Text = L"保存修改";
this->button1->UseVisualStyleBackColor = false;
this->button1->Click += gcnew System::EventHandler(this, &ChangeManagerInfo::SaveChangeButton_Click);
//
// button2
//
this->button2->BackColor = System::Drawing::Color::Transparent;
this->button2->FlatStyle = System::Windows::Forms::FlatStyle::Popup;
this->button2->Location = System::Drawing::Point(127, 173);
this->button2->Name = L"button2";
this->button2->Size = System::Drawing::Size(75, 23);
this->button2->TabIndex = 2;
this->button2->Text = L"重新填写";
this->button2->UseVisualStyleBackColor = false;
this->button2->Click += gcnew System::EventHandler(this, &ChangeManagerInfo::NewChangeButton_Click);
//
// button3
//
this->button3->BackColor = System::Drawing::Color::Transparent;
this->button3->FlatStyle = System::Windows::Forms::FlatStyle::Popup;
this->button3->Location = System::Drawing::Point(229, 173);
this->button3->Name = L"button3";
this->button3->Size = System::Drawing::Size(75, 23);
this->button3->TabIndex = 3;
this->button3->Text = L"退出";
this->button3->UseVisualStyleBackColor = false;
this->button3->Click += gcnew System::EventHandler(this, &ChangeManagerInfo::ExitButton_Click);
//
// ChangeManagerInfo
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->AutoSizeMode = System::Windows::Forms::AutoSizeMode::GrowAndShrink;
this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"$this.BackgroundImage")));
this->ClientSize = System::Drawing::Size(328, 223);
this->Controls->Add(this->button3);
this->Controls->Add(this->button2);
this->Controls->Add(this->button1);
this->Controls->Add(this->groupBox1);
this->MaximizeBox = false;
this->Name = L"ChangeManagerInfo";
this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;
this->Text = L"管理员信息更改";
this->Load += gcnew System::EventHandler(this, &ChangeManagerInfo::ChangeManagerInfo_Load);
this->groupBox1->ResumeLayout(false);
this->groupBox1->PerformLayout();
this->ResumeLayout(false);
}
#pragma endregion
//管理员输入新的信息后进行保存
private: System::Void SaveChangeButton_Click(System::Object^ sender, System::EventArgs^ e);
//管理员重新填写用户信息
private: System::Void NewChangeButton_Click(System::Object^ sender, System::EventArgs^ e);
//退出操作
private: System::Void ExitButton_Click(System::Object^ sender, System::EventArgs^ e) ;
private: System::Void ChangeManagerInfo_Load(System::Object^ sender, System::EventArgs^ e);
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -