private void MachineType_Click(object sender, EventArgs e) { if (!CheckDog()) { return; } FormCollection fc = Application.OpenForms; if (fc["MachineTypeForm"] == null) { MachineTypeForm machineTypeForm = new MachineTypeForm(); machineTypeForm.ShowDialog(); } else { fc["MachineTypeForm"].Select(); } }
private void btnInsert_Click(object sender, EventArgs e) { MachineTypeForm mf = new MachineTypeForm(); mf.ShowDialog(); }