Example #1
0
 private void listBoxObjects_DoubleClick(object sender, EventArgs e)
 {
     if (this.listBoxObjects.SelectedValue != null)
     {
         EditInstanceForm form = new EditInstanceForm(this.listBoxObjects.SelectedValue);
         form.ShowDialog();
     }
 }
Example #2
0
        private void OnClick(object sender, EventArgs e)
        {
            EditInstanceForm form = new EditInstanceForm(this.Tag);

            form.ShowDialog();
        }
        void OnNameButtonClick(object sender, EventArgs e)
        {
            EditInstanceForm form = new EditInstanceForm(((Control)sender).Tag);

            form.ShowDialog();
        }