예제 #1
0
        public Boolean EqualsControlArgs(ControlArgs A, ControlArgs B)
        {
            Control Atemp = FromControlArgs(A);
            Control Btemp = FromControlArgs(B);

            return(EqualsControls(Atemp, Btemp));
        }
예제 #2
0
 public Boolean ArgsInControlArgsList(List <ControlArgs> Lst, ControlArgs ctrArgs)
 {
     foreach (ControlArgs cA in Lst)
     {
         if (EqualsControlArgs(cA, ctrArgs))
         {
             return(true);
         }
     }
     return(false);
 }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        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);
        }
예제 #6
0
        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);
        }
예제 #7
0
        public Boolean EqualCrossArgCtrl(ControlArgs A, Control B)
        {
            Control Atemp = FromControlArgs(A);

            return(EqualsControls(Atemp, B));
        }
예제 #8
0
 protected virtual void OnChildRemoved(ControlArgs e)
 {
     ChildRemoved?.Invoke(this, e);
 }