Ejemplo n.º 1
0
        private void WidgetsInit()
        {
            ViewStyler.styleGrid(ref jointsGrid);

            jointsGrid.RowCount = 21;
            for (int i = 0; i < 21; i++)
            {
                int number = i + 1;
                jointsGrid[0, i].Value = number.ToString();
            }
        }
Ejemplo n.º 2
0
        private void WidgetsInit()
        {
            ViewStyler.styleGrid(ref powerStateGrid);

            powerStateGrid.RowCount    = 6;
            powerStateGrid[0, 0].Value = "12 Вольт";
            powerStateGrid[0, 1].Value = "48 Вольт";
            powerStateGrid[0, 2].Value = "8 Вольт (1)";
            powerStateGrid[0, 3].Value = "8 Вольт (2)";
            powerStateGrid[0, 4].Value = "6 Вольт (1)";
            powerStateGrid[0, 5].Value = "6 Вольт (2)";

            for (int i = 0; i < 6; i++)
            {
                powerStateGrid[1, i].Value = "0.00";
                powerStateGrid[2, i].Value = "0.00";
            }
        }
Ejemplo n.º 3
0
        private void WidgetsInit()
        {
            ViewStyler.styleGrid(ref jointParamsGrid);

            jointParamsGrid.RowCount    = 4;
            jointParamsGrid[0, 0].Value = "Номер";
            jointParamsGrid[0, 1].Value = "Включен";
            jointParamsGrid[0, 2].Value = "Статус";
            jointParamsGrid[0, 3].Value = "За пределами";

            for (int i = 0; i < 4; i++)
            {
                jointParamsGrid[1, i].Value = notSetText;
            }

            lowerLimitLable.Text      = notSetText;
            upperLimitLable.Text      = notSetText;
            currentPositionLable.Text = notSetText;
        }
Ejemplo n.º 4
0
        private void WidgetsInit()
        {
            ViewStyler.styleGrid(ref sensorsGrid);

            sensorsGrid.RowCount    = 11;
            sensorsGrid[0, 0].Value = 1;
            sensorsGrid[0, 1].Value = 2;
            sensorsGrid[0, 2].Value = 3;

            sensorsGrid[1, 0].Value = "Инерциальные";
            sensorsGrid[1, 1].Value = "Инерциальные";
            sensorsGrid[1, 2].Value = "Инерциальные";

            sensorsGrid[2, 0].Value = "Гироскоп X";
            sensorsGrid[2, 1].Value = "Гироскоп Y";
            sensorsGrid[2, 2].Value = "Гироскоп Z";

            sensorsGrid[3, 0].Value = "123";
            sensorsGrid[3, 1].Value = "456";
            sensorsGrid[3, 2].Value = "-56";

            sensorsGraph.setTitle("Данные с датчиков");
            sensorsGraph.setYAxisTitle("Значение");
        }