Ejemplo n.º 1
0
 public OPMPropertyGrid()
     : base()
 {
     ApplyTheme();
     this.HandleCreated   += (s, e) => EventDispatch.RegisterHandler(this);
     this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this);
 }
Ejemplo n.º 2
0
 public OPMHeaderLabel()
     : base()
 {
     OnThemeUpdated();
     this.HandleCreated   += (s, e) => EventDispatch.RegisterHandler(this);
     this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this);
 }
Ejemplo n.º 3
0
 public OPMSplitContainer()
     : base()
 {
     ApplyTheme();
     this.HandleCreated   += (s, e) => EventDispatch.RegisterHandler(this);
     this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this);
 }
Ejemplo n.º 4
0
 public OPMPanel()
     : base()
 {
     base.BackColor        = ThemeManager.BackColor;
     this.HandleCreated   += (s, e) => EventDispatch.RegisterHandler(this);
     this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this);
 }
Ejemplo n.º 5
0
        public OPMFlowLayoutPanel()
            : base()
        {
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

            ApplyBackColor();

            this.HandleCreated   += (s, e) => EventDispatch.RegisterHandler(this);
            this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 7
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);
        }
Ejemplo n.º 8
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);
        }
 void OPMShellListView_HandleDestroyed(object sender, EventArgs e)
 {
     EventDispatch.UnregisterHandler(this);
 }
Ejemplo n.º 10
0
 void OPMTableLayoutPanel_HandleDestroyed(object sender, EventArgs e)
 {
     EventDispatch.UnregisterHandler(this);
 }
Ejemplo n.º 11
0
 void ThemeForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     EventDispatch.UnregisterHandler(this);
 }
 void MediaScreens_HandleDestroyed(object sender, EventArgs e)
 {
     EventDispatch.UnregisterHandler(this);
 }