public MainWindow(string login, string pass)
 {
     InitializeComponent();
     user = UserAccess.GetUser(login, pass);
 }