Beispiel #1
0
 public bool MinLength(AltoControls.AltoTextBox controls, int min)
 {
     if (controls.Text.Length < min)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
Beispiel #2
0
 public bool MaxLength(AltoControls.AltoTextBox controls, int max)
 {
     if (controls.Text.Length > max)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
Beispiel #3
0
 public bool isRequired(AltoControls.AltoTextBox controls)
 {
     if (string.IsNullOrWhiteSpace(controls.Text))
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
Beispiel #4
0
 public FLOV(Form F, string TN, AltoControls.AltoTextBox TShow, Bunifu.Framework.UI.BunifuMetroTextbox Tid, string OD, string[] col, string cs)
 {
     columnsearch = cs;
     TableName    = TN;
     OrderBy      = OD;
     FormCall     = F;
     TextboxShow2 = TShow;
     TextboxID    = Tid;
     column       = col;
     InitializeComponent();
 }
Beispiel #5
0
        public bool isEmail(AltoControls.AltoTextBox controls)
        {
            Match match = regex.Match(controls.Text);

            if (!match.Success)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
Beispiel #6
0
        public bool isNumeric(AltoControls.AltoTextBox controls)
        {
            int distance = 0;

            if (int.TryParse(controls.Text, out distance))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Beispiel #7
0
        //Textbox
        public void _formText(AltoControls.AltoTextBox text, bool clear_text = true)
        {
            text.BackColor = System.Drawing.Color.Transparent;
            text.BackColor = System.Drawing.Color.White;
            text.Font      = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            text.ForeColor = System.Drawing.Color.DimGray;
            text.Radius    = 6;
            text.Height    = 33;
            if (clear_text)
            {
                text.Text = "";
            }

            //text.Size = new System.Drawing.Size;
        }
Beispiel #8
0
        string collumnSearch;//= "a.Items_Name";

        public LOVForm(string SQL, Form F, AltoControls.AltoTextBox TShow, Bunifu.Framework.UI.BunifuMetroTextbox Tid, string cs, string[] coll, string Order)
        {
            sql           = SQL;
            formcall      = F;
            text_show     = TShow;
            textId        = Tid;
            collumnSearch = cs;
            ordercolumn   = Order;
            for (int i = 0; i < coll.Length; i++)
            {
                columns[i] = coll[i];
            }

            InitializeComponent();
        }