public EditMultipassTimerMetro(TimerCmdLine timerCmdLine) { InitializeComponent(); //this.ReadLanguageResources(); if (timerCmdLine == null) { isCreating = true; this.timerCmdLine = new TimerCmdLine(); this.timerCmdLine.WaitInMills = Properties.Settings.Default.MultipassTimer; } else { isCreating = false; this.timerCmdLine = timerCmdLine; } tbWaitInMills.Text = this.timerCmdLine.WaitInMills.ToString(); tbWaitInMills.SelectAll(); if (this.timerCmdLine != null) { this.timerCmdLineBackUp = (TimerCmdLine)this.timerCmdLine.Clone(); } }
public EditTimerForm(TimerCmdLine timerCmdLine) { InitializeComponent(); this.ReadLanguageResources(); this.StartPosition = FormStartPosition.CenterParent; if (timerCmdLine == null) { isCreating = true; this.timerCmdLine = new TimerCmdLine(); this.timerCmdLine.WaitInMills = Properties.Settings.Default.Timer; } else { isCreating = false; this.timerCmdLine = timerCmdLine; } tbWaitInMills.Text = this.timerCmdLine.WaitInMills.ToString(); tbWaitInMills.SelectAll(); if (this.timerCmdLine != null) { this.timerCmdLineBackUp = (TimerCmdLine)this.timerCmdLine.Clone(); } }
public TimerCmd(RunnableModule runnableModule, TimerCmdLine timerCmdLine) : this(runnableModule, timerCmdLine.WaitInMills) { }