예제 #1
0
        protected bool CheckEmpty(UITextBox edit, string desc)
        {
            bool result = edit.Text.IsValid();

            if (!result)
            {
                this.ShowWarningDialog(desc);
                edit.Focus();
            }

            return(result);
        }
예제 #2
0
        protected bool CheckRange(UITextBox edit, double min, double max, string desc)
        {
            bool result = edit.DoubleValue >= min && edit.IntValue <= max;

            if (!result)
            {
                this.ShowWarningDialog(desc);
                edit.Focus();
            }

            return(result);
        }