Example #1
0
        /// <summary>
        /// create source table/создать таблицу источников
        /// </summary>
        private void CreateSourceGrid()
        {
            DataGridView newGrid = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect, DataGridViewAutoSizeRowsMode.None);

            newGrid.ScrollBars = ScrollBars.Vertical;

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = newGrid.DefaultCellStyle;

            DataGridViewColumn colum0 = new DataGridViewColumn();

            colum0.CellTemplate = cell0;
            colum0.HeaderText   = OsLocalization.Data.Label4;
            colum0.ReadOnly     = true;
            colum0.Width        = 100;
            newGrid.Columns.Add(colum0);

            DataGridViewColumn colu = new DataGridViewColumn();

            colu.CellTemplate = cell0;
            colu.HeaderText   = OsLocalization.Data.Label5;
            colu.ReadOnly     = true;
            colu.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colu);

            _gridSources                  = newGrid;
            _gridSources.DoubleClick     += _gridSources_DoubleClick;
            _hostSource.Child             = _gridSources;
            _hostSource.VerticalAlignment = VerticalAlignment.Top;
        }
Example #2
0
        /// <summary>
        /// create a table for papers/создать таблицу для бумаг
        /// </summary>
        private void CreateTable()
        {
            _grid = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect,
                                                    DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders);


            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = _grid.DefaultCellStyle;

            DataGridViewColumn column0 = new DataGridViewColumn();

            column0.CellTemplate = cell0;
            column0.HeaderText   = OsLocalization.Data.Label2;
            column0.ReadOnly     = true;
            column0.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _grid.Columns.Add(column0);

            DataGridViewColumn column1 = new DataGridViewColumn();

            column1.CellTemplate = cell0;
            column1.HeaderText   = OsLocalization.Data.Label3;
            column1.ReadOnly     = true;
            column1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _grid.Columns.Add(column1);

            _grid.KeyPress += SearchSecurity;

            HostSecurity.Child = _grid;
        }
Example #3
0
        private DataGridView GetGrid()
        {
            DataGridView grid = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect, DataGridViewAutoSizeRowsMode.AllCells);

            DataGridViewCellStyle style = grid.DefaultCellStyle;

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = style;

            DataGridViewColumn colum0 = new DataGridViewColumn();

            colum0.CellTemplate = cell0;
            colum0.HeaderText   = "Param name";
            colum0.ReadOnly     = true;
            colum0.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            grid.Columns.Add(colum0);

            DataGridViewColumn colum01 = new DataGridViewColumn();

            colum01.CellTemplate = cell0;
            colum01.HeaderText   = "Value";
            colum01.ReadOnly     = true;
            colum01.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            grid.Columns.Add(colum01);

            return(grid);
        }
Example #4
0
        /// <summary>
        /// create a table for drawing a set
        /// создать таблицу для прорисовки сета
        /// </summary>
        private void CreatePatternGrid()
        {
            _gridPatternsInSet = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect, DataGridViewAutoSizeRowsMode.None);

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = _gridPatternsInSet.DefaultCellStyle;

            DataGridViewColumn column0 = new DataGridViewColumn();

            column0.CellTemplate = cell0;
            column0.HeaderText   = @"№";
            column0.ReadOnly     = true;
            column0.Width        = 50;

            _gridPatternsInSet.Columns.Add(column0);

            DataGridViewColumn column = new DataGridViewColumn();

            column.CellTemplate = cell0;
            column.HeaderText   = OsLocalization.Miner.Message4;
            column.ReadOnly     = true;
            column.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridPatternsInSet.Columns.Add(column);

            _gridPatternsInSet.Rows.Add(null, null);
            _gridPatternsInSet.DoubleClick += _gridPatternsInSet_DoubleClick;
            _gridPatternsInSet.Click       += _gridPatternsInSet_Click;
            _gridPatternsInSet.MouseClick  += _gridPatternsInSet_MouseClick;
        }
Example #5
0
        /// <summary>
        /// create table for sets/создать таблицу для сетов
        /// </summary>
        private void CreateSetGrid()
        {
            DataGridView newGrid = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect, DataGridViewAutoSizeRowsMode.None);

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = newGrid.DefaultCellStyle;

            DataGridViewColumn colum0 = new DataGridViewColumn();

            colum0.CellTemplate = cell0;
            colum0.HeaderText   = OsLocalization.Data.Label3;
            colum0.ReadOnly     = true;
            colum0.Width        = 100;
            newGrid.Columns.Add(colum0);

            DataGridViewColumn colu = new DataGridViewColumn();

            colu.CellTemplate = cell0;
            colu.HeaderText   = OsLocalization.Data.Label5;
            colu.ReadOnly     = true;
            colu.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colu);

            _gridset              = newGrid;
            _gridset.Click       += _gridset_Click;
            _gridset.DoubleClick += _gridset_DoubleClick;
            _hostSets.Child       = _gridset;
        }
        private void CreateGridParam()
        {
            _gridParam = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect,
                                                         DataGridViewAutoSizeRowsMode.None);

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = _gridParam.DefaultCellStyle;

            DataGridViewColumn column0 = new DataGridViewColumn();

            column0.CellTemplate = cell0;
            column0.HeaderText   = "Param Name";
            column0.ReadOnly     = true;
            column0.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;

            _gridParam.Columns.Add(column0);

            DataGridViewColumn column1 = new DataGridViewColumn();

            column1.CellTemplate = cell0;
            column1.HeaderText   = "Value";
            column1.ReadOnly     = false;
            column1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridParam.Columns.Add(column1);

            _gridParam.Rows.Add(null, null);

            HostParameters.Child = _gridParam;
        }
Example #7
0
        private void CreateTable()
        {
            _securitiesNamesGrid = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect,
                                                                   DataGridViewAutoSizeRowsMode.None);

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = _securitiesNamesGrid.DefaultCellStyle;

            DataGridViewColumn column0 = new DataGridViewColumn();

            column0.CellTemplate = cell0;
            column0.HeaderText   = @"Номер";
            column0.ReadOnly     = true;
            column0.Width        = 100;

            _securitiesNamesGrid.Columns.Add(column0);

            DataGridViewColumn column1 = new DataGridViewColumn();

            column1.CellTemplate = cell0;
            column1.HeaderText   = @"Бумага";
            column1.ReadOnly     = false;
            column1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;

            _securitiesNamesGrid.Columns.Add(column1);

            _securitiesNamesGrid.Rows.Add(null, null);

            HostSecuritiesName.Child = _securitiesNamesGrid;
        }
        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();
        }
Example #9
0
        /// <summary>
        /// create phase table on totals tabs
        /// создать таблицу фаз на вкладки итогов
        /// </summary>
        private void CreateTableFazes()
        {
            _gridFazesEnd            = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect, DataGridViewAutoSizeRowsMode.None, true);
            _gridFazesEnd.ScrollBars = ScrollBars.Vertical;
            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = _gridFazesEnd.DefaultCellStyle;

            DataGridViewColumn column0 = new DataGridViewColumn();

            column0.CellTemplate = cell0;
            column0.HeaderText   = OsLocalization.Optimizer.Message23;
            column0.ReadOnly     = true;
            column0.Width        = 100;

            _gridFazesEnd.Columns.Add(column0);

            DataGridViewColumn column1 = new DataGridViewColumn();

            column1.CellTemplate = cell0;
            column1.HeaderText   = OsLocalization.Optimizer.Message24;
            column1.ReadOnly     = true;
            column1.Width        = 150;

            _gridFazesEnd.Columns.Add(column1);

            DataGridViewColumn column = new DataGridViewColumn();

            column.CellTemplate = cell0;
            column.HeaderText   = OsLocalization.Optimizer.Message25;
            column.ReadOnly     = true;
            column.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridFazesEnd.Columns.Add(column);

            DataGridViewColumn column2 = new DataGridViewColumn();

            column2.CellTemplate = cell0;
            column2.HeaderText   = OsLocalization.Optimizer.Message26;
            column2.ReadOnly     = true;
            column2.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridFazesEnd.Columns.Add(column2);

            DataGridViewColumn column3 = new DataGridViewColumn();

            column3.CellTemplate = cell0;
            column3.HeaderText   = OsLocalization.Optimizer.Message27;
            column3.ReadOnly     = true;
            column3.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridFazesEnd.Columns.Add(column3);

            _gridFazesEnd.Rows.Add(null, null);

            WindowsFormsHostFazeNumOnTubResult.Child = _gridFazesEnd;

            _gridFazesEnd.CellClick += _gridFazesEnd_CellClick;
        }
Example #10
0
        // object of log
        // объект лога

        /// <summary>
        /// constructor
        /// конструктор
        /// </summary>
        /// <param name="uniqName">log object name / имя объекта которому принадлежит лог</param>
        /// <param name="startProgram">program createing class / программа создавшая класс</param>
        public Log(string uniqName, StartProgram startProgram)
        {
            _uniqName     = uniqName;
            _startProgram = startProgram;

            if (_watcher == null)
            {
                Activate();
            }

            AddToLogsToCheck(this);

            _grid            = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect, DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders);
            _grid.ScrollBars = ScrollBars.Vertical;
            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = _grid.DefaultCellStyle;

            DataGridViewColumn column0 = new DataGridViewColumn();

            column0.CellTemplate = cell0;
            column0.HeaderText   = OsLocalization.Logging.Column1;
            column0.ReadOnly     = true;
            column0.Width        = 170;

            _grid.Columns.Add(column0);

            DataGridViewColumn column1 = new DataGridViewColumn();

            column1.CellTemplate = cell0;
            column1.HeaderText   = OsLocalization.Logging.Column2;
            column1.ReadOnly     = true;
            column1.Width        = 100;

            _grid.Columns.Add(column1);

            DataGridViewColumn column = new DataGridViewColumn();

            column.CellTemplate = cell0;
            column.HeaderText   = OsLocalization.Logging.Column3;
            column.ReadOnly     = true;
            column.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _grid.Columns.Add(column);

            _grid.Rows.Add(null, null);
            _grid.DoubleClick += _grid_DoubleClick;

            _messageSender = new MessageSender(uniqName, _startProgram);

            CreateErrorLogGreed();
        }
Example #11
0
        private void CreateGrid()
        {
            if (HostAllert == null)
            {
                return;
            }

            if (!HostAllert.Dispatcher.CheckAccess())
            {
                HostAllert.Dispatcher.Invoke(new Action(CreateGrid));
                return;
            }

            GridViewBox = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect, DataGridViewAutoSizeRowsMode.AllCells);

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = GridViewBox.DefaultCellStyle;

            DataGridViewColumn column0 = new DataGridViewColumn();

            column0.CellTemplate = cell0;
            column0.HeaderText   = OsLocalization.Alerts.GridHeader0;
            column0.ReadOnly     = true;
            column0.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            //column0.Width = 150;

            GridViewBox.Columns.Add(column0);

            DataGridViewColumn column = new DataGridViewColumn();

            column.CellTemplate = cell0;
            column.HeaderText   = OsLocalization.Alerts.GridHeader1;
            column.ReadOnly     = true;
            column.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            // column.Width = 150;
            GridViewBox.Columns.Add(column);

            DataGridViewColumn column1 = new DataGridViewColumn();

            column1.CellTemplate = cell0;
            column1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            column1.ReadOnly     = true;
            // column1.Width = 150;
            column1.HeaderText = OsLocalization.Alerts.GridHeader2;
            GridViewBox.Columns.Add(column1);

            GridViewBox.Rows.Add(null, null);
            GridViewBox.Click       += GridViewBox_Click;
            GridViewBox.DoubleClick += GridViewBox_DoubleClick;
        }
        private void CreateGridVisual()
        {
            //_series = CreateSeries("Ma", Color.DodgerBlue, IndicatorChartPaintType.Line, false);

            _gridVisual = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.CellSelect,
                                                          DataGridViewAutoSizeRowsMode.None);

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = _gridVisual.DefaultCellStyle;

            DataGridViewColumn column0 = new DataGridViewColumn();

            column0.CellTemplate = cell0;
            column0.HeaderText   = "Name";
            column0.ReadOnly     = true;
            column0.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;

            _gridVisual.Columns.Add(column0);

            DataGridViewColumn column1 = new DataGridViewColumn();

            column1.CellTemplate = cell0;
            column1.HeaderText   = "Color";
            column1.ReadOnly     = false;
            column1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridVisual.Columns.Add(column1);

            DataGridViewColumn column2 = new DataGridViewColumn();

            column2.CellTemplate = cell0;
            column2.HeaderText   = "Type";
            column2.ReadOnly     = false;
            column2.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridVisual.Columns.Add(column2);

            DataGridViewColumn column3 = new DataGridViewColumn();

            column3.CellTemplate = cell0;
            column3.HeaderText   = "Is Paint";
            column3.ReadOnly     = false;
            column3.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridVisual.Columns.Add(column3);

            _gridVisual.Rows.Add(null, null);

            HostVisual.Child   = _gridVisual;
            _gridVisual.Click += _gridVisual_Click;
        }
Example #13
0
        /// <summary>
        /// create the table for errors
        /// создать таблицу для ошибок
        /// </summary>
        private static void CreateErrorLogGreed()
        {
            if (_gridErrorLog != null)
            {
                return;
            }

            _gridErrorLog = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect,
                                                            DataGridViewAutoSizeRowsMode.AllCells);

            DataGridViewCellStyle style = new DataGridViewCellStyle();

            style.Alignment = DataGridViewContentAlignment.TopLeft;
            style.WrapMode  = DataGridViewTriState.True;
            _gridErrorLog.DefaultCellStyle = style;

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = style;

            DataGridViewColumn column0 = new DataGridViewColumn();

            column0.CellTemplate = cell0;
            column0.HeaderText   = OsLocalization.Logging.Column1;
            column0.ReadOnly     = true;
            column0.Width        = 170;

            _gridErrorLog.Columns.Add(column0);

            DataGridViewColumn column1 = new DataGridViewColumn();

            column1.CellTemplate = cell0;
            column1.HeaderText   = OsLocalization.Logging.Column2;
            column1.ReadOnly     = true;
            column1.Width        = 100;

            _gridErrorLog.Columns.Add(column1);

            DataGridViewColumn column = new DataGridViewColumn();

            column.CellTemplate = cell0;
            column.HeaderText   = OsLocalization.Logging.Column3;
            column.ReadOnly     = true;
            column.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridErrorLog.Columns.Add(column);
        }
Example #14
0
        private DataGridView GetDataGridView()
        {
            DataGridView grid = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect,
                                                                DataGridViewAutoSizeRowsMode.AllCells);

            grid.ReadOnly   = true;
            grid.ScrollBars = ScrollBars.Vertical;

            DataGridViewColumn column = new DataGridViewColumn();

            column.HeaderText   = OsLocalization.Trader.Label60;
            column.CellTemplate = new DataGridViewTextBoxCell();
            column.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            grid.Columns.Add(column);

            return(grid);
        }
Example #15
0
        /// <summary>
        /// create a securities storage table
        /// создать таблицу хранения бумаг
        /// </summary>
        private void CreateSecuritiesTable()
        {
            _grid = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect, DataGridViewAutoSizeRowsMode.None);

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = _grid.DefaultCellStyle;

            DataGridViewColumn column0 = new DataGridViewColumn();

            column0.CellTemplate = cell0;
            column0.HeaderText   = OsLocalization.Data.Label14;
            column0.ReadOnly     = true;
            column0.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _grid.Columns.Add(column0);

            HostSecurities.Child = _grid;
        }
        public void CreateParamDataGrid()
        {
            _newGrid = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.CellSelect, DataGridViewAutoSizeRowsMode.None);

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = _newGrid.DefaultCellStyle;

            DataGridViewColumn colum0 = new DataGridViewColumn();

            colum0.CellTemplate = cell0;
            colum0.HeaderText   = OsLocalization.Market.GridColumn1;
            colum0.ReadOnly     = true;
            colum0.Width        = 200;
            _newGrid.Columns.Add(colum0);

            DataGridViewColumn colu = new DataGridViewColumn();

            colu.CellTemplate = cell0;
            colu.HeaderText   = OsLocalization.Market.GridColumn2;
            colu.ReadOnly     = false;

            colu.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;

            _newGrid.Columns.Add(colu);

            DataGridViewColumn colum1 = new DataGridViewColumn();

            colum1.CellTemplate = cell0;
            colum1.HeaderText   = @"";
            colum1.ReadOnly     = true;
            colum1.Width        = 100;

            _newGrid.Columns.Add(colum1);
            HostSettings.Child = _newGrid;

            _newGrid.CellValueChanged += _newGrid_CellValueChanged;

            _newGrid.Click += _newGrid_Click;
        }
Example #17
0
        /// <summary>
        /// создание таблицы сетов паттернов
        /// </summary>
        private void CreateSetsDataGrid()
        {
            _gridSets = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect, DataGridViewAutoSizeRowsMode.None);

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = _gridSets.DefaultCellStyle;

            DataGridViewColumn column0 = new DataGridViewColumn();

            column0.CellTemplate = cell0;
            column0.HeaderText   = @"№";
            column0.ReadOnly     = true;
            column0.Width        = 50;

            _gridSets.Columns.Add(column0);

            DataGridViewColumn column1 = new DataGridViewColumn();

            column1.CellTemplate = cell0;
            column1.HeaderText   = OsLocalization.Miner.Message4;
            column1.ReadOnly     = true;
            column1.Width        = 150;

            _gridSets.Columns.Add(column1);

            DataGridViewColumn column = new DataGridViewColumn();

            column.CellTemplate = cell0;
            column.HeaderText   = OsLocalization.Miner.Message5;
            column.ReadOnly     = true;
            column.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridSets.Columns.Add(column);

            _gridSets.Rows.Add(null, null);
            _gridSets.Click      += _gridSets_Click;
            _gridSets.MouseClick += _gridSets_MouseClick;

            _hostSets.Child = _gridSets;
        }
Example #18
0
        /// <summary>
        /// create a table for papers/создать таблицу для бумаг
        /// </summary>
        private void CreateTable()
        {
            _grid = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect,
                                                    DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders);
            _grid.ScrollBars = ScrollBars.Vertical;

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = _grid.DefaultCellStyle;

            DataGridViewColumn column0 = new DataGridViewColumn();

            column0.CellTemplate = cell0;
            column0.HeaderText   = OsLocalization.Data.Label2;
            column0.ReadOnly     = true;
            column0.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _grid.Columns.Add(column0);

            DataGridViewColumn column1 = new DataGridViewColumn();

            column1.CellTemplate = cell0;
            column1.HeaderText   = OsLocalization.Data.Label3;
            column1.ReadOnly     = true;
            column1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _grid.Columns.Add(column1);

            DataGridViewCheckBoxColumn colum6 = new DataGridViewCheckBoxColumn();

            //colum6.CellTemplate = cell0;
            colum6.HeaderText = OsLocalization.Trader.Label171;
            colum6.ReadOnly   = false;
            colum6.Width      = 50;
            _grid.Columns.Add(colum6);

            HostSecurity.Child = _grid;


            TextBoxSearchSec.Text         = OsLocalization.Trader.Label174;
            TextBoxSearchSec.TextChanged += TextBoxSearchSec_TextChanged;
        }
        private void CreateGridScriptIndicators()
        {
            _gridNamesScript = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect,
                                                               DataGridViewAutoSizeRowsMode.AllCells);

            _gridNamesScript.ReadOnly   = true;
            _gridNamesScript.ScrollBars = ScrollBars.Vertical;
            HostNamesScript.Child       = _gridNamesScript;
            DataGridViewColumn column = new DataGridViewColumn();

            column.HeaderText   = OsLocalization.Charts.LabelIndicatorType;
            column.CellTemplate = new DataGridViewTextBoxCell();
            column.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridNamesScript.Columns.Add(column);

            List <string> indName = IndicatorsFactory.GetIndicatorsNames();

            for (int i = 0; i < indName.Count; i++)
            {
                _gridNamesScript.Rows.Add(indName[i]);
            }
            _gridNamesScript.Click += delegate { _lastScriptGrid = true; };
        }
