Example #1
0
        private void InitializeCells(int resNum)
        {
            _cells = new CellCollection(CellCount);
            switch (currAligment)
            {
            case Alignment.Auto:
            {
                _cells.AutoInitializeCells();
                break;
            }

            case Alignment.Manual:
            {
                mainGrid.MouseMove += MainGrid_MouseMove;
                _cells.ManualInitializeCells();
                break;
            }

            case Alignment.Reserved:
            {
                _cells.LoadFromString(DBConn.ReservedData(resNum));
                InitializeGrid();
                break;
            }
            }
        }