private void addDeviceButton1_Click(object sender, EventArgs e) { addDeviceForm addDeviceObj = new addDeviceForm(); addDeviceObj.Show(); this.Hide(); }
private void addDeviceButton1_Click(object sender, EventArgs e) { if (lgf.Eid != " ") { addDeviceForm addDeviceObj = new addDeviceForm(); addDeviceObj.TopLevel = false; formPanel.Controls.Clear(); formPanel.Controls.Add(addDeviceObj); addDeviceObj.Show(); } }