예제 #1
0
        private void InitialPage_LayoutUpdated(object sender, EventArgs e)
        {
            this.LayoutUpdated -= InitialPage_LayoutUpdated;

            if (ConsentManager.HasConsented)
            {
                if (!(App.Current as App).JustLoggedOut)
                {
                    TombstoneData data = TombstoneManager.Load();
                    if (data != null)
                    {
                        TinderSession activeSession = TinderSession.FromTombstoneData(data);
                        (App.Current as App).RightSideBar.DataContext = activeSession.Matches;

                        TopBarViewModel.ShowTopButtons = System.Windows.Visibility.Visible;

                        NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));

                        App.RootFrame.RemoveBackEntry();

                        return;
                    }
                }
                else
                {
                    LoginButtonBorder.Visibility = System.Windows.Visibility.Visible;
                }
            }

            if (!(App.Current as App).JustLoggedOut)
            {
                Open.Begin();
            }
        }
 public SettingPage()
 {
     Current = this;
     this.InitializeComponent();
     DataContext = ViewModel;
     Open.Begin();
 }
예제 #3
0
 private void OnPointerEntered(object sender, PointerRoutedEventArgs e)
 {
     Open.Begin();
     if (Selected2)
     {
         return;
     }
     DisplayAsHovered();
 }
예제 #4
0
 private void D_Action(object sender, RoutedEventArgs e)
 {
     if (!isopen)
     {
         Open.Begin();
         isopen = true;
     }
     else
     {
         Close.Begin();
         isopen = false;
     }
 }
예제 #5
0
 public UpdateInfoPage()
 {
     ViewModel = new UpdateInfoPageViewModel();
     this.InitializeComponent();
     Open.Begin();
 }