public Form CreateEditor()
 {
     if (runtimeEditor != null)
     {
         runtimeEditor.Close();
     }
     runtimeEditor = new RuntimeEditor();
     return(runtimeEditor);
 }
        /// <summary>
        /// Show the editor with the selectedObject selected.
        /// </summary>
        /// <param name="selectObject">The object to be selected in the editor</param>
        public void Show(object selectObject)
        {
            if (runtimeEditor != null)
            {
                runtimeEditor.Close();
            }

            runtimeEditor = new RuntimeEditor();
            runtimeEditor.Show();
            runtimeEditor.Closed        += new EventHandler(runtimeEditor_Closed);
            runtimeEditor.SelectedObject = selectObject;
        }
        /// <summary>
        /// Show the object editor form.
        /// </summary>
        public void Show()
        {
            object activeSelectedObject = null;

            if (runtimeEditor != null)
            {
                activeSelectedObject = runtimeEditor.SelectedObject;
                runtimeEditor.Close();
            }

            runtimeEditor = new RuntimeEditor();
            runtimeEditor.Show();
            runtimeEditor.Closed        += new EventHandler(runtimeEditor_Closed);
            runtimeEditor.SelectedObject = activeSelectedObject;
        }
Exemple #4
0
        private void selectThisItem_Click(object sender, EventArgs e)
        {
            GridItem selectedGridItem = this.SelectedGridItem;

            if (selectedGridItem != null)
            {
                /*object value = selectedGridItem.Value;
                 * IRealValueHolder valueHolder = value as IRealValueHolder;
                 * if (valueHolder != null)
                 * {
                 *  value = valueHolder.RealValue;
                 * }
                 * InvokeSelectRequest(value);*/
                RuntimeEditor re = new RuntimeEditor();
                re.SelectedObject     = selectedGridItem.Value;
                re.EnableWindowFinder = false;
                re.ShowDialog();
            }
        }
 private void runtimeEditor_Closed(object sender, EventArgs e)
 {
     runtimeEditor = null;
 }