public OPMPropertyGrid() : base() { ApplyTheme(); this.HandleCreated += (s, e) => EventDispatch.RegisterHandler(this); this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this); }
public OPMHeaderLabel() : base() { OnThemeUpdated(); this.HandleCreated += (s, e) => EventDispatch.RegisterHandler(this); this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this); }
public OPMSplitContainer() : base() { ApplyTheme(); this.HandleCreated += (s, e) => EventDispatch.RegisterHandler(this); this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this); }
public OPMPanel() : base() { base.BackColor = ThemeManager.BackColor; this.HandleCreated += (s, e) => EventDispatch.RegisterHandler(this); this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this); }
public OPMFlowLayoutPanel() : base() { SetStyle(ControlStyles.OptimizedDoubleBuffer, true); ApplyBackColor(); this.HandleCreated += (s, e) => EventDispatch.RegisterHandler(this); this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this); }
/// <summary> /// Standard contructor. /// Calls also the base class constructor. /// </summary> public OPMGroupBox() : base() { base.BackColor = ThemeManager.BackColor; this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.UserPaint, true); this.HandleCreated += (s, e) => EventDispatch.RegisterHandler(this); this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this); }
public OPMBaseControl() : base() { InitializeComponent(); ApplyBackColor(); this.FontSize = FontSizes.Normal; this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.SetStyle(ControlStyles.DoubleBuffer, true); this.DoubleBuffered = true; this.HandleCreated += (s, e) => EventDispatch.RegisterHandler(this); this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this); }
public OPMTreeView() : base() { SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.ResizeRedraw = true; this.DoubleBuffered = true; this.DrawMode = TreeViewDrawMode.OwnerDrawText; _sil.TransparentColor = Color.Magenta; _sil.Images.Add(Resources.TVState0); _sil.Images.Add(Resources.TVState1); this.StateImageList = _sil; OnThemeUpdated(); this.DrawNode += new DrawTreeNodeEventHandler(OPMTreeView_DrawNode); this.HandleCreated += (s, e) => EventDispatch.RegisterHandler(this); this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this); }
void OPMShellListView_HandleDestroyed(object sender, EventArgs e) { EventDispatch.UnregisterHandler(this); }
void OPMTableLayoutPanel_HandleDestroyed(object sender, EventArgs e) { EventDispatch.UnregisterHandler(this); }
void ThemeForm_FormClosed(object sender, FormClosedEventArgs e) { EventDispatch.UnregisterHandler(this); }
void MediaScreens_HandleDestroyed(object sender, EventArgs e) { EventDispatch.UnregisterHandler(this); }