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; }
// Start is called before the first frame update void Start() { _cellsModel = GetComponent <CellsModel>(); _cellsView = GetComponent <CellsView>(); }