Пример #1
0
 private void ptsToolStrip_TimersSettingsOpened(object sender, PresetEventArgs e)
 {
     if (e != null && e.Names != null)
     {
         this.timePlanControl.OpenTimerSettings(e.Names);
     }
 }
Пример #2
0
        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);
            }
        }
Пример #3
0
        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]]);
            }
        }
Пример #4
0
 private void ptsToolStrip_PresetsLoaded(object sender, PresetEventArgs e)
 {
     if (e != null)
     {
         foreach (string name in e.Names)
         {
             AddPresetsToPreviews(name);
         }
     }
 }