コード例 #1
0
 public loginForm(appform app)
 {
     InitializeComponent();
     CheckForInternetConnection();
     if (!CheckForInternetConnection())
     {
         MessageBox.Show("Sorry No Internet , Try Again Later");
         Application.Exit();
     }
     else
     {
         string url = "https://studentid.000webhostapp.com/ServerTest.php";//see the employee number in database
         string req = client.DownloadString(url);
         if (req.ToLower() == "fail")
         {
             panel1.Visible = true;
             r1.Checked     = true;
         }
         else
         {
             panel1.Visible   = true;
             LogPanal.Visible = true;
         }
         appForm = app;
     }
 }
コード例 #2
0
ファイル: studentForm.cs プロジェクト: AlaaElbanna/ReadIDByQr
 public studentForm(appform app, string facultyName)
 {
     InitializeComponent();
     appForm           = app;
     this.faculty_name = facultyName;
     employee_username = Employee.getInstance().getUsername();
     employee_password = Employee.getInstance().getpassword();
 }
コード例 #3
0
 public admin(appform app, string select_faculty1)
 {
     InitializeComponent();
     Opacity = 1;
     this.select_faculty1 = select_faculty1;
     appForm = app;
     timer1.Start();
     employee_usrename = Employee.getInstance().getUsername();
     employee_password = Employee.getInstance().getpassword();
     // MessageBox.Show(employee_password + "    " + employee_usrename);//to test
 }