SetActiveNode() 개인적인 메소드

private SetActiveNode ( LayoutTreeNode ltn, string className, string layoutName, string partRef ) : void
ltn LayoutTreeNode
className string
layoutName string
partRef string
리턴 void
예제 #1
0
 private void RunConfigureDialog(string nodePath)
 {
     using (var dlg = new XmlDocConfigureDlg())
     {
         // If this is optional and defaults to DictionaryPublicationLayout,
         // it messes up our Dictionary when we make something else configurable (like Classified Dictionary).
         var sProp = XmlUtils.GetAttributeValue(m_xnSpec, "layoutProperty");
         Debug.Assert(sProp != null, "When making a view configurable you need to put a 'layoutProperty' in the XML configuration.");
         dlg.SetConfigDlgInfo(m_xnSpec, Cache, (FwStyleSheet)StyleSheet,
                              FindForm() as IMainWindowDelegateCallbacks, Mediator, sProp);
         if (nodePath != null)
         {
             dlg.SetActiveNode(nodePath);
         }
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             // Configuration may well have changed. Reset XML tables and redraw.
             var sNewLayout = Mediator.PropertyTable.GetStringProperty(sProp, null);
             ResetTables(sNewLayout);
         }
         if (dlg.MasterRefreshRequired)
         {
             m_mediator.SendMessage("MasterRefresh", null);
         }
     }
 }
예제 #2
0
		private void RunConfigureDialog(string nodePath)
		{
			using (XmlDocConfigureDlg dlg = new XmlDocConfigureDlg())
			{
				string sProp = XmlUtils.GetOptionalAttributeValue(m_configurationParameters, "layoutProperty");
				if (String.IsNullOrEmpty(sProp))
					sProp = "DictionaryPublicationLayout";
				dlg.SetConfigDlgInfo(m_configurationParameters, Cache, StyleSheet,
					FindForm() as IMainWindowDelegateCallbacks, m_mediator, sProp);
				dlg.SetActiveNode(nodePath);
				if (dlg.ShowDialog(this) == DialogResult.OK)
				{
					string sNewLayout = m_mediator.PropertyTable.GetStringProperty(sProp, null);
					m_mainView.ResetTables(sNewLayout);
					SelectAndScrollToCurrentRecord();
				}
				if (dlg.MasterRefreshRequired)
					m_mediator.SendMessage("MasterRefresh", null);
			}
		}
예제 #3
0
 private void RunConfigureDialog(string nodePath)
 {
     using (var dlg = new XmlDocConfigureDlg())
     {
         // If this is optional and defaults to DictionaryPublicationLayout,
         // it messes up our Dictionary when we make something else configurable (like Classified Dictionary).
         var sProp = XmlUtils.GetAttributeValue(m_xnSpec, "layoutProperty");
         Debug.Assert(sProp != null, "When making a view configurable you need to put a 'layoutProperty' in the XML configuration.");
         dlg.SetConfigDlgInfo(m_xnSpec, Cache, (FwStyleSheet)StyleSheet,
             FindForm() as IMainWindowDelegateCallbacks, Mediator, sProp);
         if (nodePath != null)
             dlg.SetActiveNode(nodePath);
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             // Configuration may well have changed. Reset XML tables and redraw.
             var sNewLayout = Mediator.PropertyTable.GetStringProperty(sProp, null);
             ResetTables(sNewLayout);
         }
         if (dlg.MasterRefreshRequired)
             m_mediator.SendMessage("MasterRefresh", null);
     }
 }