Ejemplo n.º 1
0
        private void AddNewEmulator()
        {
            SystemEditForm form   = new SystemEditForm(null);
            DialogResult   result = form.ShowDialog();

            if (result == DialogResult.OK)
            {
                SystemSelectionForm.AddSystem(form.GameSystem);
                UpdateGrid();
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }