Example #1
0
 private void Year_Leave(object sender, EventArgs e)
 {
     if (!ValdateYear())
     {
         MessageBoxes.CustomMessageForm.CustomMessageBox.Show("خطا", "سال اشتباه وارد شده است", "e");
         Year.Focus();
     }
 }
Example #2
0
 void Day_Leave(object sender, EventArgs e)
 {
     if (Day.Text.Length == 1)
     {
         Day.Text = String.Concat("0", Day.Text);
     }
     if (Day.Text.Length == 0)
     {
         Day.Text = TodayFullChar().Substring(8, 2);
     }
     if (!ValidateDay())
     {
         MessageBoxes.CustomMessageForm.CustomMessageBox.Show("خطا", "روز اشتباه وارد شده است", "e");
         Day.Focus();
     }
 }
Example #3
0
        void Month_Leave(object sender, EventArgs e)
        {
            if (Month.Text.Length == 1)
            {
                Month.Text = string.Concat("0", Month.Text);
            }

            else if (Month.Text.Length == 0)
            {
                Month.Text = TodayFullChar().Substring(5, 2);
            }
            if (!ValidateMonth())
            {
                MessageBoxes.CustomMessageForm.CustomMessageBox.Show("خطا", "ماه اشتباه وارد شده است", "e");
                Month.Focus();
            }
        }