public EditTimerMetro(NormalTimerCmdLine timerCmdLine) { InitializeComponent(); //this.ReadLanguageResources(); if (timerCmdLine == null) { isCreating = true; this.timerCmdLine = new NormalTimerCmdLine(); this.timerCmdLine.WaitInMills = Properties.Settings.Default.NormalTimer; } else { isCreating = false; this.timerCmdLine = timerCmdLine; } tbWaitInMills.Text = this.timerCmdLine.WaitInMills.ToString(); tbWaitInMills.SelectAll(); if (this.timerCmdLine != null) { this.timerCmdLineBackUp = (NormalTimerCmdLine)this.timerCmdLine.Clone(); } }
public NormalTimerCmd(RunnableModule runnableModule, NormalTimerCmdLine timerCmdLine) : this(runnableModule, timerCmdLine.WaitInMills) { }