private void btnEditStructure_Click(object sender, EventArgs e) { using (StructureView structure = new StructureView(_logicSystem, _structureOverLayViewModel.DepartmentId)) { structure.ShowDialog(); if (structure.DialogResult == DialogResult.OK) { } } }
private void btnAddStructure_Click(object sender, EventArgs e) { using (StructureView structure = new StructureView(_logicSystem)) { structure.ShowDialog(); if (structure.DialogResult == DialogResult.OK) { } } }