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