public FScheduleEvent ConvertToType(FScheduleEvent scheduleEvent, EScheduleEventType type) { FScheduleEvent resultEvent = _schedule.Console.Factory.CreateEvent(type); resultEvent.Assign(scheduleEvent); Replace(scheduleEvent, resultEvent); return(resultEvent); }
public void Assign(FScheduleEvent scheduleEvent) { _events = scheduleEvent._events; _type = scheduleEvent._type; _valid = scheduleEvent._valid; _fileName = scheduleEvent._fileName; _tag = scheduleEvent._tag; }
public virtual void LoadConfig(FXmlNode config) { if (config.Contains(PTY_TYPE)) { _type = REnum.ToValue <EScheduleEventType>(config[PTY_TYPE]); } if (config.Contains(PTY_VALID)) { _valid = config.GetBoolean(PTY_VALID); } if (config.Contains(PTY_FILE)) { _fileName = config[PTY_FILE]; } }
public FScheduleEvent ConvertToType(EScheduleEventType type) { return(_events.ConvertToType(this, type)); }
public FScheduleEvent CreateEvent(EScheduleEventType eventType) { return(CreateInstance <FScheduleEvent>(FScheduleEvent.NAME, eventType.ToString())); }