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; } }
public studentForm(appform app, string facultyName) { InitializeComponent(); appForm = app; this.faculty_name = facultyName; employee_username = Employee.getInstance().getUsername(); employee_password = Employee.getInstance().getpassword(); }
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 }