Ejemplo 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();
     }
 }
Ejemplo 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;
 }
Ejemplo 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;
        }
Ejemplo 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;
 }
Ejemplo 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();
     }
 }
Ejemplo 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;
 }
Ejemplo n.º 7
0
        private MoodSeq mood; // the name field

        #endregion Fields

        #region Constructors

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