[Mmclibrary-svn] SF.net SVN: mmclibrary: [8] MMCLib2/Nodes/ReportNode.cs
Brought to you by:
imjimmurphy,
kachalkov
From: <tig...@us...> - 2008-06-06 14:23:01
|
Revision: 8 http://mmclibrary.svn.sourceforge.net/mmclibrary/?rev=8&view=rev Author: tigerharry Date: 2008-06-06 07:22:50 -0700 (Fri, 06 Jun 2008) Log Message: ----------- added property ShowRefreshbutton to show the refresh button like on windows event view (F5 to refresh does also work then) Modified Paths: -------------- MMCLib2/Nodes/ReportNode.cs Modified: MMCLib2/Nodes/ReportNode.cs =================================================================== --- MMCLib2/Nodes/ReportNode.cs 2008-06-04 14:45:27 UTC (rev 7) +++ MMCLib2/Nodes/ReportNode.cs 2008-06-06 14:22:50 UTC (rev 8) @@ -24,6 +24,9 @@ // Private vars // #region + //Added by Harald Binkle [tigerharry] + private bool m_ShowRefreshbutton; + //Added by Alexander Kachalkov /// <summary> /// A cached reference to the MMC console @@ -48,6 +51,23 @@ // Properties // #region + //Added by Harald Binkle [tigerharry] + /// <summary> + /// If set to true the standard refresh button will be displayed + /// </summary> + public bool ShowRefreshbutton + { + get + { + return m_ShowRefreshbutton; + } + + set + { + m_ShowRefreshbutton = value; + } + } + //Added by Alexander Kachalkov /// <summary> /// Return the cached member variable to get at MMC @@ -330,6 +350,7 @@ icv.SetVerbState(MMC_CONSOLE_VERB.PROPERTIES, MMC_BUTTON_STATE.ENABLED, 0); System.Diagnostics.Debug.WriteLine("Properties disabled"); } + if (m_ShowRefreshbutton) icv.SetVerbState(MMC_CONSOLE_VERB.REFRESH, MMC_BUTTON_STATE.ENABLED, 1);//Added by Harald Binkle [tigerharry] } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |