public void XmppClient_OnAuthError(object sender, Matrix.Xmpp.Sasl.FailureCondition e) { if (context.GetType() == typeof(LoginActivity)) { LoginActivity lg = (LoginActivity)context; lg.XmppClient_OnAuthError(sender, e); } }
public void Xmpp_OnConnected(object sender, EventArgs e) { if (appPreferences.isFisrtAcess(AppPreferences.FIRST_ACCESS)) { this.App.Xmpp.ListGroup(); } if (context.GetType() == typeof(SplashAuthVideo)) { loginGroups(); SplashAuthVideo sp = (SplashAuthVideo)context; sp.Xmpp_OnConnected(sender, e); } else if (context.GetType() == typeof(LoginActivity)) { LoginActivity lg = (LoginActivity)context; lg.Xmpp_OnConnected(sender, e); } else if (context.GetType() == typeof(SessionActivity)) { loginGroups(); } }