예제 #1
0
 void CategoryTools_DataDownloadComplete(object sender, DownloadCompleteArgs e)
 {
     List<DeploymentCategory> categories = (List<DeploymentCategory>)e.DownloadObject;
     foreach (DeploymentCategory ct in categories)
     {
         App.DataBaseUtility.SaveDeploymentCategory(ct);
     }
 }
예제 #2
0
 void CategoryTools_DataDownloadCompleteWithError(object sender, DownloadCompleteArgs e)
 {
     //keep Quiet...
 }
예제 #3
0
        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();
        }
예제 #4
0
 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);
 }
예제 #5
0
 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);
 }
예제 #6
0
 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();
 }