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")) { CustomersRanking cutoff = new CustomersRanking((SanofiProductBrands)_productBrand, _regionType, _groupRegionMapId, _startMonth, _startYear, _endMonth, _endYear, ""); cutoff.Show(); } else { CustomersRanking cutoff = new CustomersRanking((SanofiProductBrands)_productBrand, _regionType, _groupRegionMapId, _startMonth, _startYear, _endMonth, _endYear, (string)(sender as ComboBox).SelectedItem); cutoff.Show(); } this.Close(); }
void MenuWindow_CustomersRanking_Click(object sender, EventArgs e) { CustomersRanking customersRankingWindow = new CustomersRanking((SanofiProductBrands)_selected_Product, _selected_RegionType, DBUtils.GetGroupRegionMapId(_selectedRegionMapId, (SanofiProductBrands)_selected_Product), _selected_StartMonth, _selected_StartYear, _selected_EndMonth, _selected_EndYear, ""); customersRankingWindow.Show(); }