public StatusForm(SuperSchedulerData data, ScheduleExecutor executor) { InitializeComponent(); buttonPauseShow.Image = Tools.GetIcon(Resources.control_pause, 16); buttonPauseShow.Text = ""; buttonNextSong.Image = Tools.GetIcon(Resources.control_end, 16); buttonNextSong.Text = ""; buttonStartScheduler.Image = Tools.GetIcon(Resources.control_play, 16); buttonStartScheduler.Text = ""; buttonStopNow.Image = Tools.GetIcon(Resources.control_stop, 16); buttonStopNow.Text = ""; buttonStopGracefully.Image = Tools.GetIcon(Resources.clock_stop, 16); buttonStopGracefully.Text = ""; buttonViewLog.Image = Tools.GetIcon(Resources.document_notes, 16); buttonViewLog.Text = ""; buttonPlayShowNow.Image = Tools.GetIcon(Resources.control_play, 16); buttonPlayShowNow.Text = ""; buttonPlayShowGracefully.Image = Tools.GetIcon(Resources.clock_play, 16); buttonPlayShowGracefully.Text = ""; ControlBox = false; SchedulerData = data; Executor = executor; }
public StatusForm(SuperSchedulerData data, ScheduleExecutor executor) { InitializeComponent(); this.ControlBox = false; SchedulerData = data; Executor = executor; }
public StatusForm(SuperSchedulerData data, ScheduleExecutor executor) { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); buttonPauseShow.Image = Tools.GetIcon(Resources.control_pause, 24); buttonPauseShow.Text = ""; buttonNextSong.Image = Tools.GetIcon(Resources.control_end, 24); buttonNextSong.Text = ""; buttonStartScheduler.Image = Tools.GetIcon(Resources.control_play_blue, 24); buttonStartScheduler.Text = ""; buttonStopNow.Image = Tools.GetIcon(Resources.control_stop_blue, 24); buttonStopNow.Text = ""; buttonStopGracefully.Image = Tools.GetIcon(Resources.clock_stop, 24); buttonStopGracefully.Text = ""; buttonViewLog.Image = Tools.GetIcon(Resources.document_notes, 24); buttonViewLog.Text = ""; buttonPlayShowNow.Image = Tools.GetIcon(Resources.control_play, 24); buttonPlayShowNow.Text = ""; buttonPlayShowGracefully.Image = Tools.GetIcon(Resources.clock_play, 24); buttonPlayShowGracefully.Text = ""; ControlBox = false; SchedulerData = data; Executor = executor; }
public override IModuleDataModel Clone() { SuperSchedulerData newData = (SuperSchedulerData)MemberwiseClone(); //newData.ScheduledItems = ScheduledItems.ToList(); return(newData); }
public StatusForm(SuperSchedulerData data, ScheduleExecutor executor) { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; int iconSize = (int)(24 * ScalingTools.GetScaleFactor()); buttonPauseShow.Image = Tools.GetIcon(Resources.control_pause, iconSize); buttonPauseShow.Text = ""; buttonNextSong.Image = Tools.GetIcon(Resources.control_end, iconSize); buttonNextSong.Text = ""; buttonStartScheduler.Image = Tools.GetIcon(Resources.control_play_blue, iconSize); buttonStartScheduler.Text = ""; buttonStopNow.Image = Tools.GetIcon(Resources.control_stop_blue, iconSize); buttonStopNow.Text = ""; buttonStopGracefully.Image = Tools.GetIcon(Resources.clock_stop, iconSize); buttonStopGracefully.Text = ""; buttonViewLog.Image = Tools.GetIcon(Resources.document_notes, iconSize); buttonViewLog.Text = ""; buttonPlayShowNow.Image = Tools.GetIcon(Resources.control_play, iconSize); buttonPlayShowNow.Text = ""; buttonPlayShowGracefully.Image = Tools.GetIcon(Resources.clock_play, iconSize); buttonPlayShowGracefully.Text = ""; ThemeUpdateControls.UpdateControls(this); ControlBox = false; SchedulerData = data; Executor = executor; }
//private static NLog.Logger ScheduleLogging = NLog.LogManager.GetLogger("Scheduler"); public ScheduleExecutor(SuperSchedulerData data) { Data = data; _synchronizationContext = VixenSystem.UIContext; if (Enabled) { Timer.Enabled = true; } }
//private static NLog.Logger ScheduleLogging = NLog.LogManager.GetLogger("Scheduler"); public ScheduleExecutor(SuperSchedulerData data) { Data = data; _synchronizationContext = SynchronizationContext.Current; if (Enabled) { Timer.Enabled = true; } }
public SetupForm(SuperSchedulerData data) { InitializeComponent(); buttonAddSchedule.Image = Tools.GetIcon(Resources.add, 16); buttonAddSchedule.Text = ""; buttonDeleteSchedule.Image = Tools.GetIcon(Resources.delete, 16); buttonDeleteSchedule.Text = ""; buttonEditSchedule.Image = Tools.GetIcon(Resources.pencil, 16); buttonEditSchedule.Text = ""; buttonEditShow.Image = Tools.GetIcon(Resources.table_edit, 16); buttonEditShow.Text = ""; buttonHelp.Image = Tools.GetIcon(Resources.help, 16); Data = data; }
public SetupForm(SuperSchedulerData data) { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); buttonAddSchedule.Image = Tools.GetIcon(Resources.add, 16); buttonAddSchedule.Text = ""; buttonDeleteSchedule.Image = Tools.GetIcon(Resources.delete, 16); buttonDeleteSchedule.Text = ""; buttonEditSchedule.Image = Tools.GetIcon(Resources.pencil, 16); buttonEditSchedule.Text = ""; buttonEditShow.Image = Tools.GetIcon(Resources.table_edit, 16); buttonEditShow.Text = ""; buttonHelp.Image = Tools.GetIcon(Resources.help, 16); Data = data; }
public SetupForm(SuperSchedulerData data) { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; int iconSize = (int)(24 * ScalingTools.GetScaleFactor()); buttonAddSchedule.Image = Tools.GetIcon(Resources.add, iconSize); buttonAddSchedule.Text = ""; buttonDeleteSchedule.Image = Tools.GetIcon(Resources.delete, iconSize); buttonDeleteSchedule.Text = ""; buttonEditSchedule.Image = Tools.GetIcon(Resources.pencil, iconSize); buttonEditSchedule.Text = ""; buttonEditShow.Image = Tools.GetIcon(Resources.table_edit, iconSize); buttonEditShow.Text = ""; buttonHelp.Image = Tools.GetIcon(Resources.help, iconSize); ThemeUpdateControls.UpdateControls(this); Data = data; Closing += SetupForm_Closing; }
public SetupForm(SuperSchedulerData data) { InitializeComponent(); Data = data; }
//private static NLog.Logger ScheduleLogging = NLog.LogManager.GetLogger("Scheduler"); public ScheduleExecutor(SuperSchedulerData data) { Data = data; _synchronizationContext = SynchronizationContext.Current; Timer.Enabled = true; }