public Auth() { try { InitializeComponent(); ViewModel.AreasViewModel.UsersViewModel.AuthViewModel.CloseWindow = new Action(() => this.Close()); this.DataContext = new ViewModel.AreasViewModel.UsersViewModel.AuthViewModel(); } catch (Exception ex) { SharedClass.MessageBoxErrorStatic(ex); } }