chenn
2025-04-11 e98de937b28d42493de5dea6365c853d6b412d3c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#region Imports
 
using DPumpHydr.WinFrmUI.RLT.Util;
using System.ComponentModel;
using System.Windows.Forms;
 
#endregion
 
namespace DPumpHydr.WinFrmUI.RLT.Child.Material
{
    #region MaterialDrawerForm
 
    [ToolboxItem(false)]
    public class MaterialDrawerForm : Form
    {
        public MaterialMouseWheelRedirector MouseWheelRedirector;
 
        public MaterialDrawerForm()
        {
            MouseWheelRedirector = new MaterialMouseWheelRedirector();
            SetStyle(ControlStyles.Selectable | ControlStyles.OptimizedDoubleBuffer | ControlStyles.EnableNotifyMessage, true);
        }
 
        public void Attach(Control control)
        {
            MaterialMouseWheelRedirector.Attach(control);
        }
 
        public void Detach(Control control)
        {
            MaterialMouseWheelRedirector.Detach(control);
        }
    }
 
    #endregion
}