Beispiel #1
0
 public static FriendPage GetSingle()
 {
     if (friendpage == null)
     {
         friendpage = new FriendPage();
     }
     return(friendpage);
 }
Beispiel #2
0
        private void btn_frame_clicked(object sender, RoutedEventArgs e)
        {
            switch ((sender as Button).Name.ToString())
            {
            case "btn_find":
                btn_find.IsClicked   = true;
                btn_info.IsClicked   = false;
                btn_me.IsClicked     = false;
                btn_friend.IsClicked = false;
                mainFrame.Navigate(typeof(DeservePage), framelist);
                break;

            case "btn_me":
                btn_find.IsClicked   = false;
                btn_info.IsClicked   = false;
                btn_me.IsClicked     = true;
                btn_friend.IsClicked = false;
                mainFrame.Navigate(typeof(MePage), framelist);
                break;

            case "btn_info":
                btn_find.IsClicked   = false;
                btn_info.IsClicked   = true;
                btn_me.IsClicked     = false;
                btn_friend.IsClicked = false;
                mainFrame.Navigate(typeof(InfoPage), framelist);
                break;

            case "btn_friend":
                btn_find.IsClicked   = false;
                btn_info.IsClicked   = false;
                btn_me.IsClicked     = false;
                btn_friend.IsClicked = true;
                mainFrame.Content    = FriendPage.GetSingle();
                //mainFrame.Navigate(FriendPage.GetSingle().GetType(), framelist);
                break;
            }
        }