public void SetBitmaps(FileManager fileManager, HGLWindowStyle windowStyle) { AtlasImageLoader loader; loader = new AtlasImageLoader(); loader.LoadAtlas(@"data\uix\xml\main_atlas.xml", fileManager); List <Bitmap> imageList = new List <Bitmap>(); imageList.Clear(); imageList.Add(loader.GetImage(windowStyle + "_1_TL")); imageList.Add(loader.GetImage(windowStyle + "_2_TM")); imageList.Add(loader.GetImage(windowStyle + "_3_TR")); imageList.Add(loader.GetImage(windowStyle + "_4_ML")); imageList.Add(loader.GetImage(windowStyle + "_5_MM")); imageList.Add(loader.GetImage(windowStyle + "_6_MR")); imageList.Add(loader.GetImage(windowStyle + "_7_BL")); imageList.Add(loader.GetImage(windowStyle + "_8_BM")); imageList.Add(loader.GetImage(windowStyle + "_9_BR")); SetBitmaps(imageList); loader.ClearImageList(); imageList.Clear(); }
public void SetBitmaps(FileManager fileManager, HGLWindowStyle windowStyle) { AtlasImageLoader loader; loader = new AtlasImageLoader(); loader.LoadAtlas(@"data\uix\xml\main_atlas.xml", fileManager); List<Bitmap> imageList = new List<Bitmap>(); imageList.Clear(); imageList.Add(loader.GetImage(windowStyle + "_1_TL")); imageList.Add(loader.GetImage(windowStyle + "_2_TM")); imageList.Add(loader.GetImage(windowStyle + "_3_TR")); imageList.Add(loader.GetImage(windowStyle + "_4_ML")); imageList.Add(loader.GetImage(windowStyle + "_5_MM")); imageList.Add(loader.GetImage(windowStyle + "_6_MR")); imageList.Add(loader.GetImage(windowStyle + "_7_BL")); imageList.Add(loader.GetImage(windowStyle + "_8_BM")); imageList.Add(loader.GetImage(windowStyle + "_9_BR")); SetBitmaps(imageList); loader.ClearImageList(); imageList.Clear(); }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { HGLWindowStyle style = (HGLWindowStyle)Enum.Parse(typeof(HGLWindowStyle), comboBoxWindowStyle.SelectedValue.ToString()); background.SetBitmaps(fileManager, style); HGLForm_Resize(null, null); }