예제 #1
0
        private void SearchTextBlock_KeyUp(object sender, System.Windows.Input.KeyEventArgs e)
        {
            if (e.Key == System.Windows.Input.Key.Enter)
            {
                e.Handled = true;
                WebTools SearchDeployments = new WebTools();
                SearchDeployments.DataDownloadComplete += new EventHandler<DownloadCompleteArgs>(SearchDeployments_DataDownloadComplete);
                SearchDeployments.DataDownloadCompleteWithError += new EventHandler<DownloadCompleteArgs>(SearchDeployments_DataDownloadCompleteWithError);
                SearchDeployments.SearchDeployments(SearchTextBlock.Text);
                ProgressBar.Visibility = System.Windows.Visibility.Visible;

            }
        }
예제 #2
0
 void DownloadCategories()
 {
     WebTools CategoryTools = new WebTools();
     CategoryTools.DataDownloadComplete += new EventHandler<DownloadCompleteArgs>(CategoryTools_DataDownloadComplete);
     CategoryTools.DataDownloadCompleteWithError += new EventHandler<DownloadCompleteArgs>(CategoryTools_DataDownloadCompleteWithError);
     CategoryTools.DownloadDeploymentCategories();
 }
예제 #3
0
 void GoOnline()
 {
     WebTools tools = new WebTools(app.GlobalSettings);
     tools.DataDownloadComplete += new EventHandler<DownloadCompleteArgs>(tools_DeploymentDownloadComplete);
     tools.DataDownloadCompleteWithError += new EventHandler<DownloadCompleteArgs>(tools_DataDownloadCompleteWithError);
     ProgressBar.Visibility = System.Windows.Visibility.Visible;
     tools.DownloadDeployments();
     LoadFromDB();
 }
 void LoadData()
 {
     DeploymentNameTextBox.DataContext = app.SelectedDeployment;
     ProgressIndicator.Visibility = System.Windows.Visibility.Visible;
     WebTools tools = new WebTools();
     tools.DataDownloadComplete += new EventHandler<DownloadCompleteArgs>(tools_DataDownloadComplete);
     tools.DataDownloadCompleteWithError += new EventHandler<DownloadCompleteArgs>(tools_DataDownloadCompleteWithError);
     tools.DownloadIncidents(app.SelectedDeployment);
 }