public void UnInit(ApModuleE module) { if (module == ApModuleE.Online) { GameTypeImages.Clear(); RankImages.Clear(); } }
public static void UnInit(ApModuleE module) { switch (module) { case ApModuleE.None: break; case ApModuleE.Offline: break; case ApModuleE.Online: Ap.MsgQueue.UnInit(); Ap.ApCache.UnInit(module); break; case ApModuleE.Both: break; } }
public void Init(ApModuleE module) { if (module == ApModuleE.Online) { GameTypeImages.Add("1", Image.FromFile(App.Model.Ap.FolderImages + @"GameTypes\1.PNG")); GameTypeImages.Add("2", Image.FromFile(App.Model.Ap.FolderImages + @"GameTypes\2.PNG")); GameTypeImages.Add("3", Image.FromFile(App.Model.Ap.FolderImages + @"GameTypes\3.PNG")); GameTypeImages.Add("4", Image.FromFile(App.Model.Ap.FolderImages + @"GameTypes\4.PNG")); GameTypeImages.Add("5", Image.FromFile(App.Model.Ap.FolderImages + @"GameTypes\5.PNG")); RankImages.Add("Admin", Image.FromFile(App.Model.Ap.FolderImages + @"Ranks\Admin.PNG")); RankImages.Add("Pawn", Image.FromFile(App.Model.Ap.FolderImages + @"Ranks\Pawn.PNG")); RankImages.Add("Knight", Image.FromFile(App.Model.Ap.FolderImages + @"Ranks\Knight.PNG")); RankImages.Add("Bishop", Image.FromFile(App.Model.Ap.FolderImages + @"Ranks\Bishop.PNG")); RankImages.Add("Rook", Image.FromFile(App.Model.Ap.FolderImages + @"Ranks\Rook.PNG")); RankImages.Add("Queen", Image.FromFile(App.Model.Ap.FolderImages + @"Ranks\Queen.PNG")); RankImages.Add("King", Image.FromFile(App.Model.Ap.FolderImages + @"Ranks\King.PNG")); RankImages.Add("Guest", Image.FromFile(App.Model.Ap.FolderImages + @"Ranks\Guest.PNG")); } }
public static void Init(ApModuleE module) { switch (module) { case ApModuleE.None: break; case ApModuleE.Offline: break; case ApModuleE.Online: Ap.MsgQueue.Init(); Ap.ApCache.Init(module); break; case ApModuleE.Both: System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US"); Ap.Options.SetApplicationCode(); CheckUpdateManager(); break; } }