Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            u = UserNameT.Text;
            p = Int32.Parse(PasswordT.Text);
            BLClass bl = new BLClass();
            //bl.uP = Int32.Parse(u);
            bool x = bl.Exist(u, p);

            if (x)
            {
                MessageBox.Show("ברוכים הבאים");
                bl.AddHistory(5, 1234);
                TestF t = new TestF(p);
                t.Show();
            }
            else
            {
                MessageBox.Show("הפרטים שגויים");
            }
            u = null;
            p = 0;
            UserNameT.Text = "";
            PasswordT.Text = "";
        }
Example #2
0
 private void end_Click(object sender, EventArgs e)
 {
     MessageBox.Show("ציונך הכולל: " + markCnt);
     bl.AddHistory(markCnt, UserP);
 }