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; }