コード例 #1
0
        private void Rcard_Test_Tcode_TextChanged(object sender, EventArgs e)
        {
            if (status == true)
            {
                if (Rcard_Test_Tcode.Text.Length != 0)
                {
                    Rcard_Test_Tcode.Text = Main_Form.numCheck(Rcard_Test_Tcode.Text);

                    try
                    {
                        string     sql = "select * from Test_Rcard where Test_Id = " + Rcard_Test_Tcode.Text + " and Std_Id= " + Rcard_Test_SelectId.Text + " and Sub = '" + Rcard_Test_Sub.Text + "' ;";
                        SqlCommand cmd = new SqlCommand(sql, con);
                        con.Open();
                        SqlDataReader read = cmd.ExecuteReader();

                        if (read.Read())
                        {
                            label6.Visible           = true;
                            btn_Rcard_Update.Visible = true;
                            btn_Rcard_TSave.Visible  = false;
                            con.Close();
                        }
                        else
                        {
                            label6.Visible           = false;
                            btn_Rcard_Update.Visible = false;
                            btn_Rcard_TSave.Visible  = true;
                            con.Close();
                        }
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine("Error in loading previous test code");
                    }
                }
            }
            else
            {
                MessageBox.Show("You Must Login First");
            }
        }
コード例 #2
0
 double total, obt, percent;//creates variables to use to calculate percentage
 private void Rcard_Test_Omarks_TextChanged(object sender, EventArgs e)
 {
     Rcard_Test_Omarks.Text = Main_Form.numCheck(Rcard_Test_Omarks.Text);
     if (Rcard_Test_Omarks.TextLength != 0 && Rcard_Test_Omarks.Text != ".")
     {
         try
         {
             total   = double.Parse(Rcard_Test_Tmarks.Text);
             obt     = double.Parse(Rcard_Test_Omarks.Text);
             percent = (obt / total) * 100.00;
             Rcard_Test_Percent.Text = percent.ToString();
         }
         catch (Exception ex)
         {
             Console.WriteLine("\n error in calculating percentage from obtained marks field");
         }
     }
     else
     {
         Rcard_Test_Percent.Text = null;
     }
 }
コード例 #3
0
 private void FP_Contact_OnValueChanged(object sender, EventArgs e)
 {
     FP_Contact.Text = Main_Form.numCheck(FP_Contact.Text);
 }
コード例 #4
0
 private void Isl_TextChanged(object sender, EventArgs e)
 {
     Isl.Text = Main_Form.numCheck(Isl.Text);
 }
コード例 #5
0
 private void Com_TextChanged(object sender, EventArgs e)
 {
     Com.Text = Main_Form.numCheck(Com.Text);
 }
コード例 #6
0
 private void Arts_TextChanged(object sender, EventArgs e)
 {
     Arts.Text = Main_Form.numCheck(Arts.Text);
 }
コード例 #7
0
 private void sst_TextChanged(object sender, EventArgs e)
 {
     sst.Text = Main_Form.numCheck(sst.Text);
 }
コード例 #8
0
 private void Sci_TextChanged(object sender, EventArgs e)
 {
     Sci.Text = Main_Form.numCheck(Sci.Text);
 }
コード例 #9
0
 private void Math_TextChanged(object sender, EventArgs e)
 {
     Math.Text = Main_Form.numCheck(Math.Text);
 }
コード例 #10
0
 private void Urdu_TextChanged(object sender, EventArgs e)
 {
     Urdu.Text = Main_Form.numCheck(Urdu.Text);
 }
コード例 #11
0
 private void Eng_TextChanged(object sender, EventArgs e)
 {
     Eng.Text = Main_Form.numCheck(Eng.Text);
 }
コード例 #12
0
 private void Rcard_Test_Tmarks_TextChanged(object sender, EventArgs e)
 {
     Rcard_Test_Tmarks.Text = Main_Form.numCheck(Rcard_Test_Tmarks.Text);
     total = 0.0;
 }
コード例 #13
0
ファイル: StudentManagement.cs プロジェクト: izhan25/sms
 private void Update_Ayear_TextChanged(object sender, EventArgs e)
 {
     Update_Ayear.Text = Main_Form.numCheck(Update_Ayear.Text);
 }
コード例 #14
0
ファイル: StudentManagement.cs プロジェクト: izhan25/sms
 private void Update_Contact_TextChanged(object sender, EventArgs e)
 {
     Update_Contact.Text = Main_Form.numCheck(Update_Contact.Text);
 }
コード例 #15
0
ファイル: StudentManagement.cs プロジェクト: izhan25/sms
 private void Add_Ayear_TextChanged(object sender, EventArgs e)
 {
     Add_Ayear.Text = Main_Form.numCheck(Add_Ayear.Text);
 }
コード例 #16
0
ファイル: StudentManagement.cs プロジェクト: izhan25/sms
 private void Add_Contact_TextChanged(object sender, EventArgs e)
 {
     Add_Contact.Text = Main_Form.numCheck(Add_Contact.Text);
 }