Exemple #1
0
        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();
            }
        }
Exemple #2
0
        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();
            }
        }
Exemple #3
0
 public TimerCmd(RunnableModule runnableModule, TimerCmdLine timerCmdLine) : this(runnableModule, timerCmdLine.WaitInMills)
 {
 }