📄 subjecttablemanage.h
字号:
#pragma once
#include "FileRW.h"
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 ClassRoom {
/// <summary>
/// Form3 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class SubjectTableManage : public System::Windows::Forms::Form
{
public:
int number;
String^ filePath_Subject ;//装有课表文件的路径
String^ filePath_State ; //装有教室状态信息文件的路径
array<String^,2>^ row0;
ArrayList^ SyllabusList;
ArrayList^ RoomNameList;
array<String^>^ ClassRoomArray;
SubjectTableManage(void)
{
InitializeComponent();
array<String^>^ temp ={"","","","","","",""};
DataGridViewRowCollection^ rows = this->dataGridView1->Rows;
SyllabusList = gcnew ArrayList();
RoomNameList = gcnew ArrayList();
number = 0;
filePath_Subject = gcnew String("");
filePath_State = gcnew String("");
row0 = gcnew array<String^, 2>{
{"","","","","","",""},
{"","","","","","",""},
{"","","","","","",""},
{"","","","","","",""},
{"","","","","","",""}};
for(int i = 0;i<5;i++)
{
for(int j=0;j<7;j++)
{
temp->SetValue(row0->GetValue(i,j),j);
}
rows->Add(temp);
}
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~SubjectTableManage()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::GroupBox^ groupBox2;
private: System::Windows::Forms::ComboBox^ comboBox1;
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Button^ button1;
private: System::Windows::Forms::Button^ button2;
private: System::Windows::Forms::GroupBox^ groupBox1;
private: System::Windows::Forms::DataGridView^ dataGridView1;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column1;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column2;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column3;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column4;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column5;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column6;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ Column7;
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
void InitializeComponent(void)
{
System::Windows::Forms::DataGridViewCellStyle^ dataGridViewCellStyle1 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
System::Windows::Forms::DataGridViewCellStyle^ dataGridViewCellStyle2 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
System::Windows::Forms::DataGridViewCellStyle^ dataGridViewCellStyle3 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
System::Windows::Forms::DataGridViewCellStyle^ dataGridViewCellStyle4 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
System::Windows::Forms::DataGridViewCellStyle^ dataGridViewCellStyle5 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
System::Windows::Forms::DataGridViewCellStyle^ dataGridViewCellStyle6 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
System::Windows::Forms::DataGridViewCellStyle^ dataGridViewCellStyle7 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(SubjectTableManage::typeid));
this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
this->button2 = (gcnew System::Windows::Forms::Button());
this->button1 = (gcnew System::Windows::Forms::Button());
this->label1 = (gcnew System::Windows::Forms::Label());
this->comboBox1 = (gcnew System::Windows::Forms::ComboBox());
this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
this->dataGridView1 = (gcnew System::Windows::Forms::DataGridView());
this->Column1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->Column2 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->Column3 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->Column4 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->Column5 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->Column6 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->Column7 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->groupBox2->SuspendLayout();
this->groupBox1->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView1))->BeginInit();
this->SuspendLayout();
//
// groupBox2
//
this->groupBox2->BackColor = System::Drawing::Color::Transparent;
this->groupBox2->Controls->Add(this->button2);
this->groupBox2->Controls->Add(this->button1);
this->groupBox2->Controls->Add(this->label1);
this->groupBox2->Controls->Add(this->comboBox1);
this->groupBox2->Font = (gcnew System::Drawing::Font(L"宋体", 10.5F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(134)));
this->groupBox2->ForeColor = System::Drawing::SystemColors::Desktop;
this->groupBox2->Location = System::Drawing::Point(25, 13);
this->groupBox2->Name = L"groupBox2";
this->groupBox2->Size = System::Drawing::Size(624, 98);
this->groupBox2->TabIndex = 4;
this->groupBox2->TabStop = false;
this->groupBox2->Text = L"教室选择";
this->groupBox2->Enter += gcnew System::EventHandler(this, &SubjectTableManage::groupBox2_Enter);
//
// button2
//
this->button2->Location = System::Drawing::Point(296, 45);
this->button2->Name = L"button2";
this->button2->Size = System::Drawing::Size(75, 23);
this->button2->TabIndex = 3;
this->button2->Text = L"搜索";
this->button2->UseVisualStyleBackColor = true;
this->button2->Click += gcnew System::EventHandler(this, &SubjectTableManage::Button2_Click);
//
// button1
//
this->button1->Location = System::Drawing::Point(418, 45);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(81, 23);
this->button1->TabIndex = 2;
this->button1->Text = L"保存修改";
this->button1->UseVisualStyleBackColor = true;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -