private void LogOutSuccess(S.LogOutSuccess p) { for (int i = 0; i <= 3; i++)//Fix for orbs sound SoundManager.StopSound(20000 + 126 * 10 + 5 + i); User = null; if (Settings.Resolution != 800) CMain.SetResolution(800, 600); ActiveScene = new SelectScene(p.Characters); Dispose(); }
private void LogOutSuccess(S.LogOutSuccess p) { User = null; if (Settings.HighResolution) CMain.SetResolution(800, 600); ActiveScene = new SelectScene(p.Characters); Dispose(); }
private void Login(S.LoginSuccess p) { Enabled = false; _login.Dispose(); if(_ViewKey != null && !_ViewKey.IsDisposed) _ViewKey.Dispose(); SoundManager.PlaySound(SoundList.LoginEffect); _background.Animated = true; _background.AfterAnimation += (o, e) => { Dispose(); ActiveScene = new SelectScene(p.Characters); }; }
private void LogOutSuccess(S.LogOutSuccess p) { User = null; ActiveScene = new SelectScene(p.Characters); Dispose(); }