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; }
public override void Initialize(IMui parent, Widget client) { base.Initialize(parent,client); Parent.Resize += Parent_Resize; Parent.ResizeEnd += Parent_Resize; DoLayout(); }
override public void Initialize(IMui parent, Widget client) { base.Initialize(parent, client); Parent.Resize += Parent_Resize; Parent.ResizeEnd += Parent_Resize; DoLayout(); }
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; }
public Widget(IMui parent) { //this.Parent = parent; //Initialize(parent,null); }
public WidgetSlideV(IMui parent) : base(parent) { }
public WidgetSlideH(IMui parent) : base(parent) { }
public override void Initialize(IMui app, Widget client) { base.Initialize(app,client); TopToBottom(); }
public WidgetMouse(IMui parent) : base(parent) { }
public GridListWidget(IMui parent) : base(parent) { }
public WidgetMidiList(IMui parent) : base(parent) { // // ParentWheel += WidgetMidiList_Wheel; }
public override void Uninitialize(IMui parent, Widget client) { Parent.SizeChanged -= parent_Resize; base.Uninitialize(parent, client); }
public WidgetGroupMidiList(IMui parent) { this.Parent = parent; }
public WidgetButton(IMui parent) : base(parent) { }
public WidgetClock(IMui parent) : base(parent) { }
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(); }
public WidgetLabel(IMui parent) : base(parent) { }
public override void Initialize(IMui app, Widget client) { base.Initialize(app, client); LeftToRight(); }
public override void Initialize(IMui app, Widget client) { base.Initialize(app, client); TopToBottom(); }