private void createMode_Click(object sender, EventArgs e)
        {
            SequenceMode newMode = SequenceMode.createSequenceMode(Storage.sequenceData);

            Storage.sequenceData.SequenceModes.Add(newMode);
            Storage.sequenceData.CurrentMode = newMode;
            newMode.ModeName = "New Mode";
            layoutTheRest();
        }
Esempio n. 2
0
 public void storeMode_Click(object sender, EventArgs e)
 {
     if (Storage.sequenceData.CurrentMode != null)
     {
         SequenceMode newMode = SequenceMode.createSequenceMode(Storage.sequenceData.CurrentMode.ID, Storage.sequenceData);
         Storage.sequenceData.CurrentMode.ModeName        = modeTextBox.Text;
         Storage.sequenceData.CurrentMode.TimestepEntries = newMode.TimestepEntries;
         layoutTheRest();
     }
 }
Esempio n. 3
0
        private void createMode_Click(object sender, EventArgs e)
        {
            int          id      = Storage.sequenceData.GenerateNewModeID();
            SequenceMode newMode = SequenceMode.createSequenceMode(id, Storage.sequenceData);

            Storage.sequenceData.SequenceModes.Add(newMode);
            //Add this mode to the dictionary of pulses
            Storage.sequenceData.NewPulses.Add(newMode, new HashSet <Pulse>());
            Storage.sequenceData.ModeReferences.Add(newMode, new HashSet <SequenceMode>());
            Storage.sequenceData.CurrentMode = newMode;
            newMode.ModeName = "Mode" + id;
            layoutTheRest();
        }