Пример #1
0
 private void BTN_Reset_Click(object sender, EventArgs e)
 {
     if (BTN_Reset.Text == "초기화")
     {
         timer1.Enabled          = false;
         timer2.Enabled          = false;
         Lab_hour.Text           = "";
         label4.Text             = "";
         Lab_hour2.Text          = "";
         label1.Text             = "";
         Lab_minute2.Text        = "";
         label2.Text             = "";
         Lab_sec2.Text           = "";
         label3.Text             = "";
         Lab_milisec2.Text       = "";
         Lab_Section.Text        = "";
         Lab_SectionRecord.Text  = "";
         Lab_Time.Text           = "";
         Text_Section.Text       = "";
         Text_Section_Score.Text = "";
         Text_Time.Text          = "";
         BTN_Reset.Enabled       = false;
         BTN_Stop.Enabled        = false;
         a.Reset_Click();
         if (a.GetHours() > 0)
         {
             Lab_hour.Text = a.GetHours().ToString("00");
             label4.Text   = ":";
         }
         Lab_minute.Text  = a.GetMinutes().ToString("00");
         Lab_sec.Text     = a.GetSeconds().ToString("00");
         Lab_milisec.Text = a.GetMiliseconds().ToString("00");
     }
     else
     {
         Lab_Section.Text       = "구간";
         Lab_SectionRecord.Text = "구간기록";
         Lab_Time.Text          = "전체시간";
         a.IncreaseRecordCount();
         Text_Section.AppendText(a.GetRecordCount().ToString("00") + "\r\n");
         if (a.GetHours2() > 0)
         {
             Text_Section_Score.AppendText(a.GetHours2().ToString("00") + ":");
         }
         Text_Section_Score.AppendText(a.GetMinutes2().ToString("00") + ":" + a.GetSeconds2().ToString("00") + "."
                                       + a.GetMiliseconds2().ToString("00") + "\r\n");
         a.Record_Click();
         if (a.GetHours() > 0)
         {
             Text_Time.AppendText(Lab_hour.Text + ":");
         }
         Text_Time.AppendText(Lab_minute.Text + ":" + Lab_sec.Text + "." + Lab_milisec.Text + "\r\n");
     }
 }
Пример #2
0
 private void BTN_Reset_Click(object sender, EventArgs e)
 {
     if (BTN_Reset.Text == "초기화")
     {
         Lab_hour.Text           = "";
         label4.Text             = "";
         Lab_hour2.Text          = "";
         label1.Text             = "";
         Lab_minute2.Text        = "";
         label2.Text             = "";
         Lab_sec2.Text           = "";
         label3.Text             = "";
         Lab_milisec2.Text       = "";
         Lab_Section.Text        = "";
         Lab_SectionRecord.Text  = "";
         Lab_Time.Text           = "";
         Text_Section.Text       = "";
         Text_Section_Score.Text = "";
         Text_Time.Text          = "";
         a.Reset_Click();
         BTN_Reset.Enabled = false;
         BTN_Stop.Enabled  = false;
         if (a.GetHours() > 0)
         {
             setText_Control(Lab_hour, a.GetHours().ToString("00"));
             setText_Control(label4, ":");
         }
         setText_Control(Lab_minute, a.GetMinutes().ToString("00"));
         setText_Control(Lab_sec, a.GetSeconds().ToString("00"));
         setText_Control(Lab_milisec, a.GetMiliseconds().ToString("00"));
     }
     else
     {
         Lab_Section.Text       = "구간";
         Lab_SectionRecord.Text = "구간기록";
         Lab_Time.Text          = "전체시간";
         Text_Section.AppendText(a.RecordCount().ToString("00") + "\r\n");
         if (a.GetHours2() > 0)
         {
             Text_Section_Score.AppendText(a.GetHours2().ToString("00") + ":");
         }
         Text_Section_Score.AppendText(a.GetMinutes2().ToString("00") + ":" + a.GetSeconds2().ToString("00") + "."
                                       + a.GetMiliseconds2().ToString("00") + "\r\n");
         if (a.GetHours() > 0)
         {
             Text_Time.AppendText(Lab_hour.Text + ":");
         }
         a.Section_Click();
         Text_Time.AppendText(Lab_minute.Text + ":" + Lab_sec.Text + "." + Lab_milisec.Text + "\r\n");
     }
 }