Exemplo n.º 1
0
 public static DialogResult Show(string Text, string Caption, string btnOk, string btnCancel)
 {
     MsgBox                = new Msg1();
     MsgBox.label4.Text    = Text;
     MsgBox.label5.Text    = Text;
     MsgBox.label6.Text    = Text;
     MsgBox.btnCancel.Text = btnCancel;
     MsgBox.btnOK.Text     = btnOk;
     MsgBox.ShowDialog();
     return(result);
 }
Exemplo n.º 2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            // If incomming referral is selected to add arrival time and comments/Delays
            if (cmbCase.SelectedIndex == 0)
            {
                this.Hide();
                Msg1 msg = new Msg1();
                msg.ShowDialog();
            }

            // If incomming referral is selected to add arrival time and comments/Delays
            else if (cmbCase.SelectedIndex == 1)
            {
                this.Hide();
                Msg2 msg = new Msg2();
                msg.ShowDialog();
            }

            else
            {
                MessageBox.Show("Please Select at least one Case to add data");
            }
        }