示例#1
0
        public Time(MainWindow mainWindow, Options options)
        {
            this.mainWindow = mainWindow;
            this.options = options;

            SetTimer();
            timer.Start();
        }
示例#2
0
        private void ExtractOptions(Options options)
        {
            alarmTimeHour.Text = options.alarmTime.StringHour();
            alarmTimeMin.Text = options.alarmTime.StringMin();
            alarmTimeSec.Text = options.alarmTime.StringSec();

            maxIdleHour.Text = options.maxIdle.StringHour();
            maxIdleMin.Text = options.maxIdle.StringMin();
            maxIdleSec.Text = options.maxIdle.StringSec();

            if (options.minimizeToTray == true)
            {
                minimizeToTrayCheckBox.Checked = true;
            }
        }
示例#3
0
 private void StartUp(Options options)
 {
     time = new Time(this, options);
 }
示例#4
0
        public OptionsForm(Options options)
        {
            InitializeComponent();

            ExtractOptions(options);
        }