示例#1
0
        private String ShowLoginDialog()
        {
            LoginScreen ls = new LoginScreen();

            ls.ShowDialog();
            if (ls.DialogResult.HasValue && ls.DialogResult.Value)
            {
                loggedIn = true;
                return(ls.GetPassword());
            }
            else
            {
                loggedIn = false;
                Application.Current.Shutdown();
            }
            return(null);
        }