예제 #1
0
        public BoardForm(Board i_Board, string i_FirstName, string i_SecondName)
        {
            InitializeComponent();
            FlowLayoutPanel mainLayout = new FlowLayoutPanel();

            mainLayout.FlowDirection = FlowDirection.TopDown;
            mainLayout.Padding       = new Padding(15, 5, 5, 5);
            mainLayout.AutoSize      = true;
            mainLayout.AutoSizeMode  = AutoSizeMode.GrowAndShrink;
            r_CellsView = new CellsView(i_Board);
            r_NamesView = new NamesView(i_FirstName, i_SecondName);
            mainLayout.Controls.AddRange(new Control[] { r_CellsView, r_NamesView });
            Controls.Add(mainLayout);
            AutoSize     = true;
            AutoSizeMode = AutoSizeMode.GrowAndShrink;
            Padding      = new Padding(0, 0, 0, 0);
            Closed      += BoardForm_Closed;
        }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     _cellsModel = GetComponent <CellsModel>();
     _cellsView  = GetComponent <CellsView>();
 }