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

📄 roomnamequery.h

📁 导致教室占用的变更
💻 H
📖 第 1 页 / 共 2 页
字号:
			// 
			// button1
			// 
			this->button1->Location = System::Drawing::Point(468, 45);
			this->button1->Name = L"button1";
			this->button1->Size = System::Drawing::Size(75, 23);
			this->button1->TabIndex = 2;
			this->button1->Text = L"查询";
			this->button1->UseVisualStyleBackColor = true;
			this->button1->Click += gcnew System::EventHandler(this, &RoomNameQuery::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(272, 48);
			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;
			// 
			// comboBox1
			// 
			this->comboBox1->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->comboBox1->FormattingEnabled = true;
			this->comboBox1->Location = System::Drawing::Point(356, 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, &RoomNameQuery::comboBox1_SelectedIndexChanged);
			// 
			// groupBox1
			// 
			this->groupBox1->BackColor = System::Drawing::Color::Transparent;
			this->groupBox1->Controls->Add(this->label7);
			this->groupBox1->Controls->Add(this->label6);
			this->groupBox1->Controls->Add(this->label5);
			this->groupBox1->Controls->Add(this->label4);
			this->groupBox1->Controls->Add(this->label3);
			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(651, 443);
			this->groupBox1->TabIndex = 3;
			this->groupBox1->TabStop = false;
			this->groupBox1->Text = L"课表查询结果";
			// 
			// label7
			// 
			this->label7->AutoSize = true;
			this->label7->Location = System::Drawing::Point(8, 217);
			this->label7->Name = L"label7";
			this->label7->Size = System::Drawing::Size(49, 28);
			this->label7->TabIndex = 5;
			this->label7->Text = L"晚上第\r\n一大节";
			// 
			// label6
			// 
			this->label6->AutoSize = true;
			this->label6->Location = System::Drawing::Point(8, 176);
			this->label6->Name = L"label6";
			this->label6->Size = System::Drawing::Size(49, 28);
			this->label6->TabIndex = 4;
			this->label6->Text = L"下午第\r\n二大节";
			// 
			// label5
			// 
			this->label5->AutoSize = true;
			this->label5->Location = System::Drawing::Point(8, 137);
			this->label5->Name = L"label5";
			this->label5->Size = System::Drawing::Size(49, 28);
			this->label5->TabIndex = 3;
			this->label5->Text = L"下午第\r\n一大节";
			// 
			// label4
			// 
			this->label4->AutoSize = true;
			this->label4->Location = System::Drawing::Point(8, 96);
			this->label4->Name = L"label4";
			this->label4->Size = System::Drawing::Size(49, 28);
			this->label4->TabIndex = 2;
			this->label4->Text = L"上午第\r\n二大节";
			// 
			// label3
			// 
			this->label3->AutoSize = true;
			this->label3->Font = (gcnew System::Drawing::Font(L"宋体", 10.5F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->label3->Location = System::Drawing::Point(8, 50);
			this->label3->Name = L"label3";
			this->label3->Size = System::Drawing::Size(49, 28);
			this->label3->TabIndex = 1;
			this->label3->Text = L"上午第\r\n一大节";
			// 
			// 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>(192)));
			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::SystemColors::ActiveCaption;
			this->dataGridView1->Location = System::Drawing::Point(70, 22);
			this->dataGridView1->Name = L"dataGridView1";
			this->dataGridView1->RowHeadersWidth = 4;
			this->dataGridView1->RowTemplate->Height = 40;
			this->dataGridView1->Size = System::Drawing::Size(582, 275);
			this->dataGridView1->TabIndex = 0;
			// 
			// Column1
			// 
			dataGridViewCellStyle1->NullValue = nullptr;
			dataGridViewCellStyle1->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->Column1->DefaultCellStyle = dataGridViewCellStyle1;
			this->Column1->DividerWidth = 1;
			this->Column1->HeaderText = L"周一";
			this->Column1->Name = L"Column1";
			this->Column1->ReadOnly = true;
			this->Column1->Width = 82;
			// 
			// Column2
			// 
			dataGridViewCellStyle2->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->Column2->DefaultCellStyle = dataGridViewCellStyle2;
			this->Column2->DividerWidth = 1;
			this->Column2->HeaderText = L"周二";
			this->Column2->Name = L"Column2";
			this->Column2->ReadOnly = true;
			this->Column2->Width = 82;
			// 
			// Column3
			// 
			dataGridViewCellStyle3->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->Column3->DefaultCellStyle = dataGridViewCellStyle3;
			this->Column3->DividerWidth = 1;
			this->Column3->HeaderText = L"周三";
			this->Column3->Name = L"Column3";
			this->Column3->ReadOnly = true;
			this->Column3->Width = 82;
			// 
			// Column4
			// 
			dataGridViewCellStyle4->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->Column4->DefaultCellStyle = dataGridViewCellStyle4;
			this->Column4->DividerWidth = 1;
			this->Column4->HeaderText = L"周四";
			this->Column4->Name = L"Column4";
			this->Column4->ReadOnly = true;
			this->Column4->Width = 82;
			// 
			// Column5
			// 
			dataGridViewCellStyle5->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->Column5->DefaultCellStyle = dataGridViewCellStyle5;
			this->Column5->DividerWidth = 1;
			this->Column5->HeaderText = L"周五";
			this->Column5->Name = L"Column5";
			this->Column5->ReadOnly = true;
			this->Column5->Width = 82;
			// 
			// Column6
			// 
			dataGridViewCellStyle6->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->Column6->DefaultCellStyle = dataGridViewCellStyle6;
			this->Column6->DividerWidth = 1;
			this->Column6->HeaderText = L"周六";
			this->Column6->Name = L"Column6";
			this->Column6->ReadOnly = true;
			this->Column6->Width = 82;
			// 
			// Column7
			// 
			dataGridViewCellStyle7->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->Column7->DefaultCellStyle = dataGridViewCellStyle7;
			this->Column7->DividerWidth = 1;
			this->Column7->HeaderText = L"周日";
			this->Column7->Name = L"Column7";
			this->Column7->ReadOnly = true;
			this->Column7->Width = 82;
			// 
			// RoomNameQuery
			// 
			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(700, 489);
			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"RoomNameQuery";
			this->Text = L"按教室名称查询";
			this->Load += gcnew System::EventHandler(this, &RoomNameQuery::RoomNameQuery_Load);
			this->groupBox2->ResumeLayout(false);
			this->groupBox2->PerformLayout();
			this->groupBox1->ResumeLayout(false);
			this->groupBox1->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->dataGridView1))->EndInit();
			this->ResumeLayout(false);

		}
#pragma endregion

	/*读取教室的选择编号*/
    private: System::Void comboBox1_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) ;

	 /*读取教学楼的编号*/		
    private: System::Void comboBox2_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) ;

	/*对用户输入的选项进行选择,用户的选项包括:教学楼的编号,教室的编号*/
	private: System::Void Button1_Click(System::Object^  sender, System::EventArgs^  e);

	private: System::Void RoomNameQuery_Load(System::Object^  sender, System::EventArgs^  e);

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

⌨️ 快捷键说明

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