private void buttonEditar_Click(object sender, EventArgs e) { Equipo equipo = (Equipo)dataGrid.CurrentRow.DataBoundItem; Form form = new ItemEditForm <Equipo>(ref equipo); form.Show(); }
public MainForm() { InitializeComponent(); InitializeSettings(); InitializeTooltips(); _randomizer = new Randomizer(_settings); ItemEditor = new ItemEditForm(_settings); ItemEditor.FormClosing += ItemEditor_FormClosing; UpdateCustomItemAmountLabel(); StartingItemEditor = new StartingItemEditForm(_settings); StartingItemEditor.FormClosing += StartingItemEditor_FormClosing; UpdateCustomStartingItemAmountLabel(); JunkLocationEditor = new JunkLocationEditForm(_settings); JunkLocationEditor.FormClosing += JunkLocationEditor_FormClosing; UpdateJunkLocationAmountLabel(); LogicEditor = new LogicEditorForm(); Manual = new ManualForm(); About = new AboutForm(); Text = AssemblyVersion; }
public MainForm() { InitializeComponent(); InitializeSettings(); InitializeTooltips(); _randomizer = new Randomizer(_settings); ItemEditor = new ItemEditForm(_settings); LogicEditor = new LogicEditorForm(); Manual = new ManualForm(); About = new AboutForm(); Text = AssemblyVersion; }
private void buttonEdit_Click(object sender, EventArgs e) { Form form = new ItemEditForm <Customer>(ref customer); form.Show(); }