コード例 #1
0
ファイル: Home.cs プロジェクト: AqsaAbid/Mini-Project
        /// <summary>
        /// the function is closing the current form and opens the rubric form
        /// </summary>
        /// <param name="sender">Object Sender is a parameter called Sender that contains a reference to the control/object that raised the event</param>
        /// <param name="e">EventArgs e is a parameter called e that contains the event data</param>
        private void button3_Click(object sender, EventArgs e)
        {
            Rubric rb = new Rubric();

            this.Hide();
            rb.Show();
        }
コード例 #2
0
        private void manageToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            if (rubric == null)
            {
                rubric              = new Rubric();
                rubric.MdiParent    = this;
                rubric.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.std_FormClosed);
                rubric.Show();
                if (stdflag)
                {
                    std.WindowState = System.Windows.Forms.FormWindowState.Minimized;
                }
                if (cloflag)
                {
                    clo.WindowState = System.Windows.Forms.FormWindowState.Minimized;
                }
                if (assessmentflag)
                {
                    assessment.WindowState = System.Windows.Forms.FormWindowState.Minimized;
                }
                if (componentflag)
                {
                    component.WindowState = System.Windows.Forms.FormWindowState.Minimized;
                }
                if (studentattendanceflag)
                {
                    stdattendance.WindowState = System.Windows.Forms.FormWindowState.Minimized;
                }
                if (classattendanceflag)
                {
                    classattendance.WindowState = System.Windows.Forms.FormWindowState.Minimized;
                }
                if (studentresultflag)
                {
                    result.WindowState = System.Windows.Forms.FormWindowState.Minimized;
                }
                if (cloreportflag)
                {
                    cloreport.WindowState = System.Windows.Forms.FormWindowState.Minimized;
                }
                if (assessmentreportflag)
                {
                    assessmentreport.WindowState = System.Windows.Forms.FormWindowState.Minimized;
                }


                rbflag = true;
            }
            else
            {
                rubric.Activate();
            }
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: AqsaZahid256/DBMS_Project
        private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Rubric r = new Rubric();

            r.Show();
        }