private void ptsToolStrip_TimersSettingsOpened(object sender, PresetEventArgs e) { if (e != null && e.Names != null) { this.timePlanControl.OpenTimerSettings(e.Names); } }
private void ptsToolStrip_TimersSettingsDeleted(object sender, PresetEventArgs e) { if (e.Names == null) { this.ClearPresetFromPreviews(null); return; } foreach (var setting in e.Names) { this.ClearPresetFromPreviews(setting); } }
private void ptsToolStrip_TimersSettingsOpened(object sender, PresetEventArgs e) { if (e.Names.Count > 2) { MessageBox.Show("You may only open 2 settings at a time. Only the first two will be opened"); } this.timerPreview1.Settings = TimerViewSettings.ParseCsv(this.ptsToolStrip.PresetManager[e.Names[0]]); if (e.Names.Count > 1) { this.timerPreview2.Settings = TimerViewSettings.ParseCsv(this.ptsToolStrip.PresetManager[e.Names[1]]); } }
private void ptsToolStrip_PresetsLoaded(object sender, PresetEventArgs e) { if (e != null) { foreach (string name in e.Names) { AddPresetsToPreviews(name); } } }