示例#1
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;
        }
示例#2
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;
 }