private void pin_Click(object sender, RoutedEventArgs e) { try { ForumSubf drv = (sender as MenuItem).DataContext as ForumSubf; if (drv != null) { FlipTileData ftd = new FlipTileData() { Title = drv.fName, SmallBackgroundImage = new Uri("/images/forum_background.png", UriKind.Relative), BackgroundImage = new Uri("/images/forum_background.png", UriKind.Relative), WideBackgroundImage = new Uri("/images/forum_background_large.png", UriKind.Relative), }; /*StandardTileData std = new StandardTileData(); * std.Title = drv.fName; * std.BackgroundImage = new Uri("/images/forum_background.png", UriKind.Relative);*/ //ShellTile.Create(new Uri("/ForumSub.xaml?forum_id=" + drv.fID, UriKind.Relative), std); ShellTile.Create(new Uri("/MainPage.xaml?forum_id=" + drv.fID, UriKind.Relative), ftd, true); } } catch (Exception ex) { //BugSenseHandler.Instance.SendExceptionAsync(ex); //hicbir sey yapma } }
private void favori_Click(object sender, RoutedEventArgs e) { ForumSubf drv = (sender as MenuItem).DataContext as ForumSubf; if (drv != null) { classes.General.WriteFavori("fav_forum.txt", classes.General.ReadFavori("fav_forum.txt") + drv.fID + "|" + drv.fName + "#"); MessageBox.Show("Favorilere başarıyla eklendi."); } }
private void subfList_SelectionChanged(object sender, SelectionChangedEventArgs e) { ForumSubf drv = (ForumSubf)subfList.SelectedItem; if (drv != null) { if (App.Session_LoadSession("aRefresh") == "1") { isLoaded = 0; } NavigationService.Navigate(new Uri("/forum/ForumTopic.xaml?sforum_id=" + drv.fID, UriKind.Relative)); } subfList.SelectedIndex = -1; }
private void pin_Click(object sender, RoutedEventArgs e) { try { ForumSubf drv = (sender as MenuItem).DataContext as ForumSubf; if (drv != null) { FlipTileData tile = new FlipTileData { Title = drv.fName, BackgroundImage = new Uri("/images/forum_background.png", UriKind.Relative), WideBackBackgroundImage = new Uri("/images/forum_background_large.png", UriKind.Relative) }; ShellTile.Create(new Uri("/MainPage.xaml?sforum_id=" + drv.fID + "&forum_id=" + forum_id, UriKind.Relative), tile, true); } } catch { } }
private void read_Click(object sender, RoutedEventArgs e) { if (classes.General.CheckLoggedIn() == "Fail") { return; } ForumSubf drv = (sender as MenuItem).DataContext as ForumSubf; if (drv != null) { if (MessageBox.Show("Bu forumu okundu 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.fID); classes.Oauth.XmlRpcExecMethod("mark_all_as_read", xCompleted); } } }