public MainWindow()
 {
     InitializeComponent();
     if (login.ManterConectado() && WindowMain.loggout == false)
     {
         MainWindow w      = this;
         WindowMain window = new WindowMain();
         w.Close();
         window.Show();
     }
 }
        public async void BemVindo()
        {
            NotificationInformation msg = new NotificationInformation();

            msg.Message = "Bem vindo!";
            msg.Icon    = "Login";

            await DialogHost.Show(msg, "RootDialog");

            MainWindow w      = this;
            WindowMain window = new WindowMain();

            w.Close();
            window.Show();
        }