📄 选课结果.h
字号:
#pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
namespace course {
/// <summary>
/// 选课结果 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class 选课结果 : public System::Windows::Forms::Form
{
public:
选课结果(String^ text1,bool radioButtonvalue,String^ text2,String^ text3)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
this->label5->Text=text1;
if(radioButtonvalue)
{
this->label6->Text="男";
}
else
this->label6->Text="女";
this->label7->Text=text2;
this->label2->Text=text3;
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~选课结果()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Label^ labelname;
private: System::Windows::Forms::Label^ labelsex;
private: System::Windows::Forms::Label^ labelhome;
protected:
protected:
private: System::Windows::Forms::Label^ label5;
private: System::Windows::Forms::Label^ label6;
private: System::Windows::Forms::Label^ label7;
private: System::Windows::Forms::Button^ button1;
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Label^ label2;
protected:
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
void InitializeComponent(void)
{
this->labelname = (gcnew System::Windows::Forms::Label());
this->labelsex = (gcnew System::Windows::Forms::Label());
this->labelhome = (gcnew System::Windows::Forms::Label());
this->label5 = (gcnew System::Windows::Forms::Label());
this->label6 = (gcnew System::Windows::Forms::Label());
this->label7 = (gcnew System::Windows::Forms::Label());
this->button1 = (gcnew System::Windows::Forms::Button());
this->label1 = (gcnew System::Windows::Forms::Label());
this->label2 = (gcnew System::Windows::Forms::Label());
this->SuspendLayout();
//
// labelname
//
this->labelname->AutoSize = true;
this->labelname->Location = System::Drawing::Point(68, 20);
this->labelname->Name = L"labelname";
this->labelname->Size = System::Drawing::Size(41, 12);
this->labelname->TabIndex = 0;
this->labelname->Text = L"姓名:";
//
// labelsex
//
this->labelsex->AutoSize = true;
this->labelsex->Location = System::Drawing::Point(68, 57);
this->labelsex->Name = L"labelsex";
this->labelsex->Size = System::Drawing::Size(41, 12);
this->labelsex->TabIndex = 1;
this->labelsex->Text = L"性别:";
//
// labelhome
//
this->labelhome->AutoSize = true;
this->labelhome->Location = System::Drawing::Point(68, 99);
this->labelhome->Name = L"labelhome";
this->labelhome->Size = System::Drawing::Size(41, 12);
this->labelhome->TabIndex = 2;
this->labelhome->Text = L"院系:";
//
// label5
//
this->label5->AutoSize = true;
this->label5->Location = System::Drawing::Point(127, 20);
this->label5->Name = L"label5";
this->label5->Size = System::Drawing::Size(0, 12);
this->label5->TabIndex = 4;
this->label5->Click += gcnew System::EventHandler(this, &选课结果::label5_Click);
//
// label6
//
this->label6->AutoSize = true;
this->label6->Location = System::Drawing::Point(127, 57);
this->label6->Name = L"label6";
this->label6->Size = System::Drawing::Size(0, 12);
this->label6->TabIndex = 5;
//
// label7
//
this->label7->AutoSize = true;
this->label7->Location = System::Drawing::Point(127, 99);
this->label7->Name = L"label7";
this->label7->Size = System::Drawing::Size(0, 12);
this->label7->TabIndex = 6;
//
// button1
//
this->button1->Location = System::Drawing::Point(190, 233);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(75, 23);
this->button1->TabIndex = 8;
this->button1->Text = L"退出";
this->button1->UseVisualStyleBackColor = true;
this->button1->Click += gcnew System::EventHandler(this, &选课结果::button1_Click);
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location = System::Drawing::Point(68, 127);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(53, 12);
this->label1->TabIndex = 9;
this->label1->Text = L"所选课:";
//
// label2
//
this->label2->BorderStyle = System::Windows::Forms::BorderStyle::Fixed3D;
this->label2->Location = System::Drawing::Point(70, 149);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(169, 81);
this->label2->TabIndex = 10;
this->label2->Text = L"label2";
//
// 选课结果
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(292, 268);
this->Controls->Add(this->label2);
this->Controls->Add(this->label1);
this->Controls->Add(this->button1);
this->Controls->Add(this->label7);
this->Controls->Add(this->label6);
this->Controls->Add(this->label5);
this->Controls->Add(this->labelhome);
this->Controls->Add(this->labelsex);
this->Controls->Add(this->labelname);
this->Name = L"选课结果";
this->Text = L"选课结果";
this->Load += gcnew System::EventHandler(this, &选课结果::选课结果_Load);
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void 选课结果_Load(System::Object^ sender, System::EventArgs^ e) {
//this->CallMessage(sender,e);
}
private: System::Void label5_Click(System::Object^ sender, System::EventArgs^ e) {
}
//public: event System::EventHandler^ CallMessage;
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
Application::Exit();
}
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -