Пример #1
0
 private void ButtonUpdatePassword_Click(object sender, RoutedEventArgs e)
 {
     if (Logged)
     {
         FrameAdmin.Navigate(new ChangePassword(Business));
     }
     else
     {
         MessageBox.Show("Log in First!");
     }
 }
Пример #2
0
 private void ButtonDeleteApp_Click(object sender, RoutedEventArgs e)
 {
     if (Logged)
     {
         FrameAdmin.Navigate(new DeleteApp(Business));
     }
     else
     {
         MessageBox.Show("Log in First!");
     }
 }
Пример #3
0
        private void ButtonLogin_Click(object sender, RoutedEventArgs e)
        {
            var passwordPage = new PasswordPage(Business);

            passwordPage.Callback += (logined) =>
            {
                if (logined)
                {
                    Logged = true; LabelLogonInfo.Content = "Logged in";
                }
                else
                {
                    Logged = false; LabelLogonInfo.Content = "Not logged in";
                }
            };
            FrameAdmin.Navigate(passwordPage);
        }