private void AddNewEmulator() { SystemEditForm form = new SystemEditForm(null); DialogResult result = form.ShowDialog(); if (result == DialogResult.OK) { SystemSelectionForm.AddSystem(form.GameSystem); UpdateGrid(); } }
private void EditSelected() { DataGridViewRow row = GetSelectedRow(); if (row == null) { return; } GameSystem system = SystemList[row.Index]; SystemEditForm form = new SystemEditForm(system); DialogResult result = form.ShowDialog(); if (result == DialogResult.OK) { SystemSelectionForm.UpdateSystem(row.Index, form.GameSystem); SystemSelectionForm.SaveSystems(); UpdateGridRow(row.Index); } }