private void btnNewMechanic_Click(object sender, EventArgs e) { MechanicEditorForm editor = Bootstrapper.Resolve <MechanicEditorForm>(); editor.ShowDialog(this); btnSearch.PerformClick(); }
private void cmsEditData_Click(object sender, EventArgs e) { if (_selectedMechanic != null) { MechanicEditorForm editor = Bootstrapper.Resolve <MechanicEditorForm>(); editor.SelectedMechanic = _selectedMechanic; editor.ShowDialog(this); btnSearch.PerformClick(); } }