?? subjectquery.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>
/// Form2 摘要
///
/// 警告: 如果更改此類的名稱,則需要更改
/// 與此類所依賴的所有 .resx 文件關聯的托管資源編譯器工具的
/// “資源文件名”屬性。否則,
/// 設計器將不能與此窗體的關聯
/// 本地化資源正確交互。
/// </summary>
public ref class SubjectQuery: public System::Windows::Forms::Form
{
public:
array<String^>^ BuildingArray ;
array<String^,2>^ SubjectArray;
array<String^>^ DateArray;
array<String^>^ TimeSegmentArray;
array<String^>^ FilePath ;//存儲教室狀態信息文件路徑的
array<Int32^>^ ClassRoomNumber;//不同樓的教室的數量,便于依據教室數量創建不同的二叉樹
FileRW^ file ;
int BuildingIndex ;
int SubjectIndex ;
ArrayList^ subjectList ;
SubjectQuery(void)
{
InitializeComponent();
subjectList = gcnew ArrayList();
BuildingIndex = -1;
SubjectIndex = -1;
SubjectArray = gcnew array<String^,2>{
{"CAD/CAM技術","數學分析","高等代數","解析幾何","計算機組成原理","現代分析原理",
"寬帶通信","智能控制","市場營銷學","高級程序設計","管理信息系統","無機化學" ,
"代數與幾何","復合材料結構及應用","私營公司創業之道","計算機實用基礎","生物化學",
"專業英語","市場營銷學","智能儀器原理及應用","概率統計","生產與作業管理","數學軟件",
"計算機實用技術","復變函數與積分變換","模具制造工藝","電工學","財務分析",
"電機與電力拖動基礎","接口技術","大學英語(B)","大學英語(C)","JAVA網絡編程技術",
"固態傳感器","技術經濟","微波技術","成本會計","大氣污染控制工程","海洋生物學",
"國際商法","自動控制原理","環境質量評價","渠道管理","材料化學合成",
"資本運營理論與實務","工藝過程仿真","復變函數與積分變換","編譯原理","生物技術分離工程",
"金屬與塑料成型設備","化工儀表""植物生理學","市場調查與預測","現代漢語","金融學",
"國際經濟合作","工程圖學及CAD","CAD","工程圖學","中國哲學史","虛擬實現技術",
"電化學表面活性劑","電子游戲設計與制作","經貿英語口語","工業控制網絡","金屬腐蝕原理",""},
{"環境微生物","力學","電子對抗原理","經貿英語","光學","數據庫系統",
"汽車工業綜述","鎖相技術及應用","高頻電子","交通仿真技術",
"水污染控制工程","高級語言程序設計","高級財務會計","水泵與泵站",
"網站建設與網頁","韓國語選修","日語","數據結構課程設計",
"軟件工程課程設計","微機械電子系統技術","自動檢測技術","物理光學",
"專業外語","CIS策劃","國際企業管理","單片機原理","大學英語(A)","大學英語(B)",
"交通規劃與設計","計算機動畫軟件系統","量子力學","影視合成技術及軟件",
"平面設計技術","計算機動畫軟件系統","電磁場與電磁波","資產評估學","道路勘測設計",
"汽車工業綜述","多媒體技術基礎","防火墻與入侵檢測技術","內燃機設計","衛星定位導航",
"陶瓷材料","證券理論與實務","數字信號處理","金屬學原理","世界貿易組織專題",
"稅法與稅收籌劃","微電子器件原理","信息光學導論","編譯原理","金屬工藝學","工程力學",
"第一外國語","中國海關通關實務","汽車運用工程","交通運輸工程導論","會計信息系統",
"電化學測量","可編程邏輯電路","汽車診斷技術","工程制圖基礎","模式識別概論","財務管理","人力資源管理",""},
{"工科數學分析","數值分析","大學物理(A)","大學物理(C)","思想道德修養",
"物理化學","企業資源計劃系統","互換性及測量技術","有機化學","快速成型和反求技術",
"工程力學(B)","小波分析","控制系統數字仿真","接口技術","復變函數與積分變換",
"流體力學","信號與系統","面向網絡編程技術","機械設計基礎","常微分方程",
"計算機組成原理","近世代數","近代史綱要","電路","計量經濟學",
"Java語言基礎","計算機體系結構","生物化學","管理學概論","C語言程序設計",""},
{"數學分析","成型專業英語Ⅱ","現代數學基礎","自動控制理論",
"移動通信","C語言程序設計","概率統計","系統仿真技術",
"數字圖像處理","電路","生產與作業管理","電工學Ⅰ",
"項目管理學","計算機多媒體技術","復變函數與積分變換","藥用生物資源",
"汽車車身設計","高級語言程序設計","資本運營理論與實務",
"有限元分析及應用","計算機組成原理","海洋微生物學","機械系統設計",
"金屬材料及熱處理","機電系統計算機控制",""}
};
BuildingArray = gcnew array<String^>{"N 樓","H 樓","M 樓","G 樓"};
DateArray = gcnew array<String^>{"星期一","星期二","星期三","星期四",
"星期五","星期六","星期日"};
TimeSegmentArray = gcnew array<String^>{"上午第一大節","上午第二大節",
"下午第一大節","下午第二大節","晚上第一大節"};
this->comboBox2->Items->AddRange( BuildingArray );
array<String^>^ temp ={"","","","","","",""};
file = gcnew FileRW();
FilePath = gcnew array<String^>{".\\Data\\N_RoomSubject.txt",
".\\Data\\H_RoomSubject.txt",
".\\Data\\M_RoomSubject.txt",
".\\Data\\G_RoomSubject.txt"};
ClassRoomNumber = gcnew array<Int32^>{ 42,35,20,5};
//
//TODO: 在此處添加構造函數代碼
//
}
protected:
/// <summary>
/// 清理所有正在使用的資源。
/// </summary>
~SubjectQuery()
{
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::Label^ label2;
private: System::Windows::Forms::ComboBox^ comboBox2;
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:
/// <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::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(SubjectQuery::typeid));
this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
this->label2 = (gcnew System::Windows::Forms::Label());
this->comboBox2 = (gcnew System::Windows::Forms::ComboBox());
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());
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -