Esempio n. 1
0
 private void phonetxt_Leave(object sender, EventArgs e)
 {
     if (phonetxt.Text != "")
     {
         PhoneEL.Visible = false;
         custID          = RetrivalData.getCustIDwrtPhone(phonetxt.Text);
         if (custID == 0)
         {
             customersWindow cw = new customersWindow();
             MainClass.showWindow(cw, this, MDI.ActiveForm);
         }
         else
         {
             MainClass.showMessage(RetrivalData.CUSTOMER + "\n" + RetrivalData.ADDRESS + "\n", "success");
         }
     }
 }
Esempio n. 2
0
        private void customersbtn_Click(object sender, EventArgs e)
        {
            customersWindow rw = new customersWindow();

            MainClass.showWindow(rw, this, MDI.ActiveForm);
        }