Пример #1
0
        private void cmdBack_Click(object sender, EventArgs e)
        {
            LoginD d = new LoginD();

            this.Hide();
            d.Show();
        }
Пример #2
0
        private void radioButtonLDoctor_CheckedChanged(object sender, EventArgs e)
        {
            LoginD login = new LoginD();

            this.Hide();
            login.Show();
        }
Пример #3
0
        private void cmdLogout_Click(object sender, EventArgs e)
        {
            LoginD logind = new LoginD();

            this.Hide();
            logind.Show();
        }
Пример #4
0
        private void linklblLogin_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            localhost.Service1 myserver = new localhost.Service1();
            bool login;
            bool loginpassed;

            myserver.logina(txtCNIC.Text, txtConfirmPassword.Text, out login, out loginpassed);
            if (login)
            {
                Login l = new Login();
                this.Hide();
                l.Show();
            }
            myserver.loginp(txtCNIC.Text, txtConfirmPassword.Text, out login, out loginpassed);
            if (login)
            {
                Login l = new Login();
                this.Hide();
                l.Show();
            }

            else
            {
                LoginD k = new LoginD();
                this.Hide();
                k.Show();
            }
        }