private void MainForm_Load(object sender, EventArgs e) { DB_control = new DB_Controller(); //스레드 작업 도중 취소 가능 여부 bgwProcess_DB_select.WorkerSupportsCancellation = true; //스레드가 run시에 호출되는 핸들러 등록 bgwProcess_DB_select.DoWork += new DoWorkEventHandler(DB_select_DoWork); //스레드 작업 도중 취소 가능 여부 bgwProcess_save_data.WorkerSupportsCancellation = true; //스레드가 run시에 호출되는 핸들러 등록 bgwProcess_save_data.DoWork += new DoWorkEventHandler(save_data_Dowork); //스레드 작업 도중 취소 가능 여부 bgwProcess_show_Graph.WorkerSupportsCancellation = true; //스레드가 run시에 호출되는 핸들러 등록 bgwProcess_show_Graph.DoWork += new DoWorkEventHandler(show_Graph_Dowork); User_Tab.DrawMode = TabDrawMode.OwnerDrawFixed; loading = new Loading_Form("데이터 조회 중..."); Deserialize(); }
private void btn_Show_Graph_Click(object sender, EventArgs e) { if (!bgwProcess_show_Graph.IsBusy) { bgwProcess_show_Graph.RunWorkerAsync(); loading_Form = new Loading_Form("데이터 처리중 입니다."); loading_Form.ShowDialog(); } }