Пример #1
0
        private void BtnUserAccount_Click(object sender, EventArgs e)
        {
            btnUserAccount.Checked = true;
            btnReports.Checked     = false;
            btnIssueBook.Checked   = false;
            btnStudent.Checked     = false;
            btnBook.Checked        = false;
            btnDashboard.Checked   = false;
            btnHistory.Checked     = false;
            btnSettings.Checked    = false;

            frmUserAccount frm = new frmUserAccount(this);

            frm.TopLevel = false;
            panel3.Controls.Add(frm);
            frm.BringToFront();
            frm.Show();
        }
Пример #2
0
 public frmNewAccount(frmUserAccount f)
 {
     InitializeComponent();
     cn  = new SqlConnection(dbcon.MyConnection());
     frm = f;
 }