00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 using System;
00020 using System.Drawing;
00021 using System.Windows.Forms;
00022 using System.Reflection;
00023
00024 namespace SimImmuno
00025 {
00026 public class ImageList
00027 {
00028 public static Image CellNormal;
00029 public static Image CellInfect;
00030 public static Image Antigen;
00031 public static Image Anticorp;
00032 public static Image LB;
00033 public static Image Plasmocyte;
00034 public static Image Phagocyte;
00035 public static Image CI;
00036 public static Image LT8;
00037 public static Image LTc;
00038 public static Image Debris;
00039 public static Image LT4m;
00040 public static Image LT8m;
00041 public static Image LBm;
00042 public static Image LT4;
00043 public static Image VIH;
00044 public static Image InfectVIH;
00045
00046 public static void LoadImgs()
00047 {
00048
00049 Bitmap bCellNormal = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.CellNormal.bmp"));
00050 Bitmap bCellInfect = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.CellInfect.bmp"));
00051 Bitmap bAntigen = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.Antigen.bmp"));
00052 Bitmap bAnticorp = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.Anticorps.bmp"));
00053 Bitmap bLB = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.LB.bmp"));
00054 Bitmap bPlasmocyte = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.Plasmo.bmp"));
00055 Bitmap bPhagocyte = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.Phago.bmp"));
00056 Bitmap bCI = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.CI.bmp"));
00057 Bitmap bLT8 = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.LT8.bmp"));
00058 Bitmap bLTc = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.LTc.bmp"));
00059 Bitmap bDebris = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.Debris.bmp"));
00060 Bitmap bLT8m = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.LT8m.bmp"));
00061 Bitmap bLT4m = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.LT4m.bmp"));
00062 Bitmap bLBm = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.LBm.bmp"));
00063 Bitmap bLT4 = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.LT4.bmp"));
00064 Bitmap bVIH = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.VIH.bmp"));
00065 Bitmap bInfectVIH = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.InfectVIH.bmp"));
00066
00067 bCellNormal.MakeTransparent();
00068 bCellInfect.MakeTransparent();
00069 bAnticorp.MakeTransparent();
00070 bAntigen.MakeTransparent();
00071 bLB.MakeTransparent();
00072 bPlasmocyte.MakeTransparent();
00073 bPhagocyte.MakeTransparent();
00074 bCI.MakeTransparent();
00075 bLT8.MakeTransparent();
00076 bLTc.MakeTransparent();
00077 bDebris.MakeTransparent();
00078 bLT8m.MakeTransparent();
00079 bLT4m.MakeTransparent();
00080 bLBm.MakeTransparent();
00081 bLT4.MakeTransparent();
00082 bVIH.MakeTransparent();
00083 bInfectVIH.MakeTransparent();
00084
00085 CellNormal = bCellNormal;
00086 CellInfect = bCellInfect;
00087 Anticorp = bAnticorp;
00088 Antigen = bAntigen;
00089 LB = bLB;
00090 Plasmocyte = bPlasmocyte;
00091 Phagocyte = bPhagocyte;
00092 CI = bCI;
00093 LT8 = bLT8;
00094 LTc = bLTc;
00095 Debris = bDebris;
00096 LT8m = bLT8m;
00097 LT4m = bLT4m;
00098 LBm = bLBm;
00099 LT4 = bLT4;
00100 VIH = bVIH;
00101 InfectVIH = bInfectVIH;
00102 }
00103 }
00104 }