Пример #1
0
        private void setTimer_Click(object sender, EventArgs e)
        {
            if (cs == null)
            {
                cs = new ClockSetting(this);
            }

            cs.Show();
            cs.Focus();
        }
Пример #2
0
        private void setTimer_Click(object sender, EventArgs e)
        {
            ClockSetting cs = new ClockSetting();

            cs.textColor   = timeLabel.ForeColor;
            cs.timeDisplay = timeDisplay;   // 현재 설정을 다시 표시

            if (cs.ShowDialog() == DialogResult.OK)
            {
                timeLabel.ForeColor = cs.textColor;
                timeDisplay         = cs.timeDisplay;
            }
        }
Пример #3
0
        private void setTimer_Click(object sender, EventArgs e)
        {
            //ClockSetting cs = new ClockSetting();

            //cs.textColor = timeLabel.ForeColor;
            //cs.timeDisplay = timeDisplay;   // 현재 설정을 다시 표시

            //cs.Show();  // 모들리스 (클릭하면 창이 무한대로 뜰거임)

            //if(cs.ShowDialog() == DialogResult.OK)
            //{
            //    timeLabel.ForeColor = cs.textColor;
            //    timeDisplay = cs.timeDisplay;
            //}

            if(cs == null)
            {
                cs = new ClockSetting(this);
            }

            cs.Show();
            cs.Focus();
        }