Esempio n. 1
0
 public void Insert(object sender, EventArgs e)
 {
     using (uscNeoporezivPrimitak user_control = new uscNeoporezivPrimitak(Enums.FormEditMode.Insert))
     {
         if (user_control.ShowDialogForm("Neoporeziv primitak") == DialogResult.OK)
         {
             LoadGridNeoporeziviPrimitak();
         }
     }
 }
Esempio n. 2
0
        public void Update(object sender, EventArgs e)
        {
            if (ugdNeoporeziviPrimitak.ActiveRow != null)
            {
                BusinessLogic.pID         = (int)ugdNeoporeziviPrimitak.ActiveRow.Cells["ID"].Value;
                BusinessLogic.pOznaka     = ugdNeoporeziviPrimitak.ActiveRow.Cells["Oznaka"].Value.ToString();
                BusinessLogic.pKratkiOpis = ugdNeoporeziviPrimitak.ActiveRow.Cells["KratkiOpis"].Value.ToString();
                BusinessLogic.pDugiOpis   = ugdNeoporeziviPrimitak.ActiveRow.Cells["DugiOpis"].Value.ToString();

                using (uscNeoporezivPrimitak user_control = new uscNeoporezivPrimitak(Enums.FormEditMode.Update))
                {
                    if (user_control.ShowDialogForm("Neoporeziv primitak") == DialogResult.OK)
                    {
                        LoadGridNeoporeziviPrimitak();
                    }
                }
            }
        }