예제 #1
0
파일: Won.cs 프로젝트: ruel/Text-Raffle
 /// <summary>
 /// Handles the Click event of the btnAdd control.
 /// Adds an entry to the list.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmAddWon awFrm = new frmAddWon();
     awFrm.ShowDialog(this);
     string toAdd = awFrm.getInput();
     if (toAdd != "")
     {
         lbWon.Items.Add(toAdd);
     }
 }
예제 #2
0
        // Adds an entry to the list.
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddWon awFrm = new frmAddWon();

            awFrm.ShowDialog(this);
            string toAdd = awFrm.getInput();

            if (toAdd != "")
            {
                lbWon.Items.Add(toAdd);
            }
        }