Esempio n. 1
0
 public SchedulerSettingForm(string _name, RCProcessScheduler.EScheduleType _schdType, DateTime _schdTime, RCProcessScheduler.EExeType _exeType, string _command, bool _bEnabled) : this()
 {
     this.textBoxName.Text                   = _name;
     this.textBoxName.Enabled                = false;
     this.checkBoxDisabled.Checked           = !_bEnabled;
     this.comboBoxScheduleType.SelectedIndex = (int)_schdType;
     this.DateTimeScheduleTime.Value         = _schdTime;
     this.comboBoxExeType.SelectedIndex      = (int)_exeType;
     this.textBoxExe.Text = _command;
 }
Esempio n. 2
0
        public static string GetScheduleTypeStr(RCProcessScheduler.EScheduleType type)
        {
            switch (type)
            {
            case RCProcessScheduler.EScheduleType.AfterBoot:
                return(LocalizeText.Get(445));

            case RCProcessScheduler.EScheduleType.AfterCrach:
                return(LocalizeText.Get(446));

            case RCProcessScheduler.EScheduleType.Once:
                return(LocalizeText.Get(447));

            default:
                return(type.ToString());
            }
        }
Esempio n. 3
0
 private void SetFromVariable(string _name, RCProcessScheduler.EScheduleType _schdType, DateTime _dateTime, RCProcessScheduler.EExeType _exeType, string _command, bool _bEnabled)
 {
     this.Clear();
     if (_command == null)
     {
         _command = string.Empty;
     }
     if (string.IsNullOrEmpty(_name))
     {
         throw new ArgumentException("Name cannot be null or empty string");
     }
     this.Name         = _name;
     this.ScheduleType = _schdType;
     this.ScheduleTime = _dateTime;
     this.ExeType      = _exeType;
     this.Command      = _command;
     this.Enabled      = _bEnabled;
 }
Esempio n. 4
0
 public RCProcessScheduler(string _name, RCProcessScheduler.EScheduleType _schdType, DateTime _dateTime, RCProcessScheduler.EExeType _exeType, string _command, bool _bEnabled) : this()
 {
     this.SetFromVariable(_name, _schdType, _dateTime, _exeType, _command, _bEnabled);
 }