public PatternControllerUi(PatternController pattern)
        {
            InitializeComponent();
            _pattern = pattern;

            InitializeTabDataSeries();
            InitializeTabOpenPosition();

            InitializeTabClosePosition();

            _gridPatternsToOpen                   = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect, DataGridViewAutoSizeRowsMode.None);
            _gridPatternsToOpen.MouseClick       += _gridPatternsToOpen_MouseClick;
            _gridPatternsToOpen.CellValueChanged += _gridPatternsToOpen_CellValueChanged;

            _gridPatternsToClose                   = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect, DataGridViewAutoSizeRowsMode.None);
            _gridPatternsToClose.MouseClick       += _gridPatternsToClose_MouseClick;
            _gridPatternsToClose.CellValueChanged += _gridPatternsToClose_CellValueChanged;

            CreateGridPatternsGrid(_gridPatternsToOpen, HostGridPatternsToOpen);
            CreateGridPatternsGrid(_gridPatternsToClose, HostGridPatternToClose);

            PaintGridPatternsToOpen();
            PaintGridPatternsToClose();

            InitializeTabPatternsSearch();

            InitializeMiningTab();

            Local();
        }
        public PatternControllerUi(PatternController pattern)
        {
            InitializeComponent();
            _pattern = pattern;

            InitializeTabDataSeries();
            InitializeTabOpenPosition();

            InitializeTabClosePosition();

            _gridPatternsToOpen                   = new DataGridView();
            _gridPatternsToOpen.MouseClick       += _gridPatternsToOpen_MouseClick;
            _gridPatternsToOpen.CellValueChanged += _gridPatternsToOpen_CellValueChanged;

            _gridPatternsToClose                   = new DataGridView();
            _gridPatternsToClose.MouseClick       += _gridPatternsToClose_MouseClick;
            _gridPatternsToClose.CellValueChanged += _gridPatternsToClose_CellValueChanged;

            CreateGridPatternsGrid(_gridPatternsToOpen, HostGridPatternsToOpen);
            CreateGridPatternsGrid(_gridPatternsToClose, HostGridPatternToClose);

            PaintGridPatternsToOpen();
            PaintGridPatternsToClose();

            InitializeTabPatternsSearch();



            InitializeMiningTab();
        }