private void btnHome_Click(object sender, EventArgs e)
        {
            Form f = new WindowsFormsApplication3.MainForm();

            f.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        private void btExit_Click(object sender, EventArgs e)
        {
            //Application.Exit();

            //Environment.Exit(0);
            WindowsFormsApplication3.MainForm mainform = new WindowsFormsApplication3.MainForm();
            mainform.Show();
            this.Visible = false;
        }
Ejemplo n.º 3
0
        private void frmLogin_Load(object sender, EventArgs e)
        {
            pbUserType.Image       = (System.Drawing.Image)(RHPP_Management.Properties.Resources.generalUserLogin);
            lblUserType.Text       = "General User";
            pbUserType.SizeMode    = PictureBoxSizeMode.Zoom;
            pbUserType.BorderStyle = BorderStyle.None;
            //con = new SqlConnection("Data Source = Anonymous ; Initial Catalog = HospitalManagement ; Integrated Security = true ; ");
            con = new SqlConnection("Data Source=DESKTOP-TVY\\SQLEXPRESS;Initial Catalog=HospitalManagement;User ID=tvy;Password=computer");
            //con = new SqlConnection("Data Source=SSK-10;Initial Catalog=HospitalManagement;User ID=admin;Password=admin");
            con.Open();

            da             = new SqlDataAdapter("SELECT sID, sName, sPassword FROM tbStaff WHERE sPassword<>''", con);
            dtAllLoginList = new DataTable();
            da.Fill(dtAllLoginList);


            frmMain = new WindowsFormsApplication3.MainForm();

            lblWarning.Visible = false;
            txtUsername.Focus();
        }
Ejemplo n.º 4
0
 private void btnHome_Click(object sender, EventArgs e)
 {
     WindowsFormsApplication3.MainForm mainform = new WindowsFormsApplication3.MainForm();
     mainform.Show();
     this.Visible = false;
 }
Ejemplo n.º 5
0
 public frmAccountSettings(WindowsFormsApplication3.MainForm mainForm)
 {
     InitializeComponent();
     lblUserIDText = mainForm.lblUserIDText;
 }