Beispiel #1
0
        public Monitor()
        {
            InitializeComponent();
            for (int i = 0; i < 10; i++)
            {
                devicesMatrix[i] = new devicesInGrid[10];
            }

            for (int i = 0; i < 10; i++)
            {
                for (int j = 0; j < 10; j++)
                {
                    devicesMatrix[i][j]            = new devicesInGrid();
                    devicesMatrix[i][j].numDevices = -1;
                    devicesMatrix[i][j].x          = i; devicesMatrix[i][j].y = j;
                }
            }
        }
Beispiel #2
0
 private void setPositionsInGrid(devicesInGrid device)
 {
     Canvas.SetLeft(device.deviceCheckbox, initialPosX + offset * device.x);
     Canvas.SetBottom(device.deviceCheckbox, initialPosY + offset * device.y);
 }