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(); } }
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; }
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; }
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; }
private MoodSeq mood; // the name field #endregion Fields #region Constructors public MoodSeqUI() { mood = new MoodSeq(); }
public MoodSeqUI() { mood = new MoodSeq(); }