⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subjecttablemanage.h

📁 导致教室占用的变更
💻 H
📖 第 1 页 / 共 2 页
字号:
			this->button1->Click += gcnew System::EventHandler(this, &SubjectTableManage::Button1_Click);
			// 
			// label1
			// 
			this->label1->Font = (gcnew System::Drawing::Font(L"宋体", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->label1->Location = System::Drawing::Point(64, 49);
			this->label1->Name = L"label1";
			this->label1->Size = System::Drawing::Size(79, 19);
			this->label1->TabIndex = 1;
			this->label1->Text = L"教室编号";
			this->label1->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
			this->label1->Click += gcnew System::EventHandler(this, &SubjectTableManage::label1_Click);
			// 
			// comboBox1
			// 
			this->comboBox1->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->comboBox1->FormattingEnabled = true;
			this->comboBox1->Location = System::Drawing::Point(152, 45);
			this->comboBox1->Name = L"comboBox1";
			this->comboBox1->Size = System::Drawing::Size(72, 22);
			this->comboBox1->TabIndex = 0;
			this->comboBox1->SelectedIndexChanged += gcnew System::EventHandler(this, &SubjectTableManage::comboBox1_SelectedIndexChanged);
			// 
			// groupBox1
			// 
			this->groupBox1->BackColor = System::Drawing::Color::Transparent;
			this->groupBox1->Controls->Add(this->dataGridView1);
			this->groupBox1->Font = (gcnew System::Drawing::Font(L"宋体", 10.5F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->groupBox1->Location = System::Drawing::Point(25, 136);
			this->groupBox1->Name = L"groupBox1";
			this->groupBox1->Size = System::Drawing::Size(624, 288);
			this->groupBox1->TabIndex = 3;
			this->groupBox1->TabStop = false;
			this->groupBox1->Text = L"课表查询结果";
			this->groupBox1->Enter += gcnew System::EventHandler(this, &SubjectTableManage::groupBox1_Enter);
			// 
			// dataGridView1
			// 
			this->dataGridView1->BackgroundColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(255)), 
				static_cast<System::Int32>(static_cast<System::Byte>(255)), static_cast<System::Int32>(static_cast<System::Byte>(128)));
			this->dataGridView1->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize;
			this->dataGridView1->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^  >(7) {this->Column1, 
				this->Column2, this->Column3, this->Column4, this->Column5, this->Column6, this->Column7});
			this->dataGridView1->GridColor = System::Drawing::Color::Purple;
			this->dataGridView1->Location = System::Drawing::Point(41, 22);
			this->dataGridView1->Name = L"dataGridView1";
			this->dataGridView1->RowHeadersWidth = 4;
			this->dataGridView1->RowTemplate->Height = 30;
			this->dataGridView1->Size = System::Drawing::Size(583, 220);
			this->dataGridView1->TabIndex = 0;
			this->dataGridView1->CellContentClick += gcnew System::Windows::Forms::DataGridViewCellEventHandler(this, &SubjectTableManage::dataGridView1_CellContentClick);
			// 
			// Column1
			// 
			dataGridViewCellStyle1->NullValue = nullptr;
			dataGridViewCellStyle1->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->Column1->DefaultCellStyle = dataGridViewCellStyle1;
			this->Column1->HeaderText = L"周一";
			this->Column1->Name = L"Column1";
			this->Column1->Width = 82;
			// 
			// Column2
			// 
			dataGridViewCellStyle2->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->Column2->DefaultCellStyle = dataGridViewCellStyle2;
			this->Column2->HeaderText = L"周二";
			this->Column2->Name = L"Column2";
			this->Column2->Width = 82;
			// 
			// Column3
			// 
			dataGridViewCellStyle3->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->Column3->DefaultCellStyle = dataGridViewCellStyle3;
			this->Column3->HeaderText = L"周三";
			this->Column3->Name = L"Column3";
			this->Column3->Width = 82;
			// 
			// Column4
			// 
			dataGridViewCellStyle4->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->Column4->DefaultCellStyle = dataGridViewCellStyle4;
			this->Column4->HeaderText = L"周四";
			this->Column4->Name = L"Column4";
			this->Column4->Width = 82;
			// 
			// Column5
			// 
			dataGridViewCellStyle5->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->Column5->DefaultCellStyle = dataGridViewCellStyle5;
			this->Column5->HeaderText = L"周五";
			this->Column5->Name = L"Column5";
			this->Column5->Width = 82;
			// 
			// Column6
			// 
			dataGridViewCellStyle6->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->Column6->DefaultCellStyle = dataGridViewCellStyle6;
			this->Column6->HeaderText = L"周六";
			this->Column6->Name = L"Column6";
			this->Column6->Width = 82;
			// 
			// Column7
			// 
			dataGridViewCellStyle7->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->Column7->DefaultCellStyle = dataGridViewCellStyle7;
			this->Column7->HeaderText = L"周日";
			this->Column7->Name = L"Column7";
			this->Column7->Width = 82;
			// 
			// SubjectTableManage
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"$this.BackgroundImage")));
			this->ClientSize = System::Drawing::Size(685, 436);
			this->Controls->Add(this->groupBox1);
			this->Controls->Add(this->groupBox2);
			this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedSingle;
			this->KeyPreview = true;
			this->Location = System::Drawing::Point(1, 1);
			this->Name = L"SubjectTableManage";
			this->Text = L"课表管理";
			this->Load += gcnew System::EventHandler(this, &SubjectTableManage::Form3_Load);
			this->groupBox2->ResumeLayout(false);
			this->groupBox1->ResumeLayout(false);
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->dataGridView1))->EndInit();
			this->ResumeLayout(false);

		}
#pragma endregion


	private: System::Void groupBox1_Enter(System::Object^  sender, System::EventArgs^  e) ;
    private: System::Void groupBox2_Enter(System::Object^  sender, System::EventArgs^  e) ;
	private: System::Void dataGridView1_CellContentClick(System::Object^  sender, System::Windows::Forms::DataGridViewCellEventArgs^  e) ;
	private: System::Void Form3_Load(System::Object^  sender, System::EventArgs^  e) ;

	 /*选择教室编号*/
    private: System::Void comboBox1_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e);
	
	 /*用户在DataView的容器中进行课表的修改,然后按此键进行保存*/
	private: System::Void Button1_Click(System::Object^  sender, System::EventArgs^  e) ;

    /*从文件中读入教室的信息,包括教室名字和课标信息*/
	public :  void  ReadSyllabus();
	public :  void  ReadRoomName() ;

	/*搜索函数,在用户选择了教室后,就能把课表的信息读入到界面中*/
	private: System::Void Button2_Click(System::Object^  sender, System::EventArgs^  e);

    /*在每次用户进行课表的修改后,使得教室是否被占用的状态的初始值发生了变化,所以
	  要在每次改变课表信息后进行初始值的更改*/
	public :  void  WriteClassRoomState();

		/// <summary>
		/// 以下的函数的作用是对使用同一个模板的信息左不同的设置 : 
	    ///
		/// 1)更改GroupBox中的 Text 的字符串 : ChangeGroupBox1(String^),ChangeGroupBox2(String^)
		/// 2)向 Combox 中添加信息,不同教学楼的教室的名称:  AddComBoxItems( array<String^>^)
		/// 3) ....
	    ///
		/// </summary>
	public :  void  ChangeGroupBox1(String^ text) ;
	public :  void  ChangeGroupBox2(String^ text) ;
	public :  void  AddComBoxItems( array<String^>^ newArray ) ;

private: System::Void label1_Click(System::Object^  sender, System::EventArgs^  e) {
		 }
};
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -