void CategoryTools_DataDownloadComplete(object sender, DownloadCompleteArgs e)
 {
     List<DeploymentCategory> categories = (List<DeploymentCategory>)e.DownloadObject;
     foreach (DeploymentCategory ct in categories)
     {
         App.DataBaseUtility.SaveDeploymentCategory(ct);
     }
 }
 void CategoryTools_DataDownloadCompleteWithError(object sender, DownloadCompleteArgs e)
 {
     //keep Quiet...
 }
        void tools_DeploymentDownloadComplete(object sender, DownloadCompleteArgs e)
        {
            ProgressBar.Visibility = System.Windows.Visibility.Collapsed;
            List<Deployments> dp = (List<Deployments>)e.DownloadObject;
            foreach (Deployments d in dp)
            {
                App.DataBaseUtility.saveDeployment(d);
            }

            LoadFromDB();
        }
 void tools_DataDownloadCompleteWithError(object sender, DownloadCompleteArgs e)
 {
     ProgressBar.Visibility = System.Windows.Visibility.Collapsed;
     MessageBox.Show("Error Fetching deployments online\nYou might not have internet connection", "Download Error", MessageBoxButton.OK);
 }
 void SearchDeployments_DataDownloadCompleteWithError(object sender, DownloadCompleteArgs e)
 {
     Error error = e.DownloadObject as Error;
     SearchTextBlock.Visibility = System.Windows.Visibility.Collapsed;
     ProgressBar.Visibility = System.Windows.Visibility.Collapsed;
     MessageBox.Show(error.message, "Search Failed", MessageBoxButton.OK);
 }
 void SearchDeployments_DataDownloadComplete(object sender, DownloadCompleteArgs e)
 {
     ProgressBar.Visibility = System.Windows.Visibility.Collapsed;
     List<Deployments> dp = (List<Deployments>)e.DownloadObject;
     foreach (Deployments d in dp)
     {
         App.DataBaseUtility.saveDeployment(d);
     }
     SearchTextBlock.Text = "";
     SearchTextBlock.Visibility = System.Windows.Visibility.Collapsed;
     app.GlobalDeployments = dp;
     RefreshList();
 }
 void tools_DataDownloadCompleteWithError(object sender, DownloadCompleteArgs e)
 {
     Error error = e.DownloadObject as Error;
     MessageBox.Show(error.message);
     ProgressIndicator.Visibility = System.Windows.Visibility.Collapsed;
 }
 void tools_DataDownloadComplete(object sender, DownloadCompleteArgs e)
 {
     List<Incident> incidents = e.DownloadObject as List<Incident>;
     app.ActiveDeploymentIncidents = incidents;
     IncidentListBox.ItemsSource = incidents;
     ProgressIndicator.Visibility = System.Windows.Visibility.Collapsed;
     loadMap();
 }