Exemplo n.º 1
0
		//-------------------------------------------------------------------------------------
		private Image GetResourceImage(string name)
		{
			ComponentResourceManager c = null;
			try
			{
				c = new ComponentResourceManager(typeof(global::Sim.Shell.Properties.Resources));
				Image img = (Image)c.GetObject(name);
				return img;
			}
			catch (Exception Err)
			{
				Sim.Controls.ErrorBox.Show(Err);
				return null;
			}
			finally
			{
				if (c != null)
					c.ReleaseAllResources();
			}
		}