예제 #1
0
 private void btnSelectPayment_Click(object sender, System.EventArgs e)
 {
     Form paymentForm = new frmPayment();
     DialogResult selectedButton = paymentForm.ShowDialog();
     if (selectedButton == DialogResult.OK)
     {
         lblPayment.Text = (string) paymentForm.Tag;
     }
 }
        private void btnSelectPayment_Click(object sender, System.EventArgs e)
        {
            Form         paymentForm    = new frmPayment();
            DialogResult selectedButton = paymentForm.ShowDialog();

            if (selectedButton == DialogResult.OK)
            {
                lblPayment.Text = (string)paymentForm.Tag;
            }
        }
예제 #3
0
        private void btnSelectPayment_Click(object sender, EventArgs e)
        {
            frmPayment paymentForm = new frmPayment();
            string s = paymentForm.GetPayment();

            if (s != "")
            {
                lblPayment.Text = s;
            }
        }