コード例 #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"))
     {
         YTDPerformance ytdPerformanceChart = new YTDPerformance((SanofiProductBrands)_productBrand, _regionType, _groupRegionMapId, _endMonth, _endYear, "");
         ytdPerformanceChart.Show();
     }
     else
     {
         YTDPerformance ytdPerformanceChart = new YTDPerformance((SanofiProductBrands)_productBrand, _regionType, _groupRegionMapId, _endMonth, _endYear, (string)(sender as ComboBox).SelectedItem);
         ytdPerformanceChart.Show();
     }
     this.Close();
 }
コード例 #2
0
ファイル: MainPage.xaml.cs プロジェクト: naimheshmati/Sanofi
 void MenuWindow_YTDPerformance_Click(object sender, EventArgs e)
 {
     YTDPerformance ytdPerformance = new YTDPerformance((SanofiProductBrands)_selected_Product, _selected_RegionType, DBUtils.GetGroupRegionMapId(_selectedRegionMapId, (SanofiProductBrands)_selected_Product), _selected_EndMonth, _selected_EndYear, "");
     ytdPerformance.Show();
 }