예제 #1
0
        private void Doctor_Time_Table_Load(object sender, EventArgs e)
        {
            History DoctorInfo = new History();

            this.Hide();
            DoctorInfo.Show();
        }
        private void historySideBarBtn_Click(object sender, EventArgs e)
        {
            History history = new History();

            history.TopLevel = false;
            ParentPanel.Controls.Clear();
            ParentPanel.Controls.Add(history);
            history.FormBorderStyle = FormBorderStyle.None;
            history.Dock            = DockStyle.Fill;
            history.Show();
            resetColor();
            ((Button)sender).BackColor = Color.Tomato;
        }
예제 #3
0
        private void linklblHistory_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            localhost.Service1 myserver = new localhost.Service1();
            bool login;
            bool loginpassed;

            myserver.loginp(txtCNIC.Text, txtPassword.Text, out login, out loginpassed);
            if (login)
            {
                History DoctorInfo = new History();
                this.Hide();
                DoctorInfo.Show();


                //gv.Columns[0].Visible = false;
                // gv.Columns[1].Visible = false;
                // gv.Columns[6].Visible = false;
            }
        }