Example #20
0
        public IbContractStorageUi(List <SecurityIb> secToSubscrible)
        {
            InitializeComponent();
            SecToSubscrible = secToSubscrible;

            _grid = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect, DataGridViewAutoSizeRowsMode.None);

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = _grid.DefaultCellStyle;

            DataGridViewColumn column0 = new DataGridViewColumn();

            column0.CellTemplate = cell0;
            column0.HeaderText   = OsLocalization.Market.Label42;
            column0.ReadOnly     = false;
            column0.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            // column0.Width = 150;

            _grid.Columns.Add(column0);

            DataGridViewColumn column = new DataGridViewColumn();

            column.CellTemplate = cell0;
            column.HeaderText   = OsLocalization.Market.Label43;
            column.ReadOnly     = false;
            column.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            // column.Width = 150;
            _grid.Columns.Add(column);

            DataGridViewColumn column1 = new DataGridViewColumn();

            column1.CellTemplate = cell0;
            column1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            column1.ReadOnly     = false;
            // column1.Width = 150;
            column1.HeaderText = OsLocalization.Market.Label44;
            _grid.Columns.Add(column1);

            DataGridViewColumn column3 = new DataGridViewColumn();

            column3.CellTemplate = cell0;
            column3.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            column3.ReadOnly     = false;
            // column1.Width = 150;
            column3.HeaderText = OsLocalization.Market.Label45;
            _grid.Columns.Add(column3);

            DataGridViewColumn column4 = new DataGridViewColumn();

            column4.CellTemplate = cell0;
            column4.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            column4.ReadOnly     = false;
            // column1.Width = 150;
            column4.HeaderText = OsLocalization.Market.Label46;
            _grid.Columns.Add(column4);


            _grid.Rows.Add(null, null);
            _grid.Click            += _grid_Click;
            _grid.CellValueChanged += _grid_CellValueChanged;
            Host.Child              = _grid;
            LoadSecOnTable();
        }
        /// <summary>
        /// constructor
        /// конструктор
        /// </summary>
        /// <param name="chartMaster">class indicator manager/класс менеджер индикаторов</param>
        public IndicarotCreateUi(ChartCandleMaster chartMaster)
        {
            InitializeComponent();
            _chartMaster = chartMaster;

            _gridViewIndicators = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect,
                                                                  DataGridViewAutoSizeRowsMode.AllCells);

            _gridViewIndicators.ReadOnly   = true;
            _gridViewIndicators.ScrollBars = ScrollBars.Vertical;
            HostNames.Child = _gridViewIndicators;
            DataGridViewColumn column = new DataGridViewColumn();

            column.HeaderText   = OsLocalization.Charts.LabelIndicatorType;
            column.CellTemplate = new DataGridViewTextBoxCell();
            column.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridViewIndicators.Columns.Add(column);

            _gridViewIndicators.Rows.Add("Adaptive Look Back");
            _gridViewIndicators.Rows.Add("ADX");
            _gridViewIndicators.Rows.Add("ATR");
            _gridViewIndicators.Rows.Add("Alligator");
            _gridViewIndicators.Rows.Add("AO");
            _gridViewIndicators.Rows.Add("AC");
            _gridViewIndicators.Rows.Add("AccumulationDistribution");
            _gridViewIndicators.Rows.Add("Bollinger");
            _gridViewIndicators.Rows.Add("BFMFI");
            _gridViewIndicators.Rows.Add("BullsPower");
            _gridViewIndicators.Rows.Add("BearsPower");
            _gridViewIndicators.Rows.Add("CMO");
            _gridViewIndicators.Rows.Add("CCI");
            _gridViewIndicators.Rows.Add("DonchianChannel");
            _gridViewIndicators.Rows.Add("Envelops");
            _gridViewIndicators.Rows.Add("Efficiency Ratio");
            _gridViewIndicators.Rows.Add("Fractal");
            _gridViewIndicators.Rows.Add("Force Index");
            _gridViewIndicators.Rows.Add("OnBalanceVolume");
            _gridViewIndicators.Rows.Add("Ichimoku");
            _gridViewIndicators.Rows.Add("IvashovRange");
            _gridViewIndicators.Rows.Add("KalmanFilter");
            _gridViewIndicators.Rows.Add("Moving Average");
            _gridViewIndicators.Rows.Add("MACD Histogram");
            _gridViewIndicators.Rows.Add("MACD Line");
            _gridViewIndicators.Rows.Add("Momentum");
            _gridViewIndicators.Rows.Add("MoneyFlowIndex");
            _gridViewIndicators.Rows.Add("Parabolic SAR");
            _gridViewIndicators.Rows.Add("Price Channel");
            _gridViewIndicators.Rows.Add("Price Oscillator");
            _gridViewIndicators.Rows.Add("Pivot");
            _gridViewIndicators.Rows.Add("Pivot Points");
            _gridViewIndicators.Rows.Add("RSI");
            _gridViewIndicators.Rows.Add("ROC");
            _gridViewIndicators.Rows.Add("RVI");
            _gridViewIndicators.Rows.Add("Standard Deviation");
            _gridViewIndicators.Rows.Add("Stochastic Oscillator");
            _gridViewIndicators.Rows.Add("Stochastic Rsi");
            _gridViewIndicators.Rows.Add("Trix");
            _gridViewIndicators.Rows.Add("TradeThread");
            _gridViewIndicators.Rows.Add("Unk");
            _gridViewIndicators.Rows.Add("UltimateOscillator");
            _gridViewIndicators.Rows.Add("VerticalHorizontalFilter");
            _gridViewIndicators.Rows.Add("Volume Oscillator");
            _gridViewIndicators.Rows.Add("Volume");
            _gridViewIndicators.Rows.Add("VWAP");
            _gridViewIndicators.Rows.Add("WilliamsRange");

            _gridViewIndicators.Click += delegate { _lastScriptGrid = false; };

            _gridViewAreas = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect,
                                                             DataGridViewAutoSizeRowsMode.AllCells);

            HostArea.Child = _gridViewAreas;

            _gridViewAreas.ReadOnly = true;


            DataGridViewColumn column1 = new DataGridViewColumn();

            column1.HeaderText   = OsLocalization.Charts.LabelIndicatorAreasOnChart;
            column1.CellTemplate = new DataGridViewTextBoxCell();
            column1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridViewAreas.Columns.Add(column1);

            string[] areas = chartMaster.GetChartAreas();

            for (int i = 0; i < areas.Length; i++)
            {
                if (areas[i] != "TradeArea")
                {
                    _gridViewAreas.Rows.Add(areas[i]);
                }
            }

            _gridViewAreas.Rows.Add("NewArea");

            Title = OsLocalization.Charts.TitleIndicatorCreateUi;
            ButtonAccept.Content = OsLocalization.Charts.LabelButtonIndicatorAccept;

            ItemIncluded.Header  = OsLocalization.Charts.Label6;
            TabItemScript.Header = OsLocalization.Charts.Label7;

            CreateGridScriptIndicators();

            TabControlIndicatorsNames.SelectionChanged += delegate
            {
                if (TabControlIndicatorsNames.SelectedIndex == 0)
                {
                    _lastScriptGrid = false;
                }
                else if (TabControlIndicatorsNames.SelectedIndex == 1)
                {
                    _lastScriptGrid = true;
                }
            };
        }
