예제 #1
0
        /// <summary>
        /// Punjenje comboboxa sa porezima
        /// </summary>
        private void UcitajPoreze()
        {
            BusinessLogic.Porez porez = new BusinessLogic.Porez();

            cmbProizvodPorez.DataSource = porez.GetPorezComboBox();
            cmbProizvodPorez.DataBind();
        }
예제 #2
0
        private void LoadComboPorez()
        {
            BusinessLogic.Porez porez = new BusinessLogic.Porez();

            this.ComboBoxPorez.DataSource = porez.GetPorezComboBox();
            this.ComboBoxPorez.DataBind();
        }
예제 #3
0
 private void ComboBoxPorez_ValueChanged(object sender, EventArgs e)
 {
     if (ComboBoxPorez.Value != null)
     {
         BusinessLogic.Porez porez = new BusinessLogic.Porez();
         lbStopa.Text = porez.GetPorez((int)ComboBoxPorez.Value).FINPOREZSTOPA.ToString("N2");
         IzracunajCijenu();
     }
 }