Ejemplo n.º 1
0
 public Transection()
 {
     InitializeComponent();
     ma = new BLL.ManageAppoinments();
     ts = new BLL.Transection();
     PatientPhoneTextBox();
 }
        private void metroButtonChageCharge_Click(object sender, EventArgs e)
        {
            if (metroTextBoxDocName.Text != "" && metroTextBoxPatientId.Text != "" && metroDateTime1.Text != "")
            {
                BLL.ManageAppoinments m = new BLL.ManageAppoinments();
                bool bx = m.AddAppoinment(metroTextBoxDocName.Text, metroTextBoxPatientId.Text, metroDateTime1.Text);
                if (bx == true)
                {
                    MetroFramework.MetroMessageBox.Show(this, "Appoinment Added!");
                }
                else
                {
                    MetroFramework.MetroMessageBox.Show(this, "Failed to Add Appoinment.");
                }
            }

            else
            {
                MetroFramework.MetroMessageBox.Show(this, "Please Fill All The Fields.");
            }
        }