コード例 #1
0
ファイル: LogList.cs プロジェクト: KillerGoldFisch/GCharp
 private void cbParams_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cbParams.SelectedItem == null) return;
     if (!(cbParams.SelectedItem is ComboboxItem)) return;
     RuntimeEditor re = new RuntimeEditor();
     re.SelectedObject = ((ComboboxItem)cbParams.SelectedItem).Value;
     re.EnableWindowFinder = false;
     re.ShowDialog();
 }
コード例 #2
0
 public Form CreateEditor()
 {
     if (runtimeEditor != null)
     {
         runtimeEditor.Close();
     }
     runtimeEditor = new RuntimeEditor();
     return runtimeEditor;
 }
コード例 #3
0
 private void runtimeEditor_Closed(object sender, EventArgs e)
 {
     runtimeEditor = null;
 }
コード例 #4
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;
        }
コード例 #5
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;
        }