Example #22
0
        /// <summary>
        /// create a table of results
        /// создать таблицу результатов
        /// </summary>
        private void CreateTableResults()
        {
            _gridResults            = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.ColumnHeaderSelect, DataGridViewAutoSizeRowsMode.None, true);
            _gridResults.ScrollBars = ScrollBars.Vertical;

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = _gridResults.DefaultCellStyle;

            DataGridViewColumn column0 = new DataGridViewColumn();

            column0.CellTemplate = cell0;
            column0.HeaderText   = "Bot Name";
            column0.ReadOnly     = true;
            column0.Width        = 150;

            _gridResults.Columns.Add(column0);

            DataGridViewColumn column1 = new DataGridViewColumn();

            column1.CellTemplate = cell0;
            column1.HeaderText   = "Parameters";
            column1.ReadOnly     = false;
            column1.Width        = 150;
            _gridResults.Columns.Add(column1);

            DataGridViewColumn column21 = new DataGridViewColumn();

            column21.CellTemplate = cell0;
            column21.HeaderText   = "Pos Count";
            column21.ReadOnly     = false;
            column21.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridResults.Columns.Add(column21);

            DataGridViewColumn column2 = new DataGridViewColumn();

            column2.CellTemplate = cell0;
            column2.HeaderText   = "Total Profit";
            column2.ReadOnly     = false;
            column2.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridResults.Columns.Add(column2);

            DataGridViewColumn column3 = new DataGridViewColumn();

            column3.CellTemplate = cell0;
            column3.HeaderText   = "Max Drow Dawn";
            column3.ReadOnly     = false;
            column3.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridResults.Columns.Add(column3);

            DataGridViewColumn column4 = new DataGridViewColumn();

            column4.CellTemplate = cell0;
            column4.HeaderText   = "Average Profit";
            column4.ReadOnly     = false;
            column4.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridResults.Columns.Add(column4);

            DataGridViewColumn column5 = new DataGridViewColumn();

            column5.CellTemplate = cell0;
            column5.HeaderText   = "Average Profit %";
            column5.ReadOnly     = false;
            column5.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridResults.Columns.Add(column5);

            DataGridViewColumn column6 = new DataGridViewColumn();

            column6.CellTemplate = cell0;
            column6.HeaderText   = "Profit Factor";
            column6.ReadOnly     = false;
            column6.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridResults.Columns.Add(column6);

            DataGridViewColumn column7 = new DataGridViewColumn();

            column7.CellTemplate = cell0;
            column7.HeaderText   = "Pay Off Ratio";
            column7.ReadOnly     = false;
            column7.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridResults.Columns.Add(column7);

            DataGridViewColumn column8 = new DataGridViewColumn();

            column8.CellTemplate = cell0;
            column8.HeaderText   = "Recovery";
            column8.ReadOnly     = false;
            column8.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridResults.Columns.Add(column8);

            DataGridViewButtonColumn column11 = new DataGridViewButtonColumn();

            column11.CellTemplate = new DataGridViewButtonCell();
            column11.HeaderText   = OsLocalization.Optimizer.Message40;
            column11.ReadOnly     = true;
            column11.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridResults.Columns.Add(column11);

            _gridResults.Rows.Add(null, null);

            WindowsFormsHostResults.Child = _gridResults;
        }
Example #23
0
        private void CreateTable()
        {
            DataGridView newGrid =
                DataGridFactory.GetDataGridView(DataGridViewSelectionMode.CellSelect,
                                                DataGridViewAutoSizeRowsMode.AllCells);

            newGrid.ScrollBars = ScrollBars.Vertical;

            newGrid.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = newGrid.DefaultCellStyle;

            DataGridViewColumn colum0 = new DataGridViewColumn();

            colum0.CellTemplate = cell0;
            colum0.HeaderText   = OsLocalization.Trader.Label165; //"Num";
            colum0.ReadOnly     = true;
            colum0.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum0);

            DataGridViewColumn colum01 = new DataGridViewColumn();

            colum01.CellTemplate = cell0;
            colum01.HeaderText   = OsLocalization.Trader.Label175;//"Name";
            colum01.ReadOnly     = true;
            colum01.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum01);

            DataGridViewColumn colum02 = new DataGridViewColumn();

            colum02.CellTemplate = cell0;
            colum02.HeaderText   = OsLocalization.Trader.Label167;//"Type";
            colum02.ReadOnly     = true;
            colum02.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum02);

            DataGridViewColumn colum04 = new DataGridViewColumn();

            colum04.CellTemplate = cell0;
            colum04.HeaderText   = OsLocalization.Trader.Label176;//"First Security";
            colum04.ReadOnly     = true;
            colum04.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum04);

            DataGridViewColumn colum05 = new DataGridViewColumn();

            colum05.CellTemplate = cell0;
            colum05.HeaderText   = OsLocalization.Trader.Label20;//"Position";
            colum05.ReadOnly     = true;
            colum05.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum05);

            DataGridViewButtonColumn colum06 = new DataGridViewButtonColumn();

            //colum06.CellTemplate = cell0;
            //colum06.HeaderText = "Chart";
            colum06.ReadOnly     = true;
            colum06.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum06);

            DataGridViewButtonColumn colum07 = new DataGridViewButtonColumn();

            //colum07.CellTemplate = cell0;
            //colum07.HeaderText = "Parameters";
            colum07.ReadOnly     = true;
            colum07.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum07);

            DataGridViewButtonColumn colum09 = new DataGridViewButtonColumn();

            // colum09.CellTemplate = cell0;
            //colum09.HeaderText = "Action";
            colum09.ReadOnly     = true;
            colum09.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum09);

            _grid       = newGrid;
            _host.Child = _grid;

            _grid.Click      += _grid_Click;
            _grid.MouseLeave += _grid_MouseLeave;
        }
Example #24
0
        private void CreateGrid()
        {
            // номер, класс, тип, сокращонное название бумаги, полное имя, дополнительное имя, влк/выкл

            DataGridView newGrid =
                DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect, DataGridViewAutoSizeRowsMode.DisplayedCells);

            newGrid.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            newGrid.ScrollBars = ScrollBars.Vertical;
            DataGridViewCellStyle style = newGrid.DefaultCellStyle;

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = style;

            DataGridViewColumn colum0 = new DataGridViewColumn();

            colum0.CellTemplate = cell0;
            colum0.HeaderText   = OsLocalization.Trader.Label165;
            colum0.ReadOnly     = true;
            colum0.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum0);


            DataGridViewColumn colum1 = new DataGridViewColumn();

            colum1.CellTemplate = cell0;
            colum1.HeaderText   = OsLocalization.Trader.Label166;
            colum1.ReadOnly     = true;
            colum1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum1);

            DataGridViewColumn colum2 = new DataGridViewColumn();

            colum2.CellTemplate = cell0;
            colum2.HeaderText   = OsLocalization.Trader.Label167;
            colum2.ReadOnly     = true;
            colum2.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum2);

            DataGridViewColumn colum3 = new DataGridViewColumn();

            colum3.CellTemplate = cell0;
            colum3.HeaderText   = OsLocalization.Trader.Label168;
            colum3.ReadOnly     = true;
            colum3.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum3);

            DataGridViewColumn colum4 = new DataGridViewColumn();

            colum4.CellTemplate = cell0;
            colum4.HeaderText   = OsLocalization.Trader.Label169;
            colum4.ReadOnly     = true;
            colum4.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum4);

            DataGridViewColumn colum5 = new DataGridViewColumn();

            colum5.CellTemplate = cell0;
            colum5.HeaderText   = OsLocalization.Trader.Label170;
            colum5.ReadOnly     = true;
            colum5.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum5);

            DataGridViewCheckBoxColumn colum6 = new DataGridViewCheckBoxColumn();

            //colum6.CellTemplate = cell0;
            colum6.HeaderText = OsLocalization.Trader.Label171;
            colum6.ReadOnly   = false;
            colum6.Width      = 50;
            newGrid.Columns.Add(colum6);


            _gridSecurities      = newGrid;
            SecuritiesHost.Child = _gridSecurities;
        }
