Ejemplo n.º 1
0
        private string GetExeTypeStr(RCProcessScheduler.EExeType type)
        {
            switch (type)
            {
            case RCProcessScheduler.EExeType.StdInput:
                return(LocalizeText.Get(449));

            case RCProcessScheduler.EExeType.ExternalExe:
                return(LocalizeText.Get(448));

            default:
                return(type.ToString());
            }
        }
Ejemplo n.º 2
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;
 }
Ejemplo n.º 3
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;
 }
Ejemplo 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);
 }