private void delete_Click(object sender, RoutedEventArgs e) { if (classes.General.CheckLoggedIn() == "Fail") { return; } TopicPost drv = (sender as MenuItem).DataContext as TopicPost; if (drv != null) { if (drv.pCanDelete == "1") { if (classes.General.CheckNetwork() == "Fail") { return; } classes.General.general_list.Clear(); classes.General.general_list.Add(drv.pID); classes.General.general_list.Add(1); classes.General.general_list.Add("base64|"); classes.Oauth.XmlRpcExecMethod("m_delete_post", mCompleted); } } }
private void unlike_Click(object sender, RoutedEventArgs e) { if (classes.General.CheckLoggedIn() == "Fail") { return; } TopicPost drv = (sender as Button).DataContext as TopicPost; if (drv != null) { if (classes.General.CheckNetwork() == "Fail") { return; } Button sent_button = sender as Button; sent_button.Visibility = Visibility.Collapsed; isLikeOrQuick = 2; like_postid = drv.pID; classes.General.general_list.Clear(); classes.General.general_list.Add(drv.pID); classes.Oauth.XmlRpcExecMethod("unlike_post", hCompleted); } }
private void read_Click(object sender, RoutedEventArgs e) { TopicPost drv = (sender as HyperlinkButton).DataContext as TopicPost; if (drv != null && topic_id != "0") { WebBrowserTask wbt = new WebBrowserTask(); wbt.URL = classes.General.forum_domain + "konu/" + topic_id + "/#post-" + drv.pID; //hdp. wbt.Show(); } }
private void quote_Click(object sender, RoutedEventArgs e) { TopicPost drv = (sender as MenuItem).DataContext as TopicPost; if (drv != null) { isLoaded = 0; NavigationService.Navigate(new Uri("/post/PostCreate.xaml?sforum_id=" + sforum_id + "&topic_id=" + topic_id + "&post_id=" + drv.pID, UriKind.Relative)); } }
private void TextBlock_Tap(object sender, System.Windows.Input.GestureEventArgs e) { TopicPost drv = (sender as TextBlock).DataContext as TopicPost; if (drv != null) { if (drv.likesInfo != "") { classes.General.post_likes = drv.likesInfo; NavigationService.Navigate(new Uri("/post/PostLikes.xaml", UriKind.Relative)); } } }
private void edit_Click(object sender, RoutedEventArgs e) { if (classes.General.CheckLoggedIn() == "Fail") { return; } TopicPost drv = (sender as Button).DataContext as TopicPost; if (drv != null) { isLoaded = 0; NavigationService.Navigate(new Uri("/post/PostEdit.xaml?post_id=" + drv.pID, UriKind.Relative)); } }
private void Grid_Tap(object sender, System.Windows.Input.GestureEventArgs e) { if (classes.General.CheckLoggedIn() == "Fail") { return; } TopicPost drv = (sender as Grid).DataContext as TopicPost; if (drv != null) { if (App.Session_LoadSession("aRefresh") == "1") { this.isLoaded = 0; } NavigationService.Navigate(new Uri("/Profile.xaml?user_name=" + drv.pAuthorName, UriKind.Relative)); } }