private void proceedbtn_Click(object sender, EventArgs e)
        {
            Trainee tn = new Trainee();

            if (image == null)
            {
                Image img = global::SaiYogaTraining.Properties.Resources._default;
                image = UploadImage(img);
            }
            tn.Photo = image;
            string tname = String.Concat(tnamef.Text.Trim(), " ", tnamel.Text.Trim());

            tn.Name     = tname.Trim();
            tn.Address  = taddress.Text.Trim();
            tn.Contact  = tcontact.Text.Trim();
            tn.CourseID = coursedrop.SelectedValue.ToString();
            tn.Date     = DateTime.Today;
            string str = tn.Insert();

            if (!string.IsNullOrEmpty(str))
            {
                MessageBox.Show("Data Inserted Successfully", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
                FeePayForm fee = new FeePayForm();
                fee.id       = str;
                fee.formtype = "admission";
                fee.lastBal  = crs.GetCourseFee(tn.CourseID);
                fee.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("Something went wrong");
            }
        }
        private void feebtn_Click(object sender, EventArgs e)
        {
            FeePayForm frm = new FeePayForm();

            frm.id       = tn.ID;
            frm.formtype = "trainee";
            frm.Show();
        }