private void btnCreate_Click(object sender, EventArgs e) { ReceptionistDash dash = new ReceptionistDash(userName); this.Hide(); dash.Show(); }
public Appointment(string patientName, string age, string sex, string reference, ReceptionistDash r) { this.re = r; this.PatientName = patientName; this.Sex = sex; this.Age = age; this.Reference = reference; InitializeComponent(); }
private void mbtnLogin_Click(object sender, EventArgs e) { if (this.txtUserName.Text != "" && this.txtPassword.Text != "") { var user = new UserLoginEntity(); user.UserName = this.txtUserName.Text.Trim(); user.UserPass = this.txtPassword.Text.Trim(); var userRep = new UserLoginRepo(); if (user.UserName.Substring(0, 1) == "A" || user.UserName.Substring(0, 1) == "a") { if (userRep.UserLoginAdmin(user)) { MessageBox.Show("Welcome Admin"); this.Visible = false; var admin = new AdminDash(txtUserName.Text.Trim()); admin.Visible = true; } else { MessageBox.Show("Invalid Id or Password"); } } else if (user.UserName.Substring(0, 1) == "R" || user.UserName.Substring(0, 1) == "r") { if (userRep.UserLoginReciptionist(user)) { //MessageBox.Show("Hey There"); var reciption = new ReceptionistDash(txtUserName.Text.Trim()); //this.Visible = false; this.Hide(); reciption.Show(); //reciption.Visible = true; } else { MessageBox.Show("Invalid Id or Password"); } } else if (user.UserName.Substring(0, 1) == "D" || user.UserName.Substring(0, 1) == "d") { if (userRep.UserLoginDoctor(user)) { MessageBox.Show("Welcome Doctor"); var doctor = new DoctorDash(txtUserName.Text.Trim()); this.Visible = false; doctor.Visible = true; } else { MessageBox.Show("Invalid Id or Password"); } } } }
public Test(string name, string age, string sex, string reference, ReceptionistDash r) { this.re = r; this.PatientName = name; this.Age = age; this.Sex = sex; this.Reference = reference; this.userName = r.UserName; InitializeComponent(); //AutoGenerateId(); }
public UpdateTest(ReceptionistDash rd) { this.Receptionist = rd; InitializeComponent(); }
public UpdateAppoinment(ReceptionistDash rd) { this.Rdash = rd; InitializeComponent(); }