예제 #1
0
 private void changeGenreButton_Click(object sender, EventArgs e)
 {
     DialogResult dr = new DialogResult();
     ChangeGenreWF frm = new ChangeGenreWF();
     dr = frm.ShowDialog();
     if (dr == DialogResult.OK)
         MessageBox.Show("User clicked OK button");
     else if (dr == DialogResult.Cancel)
         MessageBox.Show("User clicked Cancel button");
 }
예제 #2
0
        private void changeGenreButton_Click(object sender, EventArgs e)
        {
            DialogResult  dr  = new DialogResult();
            ChangeGenreWF frm = new ChangeGenreWF();

            dr = frm.ShowDialog();
            if (dr == DialogResult.OK)
            {
                MessageBox.Show("User clicked OK button");
            }
            else if (dr == DialogResult.Cancel)
            {
                MessageBox.Show("User clicked Cancel button");
            }
        }