public static void GetConversationNotification(Grid p1, TextBlock p2, TileNotification p3) { if (!NetworkInterface.GetIsNetworkAvailable()) { return; } if (App.Session_LoadSession("xf_session").Replace(" ", "") == "" && General.username.Replace(" ", "") == "") //hdp. { p1.Visibility = Visibility.Collapsed; return; } if (App.Session_LoadSession("aNotify") == "0") { p1.Visibility = Visibility.Collapsed; return; } //progress.IsVisible = true; mnotification = p1; mcount = p2; ccount = p3; //parametre listesini temizliyoruz General.general_list.Clear(); //apiyi cagirma komutunu kullaniyoruz Oauth.XmlRpcExecMethod("get_inbox_stat", cCompleted); }
public static void CheckFields(string u_name, string u_pass, bool wokeup) { if (u_name.Replace(" ", "") != "" && u_pass.Replace(" ", "") != "") { if (!NetworkInterface.GetIsNetworkAvailable()) { return; } MainPage.loggedin = -1; wokedup = wokeup; user_name = u_name; user_pass = u_pass; General.general_list.Clear(); General.general_list.Add("base64|" + General.EncodeBase64(u_name)); General.general_list.Add("base64|" + General.EncodeBase64(u_pass)); Oauth.XmlRpcExecMethod("login", uCompleted); } }