Exemplo n.º 1
0
 void keyboardHook_KeyUp(object sender, KeyEventArgs e)
 {
     //저장된 설정과 비교
     if (e.KeyCode.ToString().Equals(processor.HotKey[0]) &&
         e.Shift.ToString().Equals(processor.HotKey[1]) &&
         e.Control.ToString().Equals(processor.HotKey[2]) &&
         e.Alt.ToString().Equals(processor.HotKey[3]))
     {
         MessageBox.Show("단축키 기능 실행");
         CountDownForm cdf = new CountDownForm(processor);
         cdf.ShowDialog(this);
     }
 }
Exemplo n.º 2
0
 //매일 종료 타이머 몸체
 void dailyRunCountDown(object sender, EventArgs e)
 {
     dailyRunCount--;
     of.ToolLabelDaily.Text = "매일 종료 : " +
                              (int)(dailyRunCount / (60 * 60)) + "H " +        //시
                              (int)((dailyRunCount % (60 * 60)) / 60) + "M " + //분
                              (int)(dailyRunCount % 60) + "S";                 //초
     if (dailyRunCount <= 0)
     {
         dailyRunTimer.Stop();
         CountDownForm cdf = new CountDownForm(this, MODE.Turnoff);
         cdf.Show();
     }
 }
Exemplo n.º 3
0
        //설정 모드 바로 실행
        private void toolStripMenuItemExecute_Click(object sender, EventArgs e)
        {
            CountDownForm cdf = new CountDownForm(processor);

            cdf.ShowDialog(this);
        }