Page 645 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 645

listView1.Items.Clear();

                                  textBox1.ReadOnly = true;


                                  timer1.Enabled  =  false;

                                  button1.Enabled  = false;
                                  checkBox1.Enabled = false;
                             }
                             catch (MySqlException e_4)
                             {

                                  MessageBox.Show(e_4.Message);
                             }
                        }



                        //Timer 스크롤  이동시
                        private  void trackBar1_Scroll(object  sender,  EventArgs  e)
                        {
                                     timer1.Interval  =  trackBar1.Value  *  1000;

                             label6.Text  = trackBar1.Value +  "  Seconds";
                             if  (trackBar1.Value >=  60)
                             {
                                  label6.Text = "1  Minute";

                             }
                        }


                             //timer1.Enabled=true;  일  때  일정  시간마다  타이머  발동시
                        private  void timer1_Tick(object  sender,  EventArgs  e)

                        {
                             string  command  =  "";



                             //Filter에  맞게  명령어를  바꿈
                             if  (radioButton1.Checked  ==  true)
                             {
                                  command  = "select  * from  work  order  by  no  asc;";
                             }

                             else  if  (radioButton3.Checked ==  true)
                             {
                                  command  = "select  * from  work  order  by  whend  asc;";



                                                         -  638  -
   640   641   642   643   644   645   646   647   648   649   650