protected override void InitializeShell()
        {
            Login loginWindow = new PMS.Login();
            loginWindow.ShowDialog();

            if (loginWindow.Activated)
            {
                base.InitializeShell();
                Application.Current.MainWindow = (Window)this.Shell;
                Application.Current.MainWindow.Show();
            }
        }
        protected override void InitializeShell()
        {
            Login loginWindow = new PMS.Login();

            loginWindow.ShowDialog();

            if (loginWindow.Activated)
            {
                base.InitializeShell();
                Application.Current.MainWindow = (Window)this.Shell;
                Application.Current.MainWindow.Show();
            }
        }