Azmyth.Editor.Grid.Grid C# (CSharp) Method

Grid() public method

public Grid ( ) : System
return System
        public Grid()
        {
            InitializeComponent();

                SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
                SetStyle(ControlStyles.AllPaintingInWmPaint, true);
                SetStyle(ControlStyles.ResizeRedraw, true);
                SetStyle(ControlStyles.UserPaint, true);

                //need to move this into on paint and calcuate the dots based on offset.
                float[] dashValues = { 1, 8};
                m_gridPen = new Pen(Color.Gray, 1);
                //m_gridPen.DashPattern = dashValues;

                m_selectionPen = new Pen(new SolidBrush(Color.Red), 3);
        }