public Time(MainWindow mainWindow, Options options) { this.mainWindow = mainWindow; this.options = options; SetTimer(); timer.Start(); }
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; } }
private void StartUp(Options options) { time = new Time(this, options); }
public OptionsForm(Options options) { InitializeComponent(); ExtractOptions(options); }