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