Example #1
0
 public MainWindow()
 {
     InitializeComponent();
     if (!Database.CheckConnection())
     {
         MessageBox.Show("There is no internet connectivity.  Fix it");
         this.Close();
     }
     else
         Content = new UserControl_LoginView();
 }
 private void LogoutClick(object sender, RoutedEventArgs e)
 {
     Content = new UserControl_LoginView();
     Properties.Settings.Default.Role = "";
 }