private void DosageCombo_SelectionChanged(object sender, SelectionChangedEventArgs e) { if ((sender as ComboBox).SelectedItem != null && Utils.String_Trim_ToLower_Equals((string)(sender as ComboBox).SelectedItem, "all")) { Bubble bubble = new Bubble((SanofiProductBrands)_productBrand, _startDate, _endDate, ""); bubble.Show(); } else { Bubble bubble = new Bubble((SanofiProductBrands)_productBrand, _startDate, _endDate, (string)(sender as ComboBox).SelectedItem); bubble.Show(); } this.Close(); }
void MenuWindow_GrowthAndAchievementVsObjective_Click(object sender, EventArgs e) { Bubble bubble = new Bubble((SanofiProductBrands)_selected_Product, _selectedStartDate, _selectedEndDate, ""); bubble.Show(); }