Exemplo n.º 1
0
 public void clear()
 {
     PassengerNo.Clear();
     PassengerName.Clear();
     PassengerAddress.Clear();
     PassengerCity.Clear();
     PassengerContact.Clear();
     PassengerNo.Enabled      = true;
     PassengerName.Enabled    = false;
     PassengerAddress.Enabled = false;
     PassengerCity.Enabled    = false;
     PassengerContact.Enabled = false;
 }
Exemplo n.º 2
0
 public void FormControls(string CLR)
 {
     if (CLR == "CLR")
     {
         PassengerNo.Clear();
         PassengerName.Clear();
         PassengerAddress.Clear();
         PassengerCity.Clear();
         PassengerContact.Clear();
         PassengerNo.Enabled      = false;
         PassengerName.Enabled    = false;
         PassengerAddress.Enabled = false;
         PassengerCity.Enabled    = false;
         PassengerContact.Enabled = false;
         btnsave.Enabled          = false;
         btnedit.Enabled          = false;
         btndelete.Enabled        = false;
         btnadd.Enabled           = true;
         btnfind.Enabled          = true;
         Left1.Enabled            = false;
         Right1.Enabled           = false;
     }
     if (CLR == "Save")
     {
         btnsave.Enabled          = true;
         btnadd.Enabled           = false;
         btnfind.Enabled          = false;
         btndelete.Enabled        = false;
         btnedit.Enabled          = false;
         PassengerName.Enabled    = true;
         PassengerAddress.Enabled = true;
         PassengerCity.Enabled    = true;
         PassengerContact.Enabled = true;
         PassengerName.Focus();
     }
 }