public bool MinLength(AltoControls.AltoTextBox controls, int min) { if (controls.Text.Length < min) { return(false); } else { return(true); } }
public bool MaxLength(AltoControls.AltoTextBox controls, int max) { if (controls.Text.Length > max) { return(false); } else { return(true); } }
public bool isRequired(AltoControls.AltoTextBox controls) { if (string.IsNullOrWhiteSpace(controls.Text)) { return(false); } else { return(true); } }
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(); }
public bool isEmail(AltoControls.AltoTextBox controls) { Match match = regex.Match(controls.Text); if (!match.Success) { return(false); } else { return(true); } }
public bool isNumeric(AltoControls.AltoTextBox controls) { int distance = 0; if (int.TryParse(controls.Text, out distance)) { return(true); } else { return(false); } }
//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; }
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(); }