Ejemplo n.º 1
0
        public virtual void Dispose()
        {
            if (this.x43bec302f92080b9 != null)
            {
                if (true)
                {
                    this.x43bec302f92080b9.MouseCaptureChanged -= new EventHandler(this.x772288dc6422a53d);
                    goto label_8;
                }
            }
            else
            {
                goto label_8;
            }
label_2:
            while (false)
            {
                if (true)
                {
                    goto label_4;
                }
            }
            goto label_5;
label_4:
            if (this.xa6607dfd4b3038ad != null)
            {
                goto label_7;
            }
label_5:
            Application.RemoveMessageFilter((IMessageFilter)this);
            this.xa6607dfd4b3038ad = (Form)null;
            this.x43bec302f92080b9 = (Control)null;
            return;

label_7:
            this.xa6607dfd4b3038ad.Deactivate -= new EventHandler(this.xbf6ca0f637696dc9);
            goto label_2;
label_8:
            this.x11972e8742c570b8();
            while (this.x48cee1d69929b4fe == DockingHints.TranslucentFill)
            {
                this.x74e209c76c4b5a3e.Dispose();
                this.x74e209c76c4b5a3e = (x7a797590a9beb775)null;
                if (false)
                {
                    if (true)
                    {
                        goto label_7;
                    }
                }
                else
                {
                    break;
                }
            }
            goto label_4;
        }
Ejemplo n.º 2
0
        public x890231ddf317379e(Control control, DockingHints dockingHints, bool hollow)
        {
label_12:
            this.x43bec302f92080b9 = control;
            this.x21480c2e0df4efcd = hollow;
            bool flag = OSFeature.Feature.IsPresent(OSFeature.LayeredWindows);

            if (dockingHints != DockingHints.TranslucentFill || flag)
            {
                goto label_8;
            }
            else
            {
                goto label_9;
            }
label_4:
            control.MouseCaptureChanged += new EventHandler(this.x772288dc6422a53d);
            Application.AddMessageFilter((IMessageFilter)this);
            while (dockingHints == DockingHints.TranslucentFill)
            {
                this.x74e209c76c4b5a3e = new x7a797590a9beb775(hollow);
                if (true)
                {
                    if ((uint)hollow - (uint)hollow <= uint.MaxValue)
                    {
                        return;
                    }
                    goto label_12;
                }
            }
            if ((uint)flag - (uint)hollow <= uint.MaxValue)
            {
                return;
            }
label_6:
            this.xa6607dfd4b3038ad = control.FindForm();
            if (this.xa6607dfd4b3038ad != null)
            {
                this.xa6607dfd4b3038ad.Deactivate += new EventHandler(this.xbf6ca0f637696dc9);
                goto label_4;
            }
            else
            {
                goto label_4;
            }
label_8:
            this.x48cee1d69929b4fe = dockingHints;
            if ((uint)flag > uint.MaxValue)
            {
                return;
            }
            goto label_6;
label_9:
            dockingHints = DockingHints.RubberBand;
            if ((uint)flag - (uint)hollow < 0U)
            {
                goto label_4;
            }
            else
            {
                goto label_8;
            }
        }