Пример #1
0
        private void metroButton2_Click(object sender, EventArgs e)
        {
            examFees a = new examFees();

            this.Hide();
            a.Show();
        }
Пример #2
0
        private void metroButton2_Click_1(object sender, EventArgs e)
        {
            examFees a = new examFees();

            conn.Open();
            SqlCommand cmd = conn.CreateCommand();

            cmd.CommandType = CommandType.Text;

            cmd.CommandText = " update exFees1 set AdmissionNo='" + metroLabel10.Text + "',Fname='" + metroLabel11.Text + "', surname='" + metroLabel12.Text + "', admissionGrade='" + metroLabel13.Text + "',examFees='" + metroLabel14.Text + "', latePay='" + metroComboBox1.Text + "', pay='" + metroLabel15.Text + "', latePaye='" + metroLabel16.Text + "', total='" + metroLabel17.Text + "' where AdmissionNo='" + metroLabel10.Text + "' ";
            cmd.ExecuteNonQuery();
            conn.Close();
            MessageBox.Show("Examination Fees Payment Entered");
            this.Close();
            //a.Show();
        }
Пример #3
0
 public AddFees(examFees e2)
 {
     InitializeComponent();
     e1 = e2;
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.AddFees_FormClosing);
 }