예제 #1
0
        private void favori_Click(object sender, RoutedEventArgs e)
        {
            UserTopic drv = (sender as MenuItem).DataContext as UserTopic;

            if (drv != null)
            {
                classes.General.WriteFavori("fav_topic.txt", classes.General.ReadFavori("fav_topic.txt") + drv.utForumID + "|" + drv.utID + "|" + drv.utTitle + "|" + (u_name.Text + ", " + uType.Text) + "|" + (avatar.Source as BitmapImage).UriSource.OriginalString + "#");
                MessageBox.Show("Favorilere başarıyla eklendi.");
            }
        }
예제 #2
0
        private void participatedList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            UserTopic drv = (UserTopic)participatedList.SelectedItem;

            if (drv != null)
            {
                if (App.Session_LoadSession("aRefresh") == "1")
                {
                    isLoaded = 0;
                }

                NavigationService.Navigate(new Uri("/forum/ForumPost.xaml?sforum_id=" + drv.utForumID + "&topic_id=" + drv.utID, UriKind.Relative));
            }

            participatedList.SelectedIndex = -1;
        }