Example #1
0
        private void bunifuThinButton21_Click(object sender, EventArgs e)
        {
            DateTime reqdate = dateTimePicker1.Value.Date;

            if (reqdate < DateTime.Today)
            {
                MessageBox.Show("Select Valid Date and Time");
            }
            if (textBox1.Text.Length == 0)
            {
                MessageBox.Show("Enter The Purpose");
            }
            else
            {
                string result = emp.AppRequest(this.E_Id, textBox1.Text, reqdate);
                MessageBox.Show(result);
                bunifuThinButton21.Enabled = false;
            }
        }