Exemple #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            char     lcReply;
            InputBox inputBox = new InputBox("Enter P for Painting, S for Sculpture and H for Photograph");

            //inputBox.ShowDialog();
            //if (inputBox.getAction() == true)
            if (inputBox.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                lcReply = Convert.ToChar(inputBox.getAnswer());
                _WorksList.AddWork(lcReply);
                UpdateDisplay();
            }
        }
 private void btnAdd_Click(object sender, EventArgs e)
 {
     theWorksList.AddWork();
     UpdateDisplay();
 }