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")) { SalesPerChannelDistributor channeldis = new SalesPerChannelDistributor((SanofiProductBrands)_productBrand, _startDate, _endDate, _regionType, _groupRegionMapId, ""); channeldis.Show(); } else { SalesPerChannelDistributor channeldis = new SalesPerChannelDistributor((SanofiProductBrands)_productBrand, _startDate, _endDate, _regionType, _groupRegionMapId, (string)(sender as ComboBox).SelectedItem); channeldis.Show(); } this.Close(); }
void MenuWindow_DistributorsSalesPerChannelClick(object sender, EventArgs e) { SalesPerChannelDistributor window = new SalesPerChannelDistributor((SanofiProductBrands)_selected_Product, _selectedStartDate, _selectedEndDate, _selected_RegionType, DBUtils.GetGroupRegionMapId(_selectedRegionMapId, (SanofiProductBrands)_selected_Product),""); window.Show(); }