Example #1
0
 public static bool IsDate(int iDay, int iMonth, int iYear)
 {
     return(StringEx.IsNumberRange(iMonth, 1, 12) && StringEx.IsNumberRange(iYear, 1945, 2025) && StringEx.IsNumberRange(iDay, 1, StringEx.GetLastDay(iMonth, iYear)));
 }
Example #2
0
        private void noteTextBox_Validated(object sender, EventArgs e)
        {
            TextBox textBox = (TextBox)sender;

            textBox.Text = StringEx.CutBlanks(textBox.Text);
        }
Example #3
0
        private void bedNameTextBox_Validated(object sender, EventArgs e)
        {
            TextBox tb = (TextBox)sender;

            tb.Text = StringEx.CutBlanks(tb.Text);
        }