Пример #1
0
 public usrc_Edit_Item_Tax()
 {
     InitializeComponent();
     m_Taxation = new Taxation();
     default_backcolor = BackColor;
 }
Пример #2
0
 public bool Fill(ref Taxation xTaxation)
 {
     if (this.cmb_TaxRate.SelectedValue is long)
     {
         long i = (long) this.cmb_TaxRate.SelectedValue;
         xTaxation.ID.set(m_xTaxationList.items[i].ID);
         xTaxation.Name.set(m_xTaxationList.items[i].Name);
         xTaxation.Rate.set(m_xTaxationList.items[i].Rate);
         this.BackColor = default_backcolor;
         return true;
     }
     else
     {
         this.BackColor = Color.Red;
         xTaxation.ID.set(null);
         xTaxation.Name.set(null);
         xTaxation.Rate.set(null);
         //MessageBox.Show(this, lngRPM.s_TaxRate_must_be_defined.s);
         return false;
     }
 }