public void AddFormShow(Form_Show fm) { flowLayoutPanel1.Controls.Add(fm); devices_list.Add(fm); fm.Computer_RBS(); fm.OnRoomChanged += Fm_OnRoomChanged; fm.Show(); }
public void AddFormShow(string ip, string mac) { Form_Show fm = new Form_Show(); fm.FormName = ip; fm.TopLevel = false; fm.Parent = flowLayoutPanel1; fm.AddDevice(ip, mac); fm.RoomList = roomList; fm.RoomName = roomName; flowLayoutPanel1.Controls.Add(fm); devices_list.Add(fm); fm.Computer_RBS(); fm.Show(); }