Beispiel #1
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;
        }
Beispiel #2
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;
        }