private void Window_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         if (tabDrugs.IsSelected)
         {
             LoggedInOperations.refreshDrugsDataGrid();
         }
         if (tabLogin.IsSelected)
         {
             LoginOperations.loginTry(this);
         }
         if (tabRegister.IsSelected)
         {
             RegisterOperations.completeRegister(this);
         }
     }
 }
 private void cmbSortingDrugs_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     LoggedInOperations.refreshDrugsDataGrid();
 }
 private void btnLoadDrugData_Click(object sender, RoutedEventArgs e)
 {
     LoggedInOperations.loadReadyDrugData();
 }
 private void btnDeleteSelectedDrug_Click(object sender, RoutedEventArgs e)
 {
     LoggedInOperations.deleteSelectedDrug();
 }
 private void btnSave_Click(object sender, RoutedEventArgs e)
 {
     LoggedInOperations.saveDrugChanges();
 }
 private void btnRefreshDrugs_Click(object sender, RoutedEventArgs e)
 {
     LoggedInOperations.refreshDrugsDataGrid();
 }