Example #1
0
        public void Unbind()
        {
            if (IsAttached)
                Detach (true);

            if (master != null) {
                DockMaster _master = master;
                master = null;
                _master.Remove (this);
                EmitPropertyEvent ("Master");
            }
        }
Example #2
0
        public void Bind(DockMaster master)
        {
            if (master == null) {
                Console.WriteLine ("Passed master is null");
                Console.WriteLine (System.Environment.StackTrace);
                return;
            }
            if (this.master == master) {
                Console.WriteLine ("Passed master is this master");
                return;
            }
            if (this.master != null) {
                Console.WriteLine ("Attempt to bind an already bound object");
                return;
            }

            master.Add (this);
            this.master = master;
            EmitPropertyEvent ("Master");
        }
        public override void Destroy()
        {
            if (master != null) {
                master.LayoutChanged -= new EventHandler (OnLayoutChanged);
                master = null;
            }

            if (tooltips != null) {
                tooltips = null;
            }

            base.Destroy ();
        }
Example #4
0
        public void Attach(DockMaster master)
        {
            if (master == null)
                return;

            master.LayoutChanged -= new EventHandler (OnLayoutChanged);

            if (itemsModel != null)
                itemsModel.Clear ();

            this.master = master;
            master.LayoutChanged += new EventHandler (OnLayoutChanged);
            UpdateItemsModel ();
        }
        public void Attach(DockMaster master)
        {
            if (master == null)
                return;

            master.LayoutChanged -= new EventHandler (OnLayoutChanged);

            this.master = master;
            master.LayoutChanged += new EventHandler (OnLayoutChanged);
        }