예제 #1
0
파일: Form2.cs 프로젝트: dinith72/RMS
        private void Form2_Load(object sender, EventArgs e)
        {
            Connection conObj = new Connection();

            try
            {
                SqlDataReader myReader  = null;
                SqlCommand    myCommand = new SqlCommand("select StNo,firstName,lastName,year,GPA,contactNo,email from STUDENT",
                                                         conObj.connect());
                myReader = myCommand.ExecuteReader();
                while (myReader.Read())
                {
                    lblStNo.Text      = myReader["StNo"].ToString();
                    lblFirstName.Text = myReader["firstName"].ToString();
                    lblLastName.Text  = myReader["lastName"].ToString();
                    lblLevel.Text     = myReader["year"].ToString();
                    lblGPA.Text       = myReader["GPA"].ToString();
                    lblContactNo.Text = myReader["contactNo"].ToString();
                    lblEmail.Text     = myReader["email"].ToString();
                }
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.ToString());
            }

            ProfilePanel.BringToFront();
        }
예제 #2
0
 private void profileToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ProfilePanel.BringToFront();
 }
예제 #3
0
 private void Form1_Load(object sender, EventArgs e)
 {
     ProfilePanel.BringToFront();
     this.Text = "Dr. Chathura Rajapaksha";
 }
예제 #4
0
파일: Student.cs 프로젝트: dinith72/RMS
 private void Form1_Load(object sender, EventArgs e)
 {
     ProfilePanel.BringToFront();
     this.Text = "IM/2014/027";
 }
예제 #5
0
파일: Form3.cs 프로젝트: dinith72/RMS
 private void frmstudents_Load(object sender, EventArgs e)
 {
     ProfilePanel.BringToFront();
 }