Beispiel #1
0
 public OPMHeaderLabel()
     : base()
 {
     OnThemeUpdated();
     this.HandleCreated   += (s, e) => EventDispatch.RegisterHandler(this);
     this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this);
 }
Beispiel #2
0
 public OPMPropertyGrid()
     : base()
 {
     ApplyTheme();
     this.HandleCreated   += (s, e) => EventDispatch.RegisterHandler(this);
     this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this);
 }
Beispiel #3
0
 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);
 }
Beispiel #5
0
        public OPMFlowLayoutPanel()
            : base()
        {
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

            ApplyBackColor();

            this.HandleCreated   += (s, e) => EventDispatch.RegisterHandler(this);
            this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this);
        }
Beispiel #6
0
        /// <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);
        }
Beispiel #7
0
        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);
            }
        }
Beispiel #8
0
        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);
            }
        }
Beispiel #10
0
        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);
        }
Beispiel #11
0
 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);
 }
Beispiel #14
0
 void ThemeForm_HandleCreated(object sender, EventArgs e)
 {
     ApplyIcons();
     EventDispatch.RegisterHandler(this);
 }
 void MediaScreens_HandleCreated(object sender, EventArgs e)
 {
     EventDispatch.RegisterHandler(this);
     ThemeManager.SetDoubleBuffer(this);
 }