Provides access to resources
The non-static methods and fields are in a separate class so that clients can use this class without the need for a reference to Windows.Forms if all they need is to get some strings.
コード例 #1
0
ファイル: ResourceHelper.cs プロジェクト: sillsdev/WorldPad
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Shut down the one instance of ResourceHelper.
		/// </summary>
		/// <remarks>
		/// This should be called once when the application shuts down.
		/// </remarks>
		/// ------------------------------------------------------------------------------------
		public static void ShutdownHelper()
		{
			if (s_stringResources != null)
				s_stringResources.ReleaseAllResources();
			s_stringResources = null;
			if (s_helpResources != null)
				s_helpResources.ReleaseAllResources();
			s_helpResources = null;
			if (s_form != null)
				s_form.Dispose();
			s_form = null;
		}
コード例 #2
0
ファイル: ResourceHelper.cs プロジェクト: bbriggs/FieldWorks
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Shut down the one instance of ResourceHelper.
		/// </summary>
		/// <remarks>
		/// This should be called once when the application shuts down.
		/// </remarks>
		/// ------------------------------------------------------------------------------------
		public static void ShutdownHelper()
		{
			if (s_form != null)
			{
				s_form.DisposeStaticMembers();
				s_form.Dispose();
			}
			s_form = null;
		}