Beispiel #1
0
 internal static void ChangeDashboardSelection(Dashboard parent, System.Windows.Controls.Primitives.ToggleButton selectedOption)
 {
     try
     {
         if (parent != null)
         {
             DashboardMenu sideMenu = parent.ucDashboardMenu.CurrentPage as DashboardMenu;
             if (sideMenu != null)
             {
                 sideMenu.IsIndirectCall = true;
                 sideMenu.ShowCurrentPage(selectedOption);
                 sideMenu.IsIndirectCall = false;
             }
         }
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
     }
 }
Beispiel #2
0
        private void btnSignIn_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (BusinessLogic.IsValidUser(txtUserName.Text, txtPassword.Password))
                {

                    Dashboard dialog = new Dashboard();
                    dialog.UserName = txtUserName.Text;
                    dialog.Show();
                    this.Close();
                }
                else
                {
                    Helper.ShowErrorMessageBox("Invalid User name or Password");
                    txtUserName.Focus();
                }
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }
        }