public Boolean EqualsControlArgs(ControlArgs A, ControlArgs B) { Control Atemp = FromControlArgs(A); Control Btemp = FromControlArgs(B); return(EqualsControls(Atemp, Btemp)); }
public Boolean ArgsInControlArgsList(List <ControlArgs> Lst, ControlArgs ctrArgs) { foreach (ControlArgs cA in Lst) { if (EqualsControlArgs(cA, ctrArgs)) { return(true); } } return(false); }
public Control FromControlArgs(ControlArgs ctrlArgs) { Control temp = CreateControlType(ctrlArgs.tType); temp.Size = new Size(ctrlArgs.sWidth, ctrlArgs.sHeight); temp.BackColor = Color.FromArgb(ctrlArgs.cRed, ctrlArgs.cGreen, ctrlArgs.cBlue); if (ctrlArgs.tText != "null") { temp.Text = ctrlArgs.tText; } return(temp); }
public Boolean ArgsInControlsList(List <Control> Lst, ControlArgs ctrArgs) { Control temp = FromControlArgs(ctrArgs); foreach (Control c in Lst) { if (EqualsControls(c, temp)) { return(true); } } return(false); }
public Boolean ControlInArgsList(List <ControlArgs> Lst, Control control) { ControlArgs temp = toControlArgs(control); foreach (ControlArgs cA in Lst) { if (EqualsControlArgs(cA, temp)) { return(true); } } return(false); }
public ControlArgs toControlArgs(Control ctrl) { ControlArgs temp = new ControlArgs(); temp.tType = TypeToString(ctrl); temp.sWidth = ctrl.Size.Width; temp.sHeight = ctrl.Size.Height; temp.cRed = ctrl.BackColor.R; temp.cGreen = ctrl.BackColor.G; temp.cBlue = ctrl.BackColor.B; if (ctrl.GetType() == typeof(Button) || ctrl.GetType() == typeof(Label)) { temp.tText = ctrl.Text; } return(temp); }
public Boolean EqualCrossArgCtrl(ControlArgs A, Control B) { Control Atemp = FromControlArgs(A); return(EqualsControls(Atemp, B)); }
protected virtual void OnChildRemoved(ControlArgs e) { ChildRemoved?.Invoke(this, e); }