Example #1
0
        // Token: 0x060004A3 RID: 1187 RVA: 0x0001E2AC File Offset: 0x0001C4AC
        protected override object GetStyleFromForm()
        {
            var cmoveStyleItem = new CMoveStyleItem();
            int top;

            if (chkUp.Checked)
            {
                top = -(int)numUp.Value;
            }
            else
            {
                top = (int)numDown.Value;
            }
            int left;

            if (chkLeft.Checked)
            {
                left = -(int)numLeft.Value;
            }
            else
            {
                left = (int)numRight.Value;
            }
            cmoveStyleItem.Top  = top;
            cmoveStyleItem.Left = left;
            return(cmoveStyleItem);
        }
Example #2
0
        protected override object GetStyleFromForm()
        {
            int            num;
            int            num2;
            CMoveStyleItem item = new CMoveStyleItem();

            if (this.chkUp.Checked)
            {
                num = -((int)this.numUp.Value);
            }
            else
            {
                num = (int)this.numDown.Value;
            }
            if (this.chkLeft.Checked)
            {
                num2 = -((int)this.numLeft.Value);
            }
            else
            {
                num2 = (int)this.numRight.Value;
            }
            item.Top  = num;
            item.Left = num2;
            return(item);
        }
Example #3
0
        protected override void SetStyleToForm(object style)
        {
            CMoveStyleItem item = (CMoveStyleItem)style;

            this.InitializeComponent();
            this.Text = item.GetDisplayName();
            if (item.Top <= 0)
            {
                this.chkDown.Checked = true;
                this.chkUp.Checked   = true;
                this.numUp.Value     = Math.Abs(item.Top);
            }
            else
            {
                this.chkUp.Checked   = true;
                this.chkDown.Checked = true;
                this.numDown.Value   = Math.Abs(item.Top);
            }
            if (item.Left <= 0)
            {
                this.chkRight.Checked = true;
                this.chkLeft.Checked  = true;
                this.numLeft.Value    = Math.Abs(item.Left);
            }
            else
            {
                this.chkLeft.Checked  = true;
                this.chkRight.Checked = true;
                this.numRight.Value   = Math.Abs(item.Left);
            }
        }
Example #4
0
        protected override void SetTunedStyleItem(CStyleItem newOwn)
        {
            CMoveStyleItem item = (CMoveStyleItem)newOwn;

            this.Top  = item.Top;
            this.Left = item.Left;
        }