Exemple #1
0
        private void cmdproceed_Click(object sender, EventArgs e)
        {
            bool valid = false;

            Myserver.Service1        server = new Myserver.Service1();
            List <Myserver.Repairer> list   = server.Get_repairers_list().ToList <Myserver.Repairer>();

            foreach (Myserver.Repairer r in list)
            {
                if (txtrepair.Text == r.Id.ToString())
                {
                    {
                        valid = true;
                        Utility.curr_repairer = r;
                        break;
                    }
                }
            }
            if (valid == true)
            {
                MessageBox.Show("Login Successful!");
                frmrepairPortal frm = new frmrepairPortal();
                this.Hide();
                frm.Show();
            }
            else
            {
                MessageBox.Show("Invalid!");
            }
            txtrepair.Hide();
            txtrepair.Text = "Enter Passcode!";
            cmdrepairid.Hide();
        }
Exemple #2
0
 public static frmrepairPortal get_instance()
 {
     if (repairer_form == null)
     {
         repairer_form = new frmrepairPortal();
         return(repairer_form);
     }
     else
     {
         return(repairer_form);
     }
 }