Esempio n. 1
0
 private void moodList_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (moodsCmbBox.SelectedItem != null)
     {
         currentMood            = (MoodSeq)moodsCmbBox.SelectedItem;
         current_moodSeqUI.Mood = currentMood;
         current_moodSeqUI.Invalidate();
         this.Invalidate();
     }
 }
Esempio n. 2
0
 private void InitMoodSeq()
 {
     this.current_moodSeqUI           = new DoubleRainbow.MoodSeqUI();
     this.current_moodSeqUI.BackColor = System.Drawing.Color.White;
     this.current_moodSeqUI.Location  = new System.Drawing.Point(12, 50);
     this.current_moodSeqUI.Name      = "_moodSeq";
     this.current_moodSeqUI.Size      = new System.Drawing.Size(260, 26);
     this.current_moodSeqUI.TabIndex  = 2;
     this.Controls.Add(this.current_moodSeqUI);
     current_moodSeqUI.clearColors();
     currentMood = new MoodSeq();
     this.current_moodSeqUI.Mood = currentMood;
 }
Esempio n. 3
0
        private void newMood_Click(object sender, EventArgs e)
        {
            currentMood = new MoodSeq();
            DlgNameChooser dlg    = new DlgNameChooser();
            DialogResult   result = dlg.ShowDialog();

            if (result == DialogResult.OK)
            {
                currentMood.Name = dlg.name;
            }
            else
            {
                return;
            }
            current_moodSeqUI.Mood = currentMood;
            moodNameLbl.Text       = "Mood Name: " + currentMood.Name;
        }
Esempio n. 4
0
 private void newMood_Click(object sender, EventArgs e)
 {
     currentMood = new MoodSeq();
     DlgNameChooser dlg = new DlgNameChooser();
     DialogResult result = dlg.ShowDialog();
     if (result == DialogResult.OK)
         currentMood.Name = dlg.name;
     else
         return;
     current_moodSeqUI.Mood = currentMood;
     moodNameLbl.Text = "Mood Name: " + currentMood.Name;
 }
Esempio n. 5
0
 private void moodList_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (moodsCmbBox.SelectedItem != null)
     {
         currentMood = (MoodSeq)moodsCmbBox.SelectedItem;
         current_moodSeqUI.Mood = currentMood;
         current_moodSeqUI.Invalidate();
         this.Invalidate();
     }
 }
Esempio n. 6
0
 private void InitMoodSeq()
 {
     this.current_moodSeqUI = new DoubleRainbow.MoodSeqUI();
     this.current_moodSeqUI.BackColor = System.Drawing.Color.White;
     this.current_moodSeqUI.Location = new System.Drawing.Point(12, 50);
     this.current_moodSeqUI.Name = "_moodSeq";
     this.current_moodSeqUI.Size = new System.Drawing.Size(260, 26);
     this.current_moodSeqUI.TabIndex = 2;
     this.Controls.Add(this.current_moodSeqUI);
     current_moodSeqUI.clearColors();
     currentMood = new MoodSeq();
     this.current_moodSeqUI.Mood = currentMood;
 }
Esempio n. 7
0
        private MoodSeq mood; // the name field

        #endregion Fields

        #region Constructors

        public MoodSeqUI()
        {
            mood = new MoodSeq();
        }
Esempio n. 8
0
 public MoodSeqUI()
 {
     mood = new MoodSeq();
 }