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

            ApplyBackColor();

            this.HandleCreated   += (s, e) => EventDispatch.RegisterHandler(this);
            this.HandleDestroyed += (s, e) => EventDispatch.UnregisterHandler(this);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #9
0
 void OPMShellListView_HandleDestroyed(object sender, EventArgs e)
 {
     EventDispatch.UnregisterHandler(this);
 }
コード例 #10
0
 void OPMTableLayoutPanel_HandleDestroyed(object sender, EventArgs e)
 {
     EventDispatch.UnregisterHandler(this);
 }
コード例 #11
0
 void ThemeForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     EventDispatch.UnregisterHandler(this);
 }
コード例 #12
0
 void MediaScreens_HandleDestroyed(object sender, EventArgs e)
 {
     EventDispatch.UnregisterHandler(this);
 }