public OPMHeaderLabel() : base() { OnThemeUpdated(); this.HandleCreated += (s, e) => EventDispatch.RegisterHandler(this); this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this); }
public OPMPropertyGrid() : base() { ApplyTheme(); 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 ApplicationUpdateHelper() { EventDispatch.RegisterHandler(this); _bwDetect = new BackgroundWorker(); _bwDetect.WorkerReportsProgress = _bwDetect.WorkerSupportsCancellation = false; _bwDetect.DoWork += new DoWorkEventHandler(OnBackgroundDetect); _bwDetect.RunWorkerCompleted += new RunWorkerCompletedEventHandler(OnBackgroundDetectComplete); if (AppConfig.AllowRealtimeGUISetup && AppConfig.AllowAutomaticUpdates) { _bwDetect.RunWorkerAsync(false); } }
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); }
void OPMShellListView_HandleCreated(object sender, EventArgs e) { bckPaths.Clear(); fwdPaths.Clear(); EventDispatch.RegisterHandler(this); if (ShowAttributes == false) { this.Columns.Remove(colAttr); } if (ShowLastAccess == false) { this.Columns.Remove(colLastAccess); } }
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); }
public TrayNotificationTarget(NotifyIcon notifyIcon, Form hostForm) { _notifyIcon = notifyIcon; EventDispatch.RegisterHandler(this); }
private ProxySettings() { EventDispatch.RegisterHandler(this); InitDefaults(); }
public BasicCommandTarget(ICommandTarget target) { _target = target; EventDispatch.RegisterHandler(this); }
void ThemeForm_HandleCreated(object sender, EventArgs e) { ApplyIcons(); EventDispatch.RegisterHandler(this); }
void MediaScreens_HandleCreated(object sender, EventArgs e) { EventDispatch.RegisterHandler(this); ThemeManager.SetDoubleBuffer(this); }