Ejemplo n.º 1
0
 private void generateReportsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.ActiveMdiChild != null)
     {
         this.ActiveMdiChild.Close();
     }
     formOpen               = new GeneratReportsForm();
     formOpen.MdiParent     = this;
     formOpen.StartPosition = FormStartPosition.CenterScreen;
     formOpen.Show();
 }
Ejemplo n.º 2
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     //manageToolStripMenuItem.Enabled = false;
     //enrollmentToolStripMenuItem.Enabled = false;
     //generateReportsToolStripMenuItem.Enabled = false;
     myConnn.ConnectToDatabase();
     formOpen           = new LoginForm();
     formOpen.MdiParent = this;
     //formOpen.StartPosition = FormStartPosition.CenterScreen;
     formOpen.WindowState = FormWindowState.Normal;
     formOpen.Show();
 }
Ejemplo n.º 3
0
 private void viewToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.ActiveMdiChild != null)
     {
         this.ActiveMdiChild.Close();
     }
     formOpen               = new EnrollmentView();
     formOpen.MdiParent     = this;
     formOpen.StartPosition = FormStartPosition.CenterScreen;
     formOpen.WindowState   = FormWindowState.Normal;
     formOpen.Show();
 }