Exemplo 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");
         }
     }
 }