Example #1
0
 public Form CreateEditor()
 {
     if (runtimeEditor != null)
     {
         runtimeEditor.Close();
     }
     runtimeEditor = new RuntimeEditor();
     return(runtimeEditor);
 }
Example #2
0
        /// <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;
        }
Example #3
0
        /// <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;
        }
Example #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();
            }
        }
Example #5
0
 private void runtimeEditor_Closed(object sender, EventArgs e)
 {
     runtimeEditor = null;
 }