private void buttonModifica_Click(object sender, EventArgs e) { ModifierForm f = new ModifierForm(); ModifierFormPresenter mfp = new ModifierFormPresenter(f); mfp.SetEditableObject(((ToolStripMenuItem)sender).Tag); f.ShowDialog(); }
private void button2_Click(object sender, EventArgs e) { ModifierForm f = new ModifierForm(); ModifierFormPresenter mfp = new ModifierFormPresenter(f); mfp.SetEditableObject(pren); if (f.ShowDialog() == DialogResult.OK) { textBox2.Text = pren.ToString(); } }
private void addModifierButton_Click(object sender, EventArgs e) { ModifierForm tmf = new ModifierForm(); tmf.StartPosition = FormStartPosition.CenterParent; tmf.ShowDialog(this); this.modifierList.Add(new IdName(tmf.ObjectId, tmf.ObjectName)); this.modifierListBox.DataSource = null; this.modifierListBox.DataSource = this.modifierList; }