Example #25
0
        private void CreateGridDep()
        {
            _gridDep            = DataGridFactory.GetDataGridView(DataGridViewSelectionMode.ColumnHeaderSelect, DataGridViewAutoSizeRowsMode.None);
            _gridDep.ScrollBars = ScrollBars.Vertical;

            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = _gridDep.DefaultCellStyle;

            DataGridViewColumn column0 = new DataGridViewColumn();

            column0.CellTemplate = cell0;
            column0.HeaderText   = "Period";
            column0.ReadOnly     = true;
            column0.Width        = 150;

            _gridDep.Columns.Add(column0);

            DataGridViewColumn column1 = new DataGridViewColumn();

            column1.CellTemplate = cell0;
            column1.HeaderText   = "Start";
            column1.ReadOnly     = false;
            column1.Width        = 150;
            _gridDep.Columns.Add(column1);

            DataGridViewColumn column21 = new DataGridViewColumn();

            column21.CellTemplate = cell0;
            column21.HeaderText   = "End";
            column21.ReadOnly     = false;
            column21.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridDep.Columns.Add(column21);

            DataGridViewColumn column2 = new DataGridViewColumn();

            column2.CellTemplate = cell0;
            column2.HeaderText   = "Best bot number InSample";
            column2.ReadOnly     = false;
            column2.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridDep.Columns.Add(column2);

            DataGridViewColumn column3 = new DataGridViewColumn();

            column3.CellTemplate = cell0;
            column3.HeaderText   = "Parameters";
            column3.ReadOnly     = false;
            column3.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridDep.Columns.Add(column3);

            DataGridViewColumn column4 = new DataGridViewColumn();

            column4.CellTemplate = cell0;
            column4.HeaderText   = "Bot results in OutOfSample";
            column4.ReadOnly     = false;
            column4.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridDep.Columns.Add(column4);

            DataGridViewColumn column5 = new DataGridViewColumn();

            column5.CellTemplate = cell0;
            column5.HeaderText   = "Profit";
            column5.ReadOnly     = false;
            column5.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            _gridDep.Columns.Add(column5);

            _gridDep.Rows.Add(null, null);

            _hostDataGrid.Child = _gridDep;
        }
        private void CreateTable()
        {
            if (MainWindow.GetDispatcher.CheckAccess() == false)
            {
                MainWindow.GetDispatcher.Invoke(new Action(CreateTable));
                return;
            }

            _host = new WindowsFormsHost();

            DataGridView newGrid =
                DataGridFactory.GetDataGridView(DataGridViewSelectionMode.FullRowSelect,
                                                DataGridViewAutoSizeRowsMode.AllCells);

            newGrid.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            DataGridViewTextBoxCell cell0 = new DataGridViewTextBoxCell();

            cell0.Style = newGrid.DefaultCellStyle;

            DataGridViewColumn colum0 = new DataGridViewColumn();

            colum0.CellTemplate = cell0;
            colum0.HeaderText   = "Time";
            colum0.ReadOnly     = true;
            colum0.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum0);

            DataGridViewColumn colum01 = new DataGridViewColumn();

            colum01.CellTemplate = cell0;
            colum01.HeaderText   = "Slow Sma";
            colum01.ReadOnly     = true;
            colum01.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum01);

            DataGridViewColumn colum02 = new DataGridViewColumn();

            colum02.CellTemplate = cell0;
            colum02.HeaderText   = "Fast Sma";
            colum02.ReadOnly     = true;
            colum02.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum02);

            DataGridViewColumn colum03 = new DataGridViewColumn();

            colum03.CellTemplate = cell0;
            colum03.HeaderText   = "Atr";
            colum03.ReadOnly     = true;
            colum03.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum03);

            DataGridViewColumn colum04 = new DataGridViewColumn();

            colum04.CellTemplate = cell0;
            colum04.HeaderText   = "Len in Atr";
            colum04.ReadOnly     = true;
            colum04.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            newGrid.Columns.Add(colum04);

            _host.Child = newGrid;
            _grid       = newGrid;
        }