?? subjectquery.h
字號:
this->Column4 = (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->label2);
this->groupBox2->Controls->Add(this->comboBox2);
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::Bold, 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(544, 98);
this->groupBox2->TabIndex = 4;
this->groupBox2->TabStop = false;
this->groupBox2->Text = L"教室選擇";
this->groupBox2->Enter += gcnew System::EventHandler(this, &SubjectQuery::groupBox2_Enter);
//
// label2
//
this->label2->AutoSize = true;
this->label2->Font = (gcnew System::Drawing::Font(L"宋體", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(134)));
this->label2->Location = System::Drawing::Point(29, 49);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(59, 16);
this->label2->TabIndex = 4;
this->label2->Text = L"教學樓";
this->label2->Click += gcnew System::EventHandler(this, &SubjectQuery::label2_Click);
//
// comboBox2
//
this->comboBox2->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->comboBox2->FormattingEnabled = true;
this->comboBox2->Location = System::Drawing::Point(92, 46);
this->comboBox2->Name = L"comboBox2";
this->comboBox2->Size = System::Drawing::Size(75, 22);
this->comboBox2->TabIndex = 3;
this->comboBox2->SelectedIndexChanged += gcnew System::EventHandler(this, &SubjectQuery::comboBox2_SelectedIndexChanged);
//
// button1
//
this->button1->Location = System::Drawing::Point(438, 44);
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, &SubjectQuery::Button1_Click);
//
// label1
//
this->label1->Font = (gcnew System::Drawing::Font(L"宋體", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(134)));
this->label1->Location = System::Drawing::Point(189, 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(273, 45);
this->comboBox1->Name = L"comboBox1";
this->comboBox1->Size = System::Drawing::Size(146, 22);
this->comboBox1->TabIndex = 0;
this->comboBox1->SelectedIndexChanged += gcnew System::EventHandler(this, &SubjectQuery::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(544, 443);
this->groupBox1->TabIndex = 3;
this->groupBox1->TabStop = false;
this->groupBox1->Text = L"課表查詢結果";
this->groupBox1->Enter += gcnew System::EventHandler(this, &SubjectQuery::groupBox1_Enter);
//
// dataGridView1
//
this->dataGridView1->BackgroundColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(192)),
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^ >(4) {this->Column1,
this->Column2, this->Column3, this->Column4});
this->dataGridView1->GridColor = System::Drawing::SystemColors::ActiveCaption;
this->dataGridView1->Location = System::Drawing::Point(50, 41);
this->dataGridView1->Name = L"dataGridView1";
this->dataGridView1->RowTemplate->Height = 24;
this->dataGridView1->Size = System::Drawing::Size(446, 262);
this->dataGridView1->TabIndex = 0;
this->dataGridView1->CellContentClick += gcnew System::Windows::Forms::DataGridViewCellEventHandler(this, &SubjectQuery::dataGridView1_CellContentClick_1);
//
// Column1
//
dataGridViewCellStyle1->Font = (gcnew System::Drawing::Font(L"宋體", 9, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(134)));
this->Column1->DefaultCellStyle = dataGridViewCellStyle1;
this->Column1->HeaderText = L"教學樓";
this->Column1->Name = L"Column1";
this->Column1->ReadOnly = true;
//
// Column2
//
this->Column2->HeaderText = L"教室名稱";
this->Column2->Name = L"Column2";
//
// Column3
//
this->Column3->HeaderText = L"日期";
this->Column3->Name = L"Column3";
//
// Column4
//
this->Column4->HeaderText = L"時間";
this->Column4->Name = L"Column4";
//
// SubjectQuery
//
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(594, 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"SubjectQuery";
this->Text = L"按教室名稱查詢";
this->Load += gcnew System::EventHandler(this, &SubjectQuery::SubjectQuery_Load);
this->groupBox2->ResumeLayout(false);
this->groupBox2->PerformLayout();
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 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 dataGridView1_CellContentClick(System::Object^ sender, System::Windows::Forms::DataGridViewCellEventArgs^ e) ;
private: System::Void SubjectQuery_Load(System::Object^ sender, System::EventArgs^ e) ;
private: System::Void label2_Click(System::Object^ sender, System::EventArgs^ e) ;
private: System::Void dataGridView1_CellContentClick_1(System::Object^ sender, System::Windows::Forms::DataGridViewCellEventArgs^ e) {
}
};
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -