示例#1
0
        virtual public void Initialize(IMui parent, Widget client)
        {
            Parent    = parent;
            Container = client;

            if (IsInitialized)
            {
                System.Diagnostics.Debug.Print("{0}=>{1}", Container == null ? Parent.ToString() : Container.ToString(), this);
            }

            this.ParentClick     += WidgetButton_ParentClick;
            this.ParentMouseDown += WidgetButton_ParentMouseDown;
            this.ParentMouseUp   += WidgetButton_ParentMouseUp;
            this.ParentMouseMove += WidgetButton_ParentMouseMove;

            Design();

            foreach (var widget in WidgetsIndexed)
            {
                Widgets[widget].Initialize(parent, this);
            }
            foreach (var sindex in ServicesIndexed)
            {
                Services[sindex].Initialize(this);
                Services[sindex].Register();
            }

            IsInitialized = true;
        }
示例#2
0
        public override void Initialize(IMui parent, Widget client)
        {
            base.Initialize(parent,client);

              Parent.Resize    += Parent_Resize;
              Parent.ResizeEnd += Parent_Resize;
              DoLayout();
        }
示例#3
0
        override public void Initialize(IMui parent, Widget client)
        {
            base.Initialize(parent, client);

            Parent.Resize    += Parent_Resize;
            Parent.ResizeEnd += Parent_Resize;
            DoLayout();
        }
示例#4
0
        virtual public void Uninitialize(IMui parent, Widget client)
        {
            this.ParentClick     -= WidgetButton_ParentClick;
            this.ParentMouseDown -= WidgetButton_ParentMouseDown;
            this.ParentMouseUp   -= WidgetButton_ParentMouseUp;
            this.ParentMouseMove -= WidgetButton_ParentMouseMove;

            foreach (var sindex in ServicesIndexed)
            {
                Services[sindex].Unregister();
            }

            foreach (var i in WidgetsIndexed)
            {
                Widgets[i].Uninitialize(parent, client);
                Widgets[i] = null;
            }

            Widgets       = null;
            IsInitialized = false;
        }
示例#5
0
 public Widget(IMui parent)
 {
     //this.Parent = parent;
     //Initialize(parent,null);
 }
示例#6
0
 public WidgetSlideV(IMui parent) : base(parent)
 {
 }
示例#7
0
 public WidgetSlideH(IMui parent)
     : base(parent)
 {
 }
        public override void Initialize(IMui app, Widget client)
        {
            base.Initialize(app,client);

            TopToBottom();
        }
示例#9
0
 public WidgetMouse(IMui parent) : base(parent)
 {
 }
示例#10
0
 public GridListWidget(IMui parent) : base(parent)
 {
 }
示例#11
0
 public WidgetMidiList(IMui parent)
     : base(parent)
 {
     //
       //      ParentWheel += WidgetMidiList_Wheel;
 }
示例#12
0
 public override void Uninitialize(IMui parent, Widget client)
 {
     Parent.SizeChanged -= parent_Resize;
       base.Uninitialize(parent, client);
 }
 public WidgetGroupMidiList(IMui parent)
 {
     this.Parent = parent;
 }
示例#14
0
 public WidgetButton(IMui parent)
     : base(parent)
 {
 }
示例#15
0
 public WidgetMouse(IMui parent)
     : base(parent)
 {
 }
示例#16
0
 public WidgetClock(IMui parent) : base(parent)
 {
 }
 public WidgetGroupMidiList(IMui parent)
 {
     this.Parent = parent;
 }
示例#18
0
 public WidgetClock(IMui parent)
     : base(parent)
 {
 }
示例#19
0
 public override void Initialize(IMui parent, Widget client)
 {
     base.Initialize(parent, client);
       Parent.SizeChanged += parent_Resize;
 }
        public override void Initialize(IMui app, Widget client)
        {
            base.Initialize(app,client);

              LeftToRight();
        }
示例#21
0
 public override void Initialize(IMui parent, Widget client)
 {
     base.Initialize(parent, client);
     Parent.SizeChanged += parent_Resize;
 }
示例#22
0
 public WidgetButton(IMui parent) : base(parent)
 {
 }
示例#23
0
 public override void Uninitialize(IMui parent, Widget client)
 {
     Parent.SizeChanged -= parent_Resize;
     base.Uninitialize(parent, client);
 }
示例#24
0
 public WidgetLabel(IMui parent)
     : base(parent)
 {
 }
        public override void Initialize(IMui app, Widget client)
        {
            base.Initialize(app, client);

            LeftToRight();
        }
示例#26
0
 public WidgetMidiList(IMui parent) : base(parent)
 {
     //
     //      ParentWheel += WidgetMidiList_Wheel;
 }
示例#27
0
 public WidgetLabel(IMui parent) : base(parent)
 {
 }
示例#28
0
        public override void Initialize(IMui app, Widget client)
        {
            base.Initialize(app, client);

            TopToBottom();
        }
示例#29
0
 public GridListWidget(IMui parent)
     : base(parent)
 {
 }