private void WindowLoaded(object sender, RoutedEventArgs e) { dialogWindow = new DialogWindow(); dialogWindow.Message = "Please Wait!"; dialogWindow.Show(); RefreshWebBrowserControl(); }
private void SearchButton_Click(object sender, RoutedEventArgs e) { string url = ""; dialogWindow = new DialogWindow(); dialogWindow.Message = "Please Wait!"; dialogWindow.Show(); if (rdDrugByName.IsChecked != null && (bool)rdDrugByName.IsChecked) url = string.Format("http://ehealthcare.azurewebsites.net/drug/drugsearchbyname/{0}", txtDrugSearch.Text.Trim()); if (rdDrugByNDA.IsChecked != null && (bool)rdDrugByNDA.IsChecked) url = string.Format("http://ehealthcare.azurewebsites.net/drug/drugsearchbynda/{0}", txtDrugSearch.Text.Trim()); if (rdDrugByNDC.IsChecked != null && (bool)rdDrugByNDC.IsChecked) url = string.Format("http://ehealthcare.azurewebsites.net/drug/drugsearchbyndc/{0}", txtDrugSearch.Text.Trim()); if(txtDrugSearch.Text.Trim() != string.Empty) webBrowserControl.Navigate(url); }
private void Search(object sender, RoutedEventArgs e) { string queryStringParameters = ""; var item = cmbShape.SelectedValue as System.Windows.Controls.ComboBoxItem; if (item != null) { var stackpanel = item.Content as System.Windows.Controls.StackPanel; var selectedContent = (stackpanel.Children[0] as System.Windows.Controls.ContentPresenter).Content; queryStringParameters = string.Format("shape={0}", ShapeDictionary[selectedContent.ToString().ToUpper()]); } if (cmbColor.SelectedIndex > -1) { queryStringParameters += string.Format("&color={0}", cmbColor.SelectedValue.ToString()); } if(txtIngredient.Text != "") queryStringParameters += string.Format("&ingredient={0}", txtIngredient.Text); dialogWindow = new DialogWindow(); dialogWindow.Message = "Please Wait!"; dialogWindow.Show(); webBrowserControl.Navigate("http://ehealthcare.azurewebsites.net/PillIdentifier?" + queryStringParameters); }
private void btnSearchProviders(object sender, RoutedEventArgs e) { RefreshWebBrowserControl(); dialogWindow = new DialogWindow(); dialogWindow.Message = "Please Wait!"; dialogWindow.Show(); }