Пример #1
0
        public Code_parserForm()
        {
            InitializeComponent();

            main = new Main();

            lab = new Laboriousness();

            //Настройки таблицы статистики
            stat_grid.GridColor = Color.Black;
            stat_grid.RowHeadersVisible = false;
            stat_grid.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single;
            stat_grid.BorderStyle = BorderStyle.None;
            stat_grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;

            //Кнопка расчета трудоемкости
            countLaboriousness_button.Enabled = false;

            //Knp trackBar

            //Экспорт
            exportWord_ToolStripMenuItem.Enabled = false;
            exportReport_ToolStripMenuItem.Enabled = false;

            //Заполнение трудоемкости
            N_textBox.Text = lab.N.ToString();
            Knp_textBox.Text = lab.Knp.ToString();
            Pp_textBox.Text = lab.Pp.ToString();
            Knp_trackBar.Value = (int)(lab.Knp * 10);
            Kn_textBox.Text = lab.Kn.ToString();
            K2_textBox.Text = lab.K2.ToString();
            K3_textBox.Text = lab.K3.ToString();

            progressBar.Value = 0;
        }
Пример #2
0
        public OperatorsSettings(Main m)
        {
            InitializeComponent();

            main = m;

            operators_grid.GridColor = Color.Black;
            //operators_grid.RowHeadersVisible = false;
            operators_grid.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single;
            operators_grid.BorderStyle = BorderStyle.None;
            operators_grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;

            operators_grid.Columns.Add("operators", "Операторы");

            RefreshGrid(operators_grid, main.operators.operators_list);

            operators_grid.Columns[0].DefaultCellStyle.DataSourceNullValue = " ";
        }