/*/public void xCompleted(object sender, UploadStringCompletedEventArgs e) * { * try * { * if (Oauth.ParseXML("result", e.Result) == "1" && Oauth.ParseXML("result_text", e.Result) == "") * { * MessageBox.Show("Konuşma başarıyla silindi."); * GetConversations(); * } * else if (Oauth.ParseXML("result", e.Result) == "0" && Oauth.ParseXML("result_text", e.Result) != "") * MessageBox.Show(General.DecodeBase64(Oauth.ParseXML("result_text", e.Result))); * } * catch (TargetInvocationException ex) * { * BugSenseHandler.Instance.SendExceptionAsync(ex); * * MessageBox.Show("Lütfen yeniden deneyin."); * //MessageBox.Show(ex.Message); * } * catch (Exception ex) * { * BugSenseHandler.Instance.SendExceptionAsync(ex); * MessageBox.Show("Bir hata oluştu : c0x003"); * //General.SendBugReport(e.Result, "c0x003", ex.Message, ex.Source, ex.HelpLink); * } * }/*/ private void chatList_SelectionChanged(object sender, SelectionChangedEventArgs e) { Chats drv = (Chats)chatList.SelectedItem; if (drv != null) { if (App.Session_LoadSession("aRefresh") == "1") { isLoaded = false; } classes.General.conv_participants = drv.usersInfo; NavigationService.Navigate(new Uri("/conv/ConvSend.xaml?box_id=" + drv.chatID + "&mcount=" + drv.replyCount.Replace("toplam ", "").Replace(" yanıt", ""), UriKind.Relative)); } chatList.SelectedItem = null; ////chatList.SelectedIndex = -1; }
private void unread_Click(object sender, EventArgs e) { Chats drv = (sender as MenuItem).DataContext as Chats; if (drv != null) { if (MessageBox.Show("Bu konuşmayı okunmadı olarak işaretlemek istiyor musunuz?", "Onaylama", MessageBoxButton.OKCancel) == MessageBoxResult.OK) { if (classes.General.CheckNetwork() == "Fail") { return; } classes.General.general_list.Clear(); classes.General.general_list.Add(drv.chatID); classes.Oauth.XmlRpcExecMethod("mark_conversation_unread", zCompleted); } } }