private void Transfuse_Click(object sender, EventArgs e)
        {
            if (!textBox2.Text.Contains("ml") && !textBox3.Text.Contains("dl"))
            {
                MessageBox.Show("You need no enter amount of blood in ml and hemoglobin in dl");
            }
            else
            {
                UserTransfuseController utc = new UserTransfuseController();

                utc.UpdatingTransfusion(User.UserID, comboBox1.Text, textBox2.Text, textBox3.Text, DateTime.Parse(dateTimePicker1.Text), int.Parse(textBox4.Text), textBox5.Text, DateTime.Parse(dateTimePicker2.Text));
                //
                textBox1.Clear();
                comboBox1.Text = "";
                textBox2.Clear();
                textBox3.Clear();
                dateTimePicker1.ResetText();
                textBox4.Clear();
                textBox5.Clear();
                dateTimePicker2.ResetText();
                if (utc.TransfusionData().tt == null)
                {
                    MessageBox.Show("Data Inserted Successfully");
                }
                else
                {
                    MessageBox.Show("Data Updated Successfully");
                }
            }
        }
        private void UserBloodTranfuse_Load(object sender, EventArgs e)
        {
            textBox1.Text = User.UserID.ToString();
            UserTransfuseController utc = new UserTransfuseController();
            int no = utc.ID();

            if (utc.TransfusionData().tt != null)
            {
                UserBloodTransfusee u;
                u = utc.TransfusionData();

                u = utc.TransfusionData();
                comboBox1.Text        = u.tt;
                textBox2.Text         = u.ab;
                textBox3.Text         = u.h;
                dateTimePicker1.Value = u.dot;
                textBox4.Text         = u.p.ToString();
                textBox5.Text         = u.b;
                dateTimePicker2.Text  = u.dnt.ToString();
            }
        }