Ejemplo n.º 1
0
 private void ptsToolStrip_TimersSettingsOpened(object sender, PresetEventArgs e)
 {
     if (e != null && e.Names != null)
     {
         this.timePlanControl.OpenTimerSettings(e.Names);
     }
 }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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]]);
            }
        }
Ejemplo n.º 4
0
 private void ptsToolStrip_PresetsLoaded(object sender, PresetEventArgs e)
 {
     if (e != null)
     {
         foreach (string name in e.Names)
         {
             AddPresetsToPreviews(name);
         }
     }
 }