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