Пример #1
0
        private void buttonModifica_Click(object sender, EventArgs e)
        {
            ModifierForm          f   = new ModifierForm();
            ModifierFormPresenter mfp = new ModifierFormPresenter(f);

            mfp.SetEditableObject(((ToolStripMenuItem)sender).Tag);
            f.ShowDialog();
        }
Пример #2
0
        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();
            }
        }
Пример #3
0
        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;
        }