Пример #1
0
        private void ManageProfile_Click(object sender, RoutedEventArgs e)
        {
            if (MyGlobals.CurrentProfile != null)
            {
                MyGlobals.TemporaryItem = MyGlobals.CurrentProfile;
            }

            SuperFrame.Navigate(new System.Uri("NewProfile.xaml", UriKind.RelativeOrAbsolute));
        }
Пример #2
0
        private void DeleteProfileMenu_Click(object sender, RoutedEventArgs e)
        {
            if (MyGlobals.CurrentProfile != null)
            {
                App.PassDB.RemoveProfile(MyGlobals.CurrentProfile.Username);
                App.PassDB.RemoveAllItens(MyGlobals.CurrentProfile.Username);

                MyGlobals.CurrentProfile = null;
                MyGlobals.TemporaryItem  = Items.Empty();

                SuperFrame.Navigate(new System.Uri("LoginPage.xaml", UriKind.RelativeOrAbsolute));
            }
        }
Пример #3
0
 private void PreferencesItem_Click(object sender, RoutedEventArgs e)
 {
     SuperFrame.Navigate(new System.Uri("PreferencesPage.xaml", UriKind.RelativeOrAbsolute));
 }
Пример #4
0
 private void NewProfile_Click(object sender, RoutedEventArgs e)
 {
     MyGlobals.GlobalMethods.LogOut();
     SuperFrame.Navigate(new System.Uri("NewProfile.xaml", UriKind.RelativeOrAbsolute));
 }