/// <summary> /// Called when the Show Application StyleSheets is clicked - shows the NApplicaiton. /// </summary> /// <param name="arg1"></param> void OnShowApplicationStyleSheetsClick(NEventArgs arg1) { NDesigner designer = NDesigner.GetDesigner(NApplication.Desktop.OwnerDocument.StyleSheets); NEditor editor = designer.CreateInstanceEditor(NApplication.Desktop.OwnerDocument.StyleSheets); NEditorWindow window = new NEditorWindow(); window.RemoveFromParentOnClose = true; window.Editor = editor; NApplication.Desktop.Windows.Add(window); window.Open(); }
private void OnButtonClick(NEventArgs args) { NButton button = args.TargetNode as NButton; if (button == null) { return; } NDesigner designer = (NDesigner)button.Tag; NEditor editor = designer.CreateInstanceEditor(m_Node); NEditorWindow window = NApplication.CreateTopLevelWindow <NEditorWindow>(); window.Editor = editor; window.Modal = false; window.Open(); }