コード例 #1
0
 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();
 }
コード例 #2
0
ファイル: MainPage.xaml.cs プロジェクト: naimheshmati/Sanofi
 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();
 }