private void Client_Exited(object sender, EventArgs e) { try { Application.Current.Dispatcher.Invoke(delegate { AccountClientManager.Remove(this); }); } catch (Exception err) { } foreach (var plugin in PluginManager.PluginCollection) { plugin.Client_Exit(); } Dispose(); }
new public bool Start() { foreach (var plugin in PluginManager.PluginCollection) { plugin.Client_PreLaunch(); } try { return(base.Start()); } catch (Exception err) { System.Windows.MessageBox.Show("Could not launch Gw2. Invalid path?\n" + err.Message); Application.Current.Dispatcher.Invoke(delegate { AccountClientManager.Remove(this); }); return(false); } }