Exemple #1
0
 public void Insert(object sender, EventArgs e)
 {
     using (uscNacinIsplate user_control = new uscNacinIsplate(Enums.FormEditMode.Insert))
     {
         if (user_control.ShowDialogForm("Način isplate") == DialogResult.OK)
         {
             LoadGridNacinIsplate();
         }
     }
 }
Exemple #2
0
        public void Update(object sender, EventArgs e)
        {
            if (ugdNacinIsplate.ActiveRow != null)
            {
                BusinessLogic.pID         = (int)ugdNacinIsplate.ActiveRow.Cells["ID"].Value;
                BusinessLogic.pOznaka     = ugdNacinIsplate.ActiveRow.Cells["Oznaka"].Value.ToString();
                BusinessLogic.pKratkiOpis = ugdNacinIsplate.ActiveRow.Cells["KratkiOpis"].Value.ToString();
                BusinessLogic.pDugiOpis   = ugdNacinIsplate.ActiveRow.Cells["DugiOpis"].Value.ToString();

                using (uscNacinIsplate user_control = new uscNacinIsplate(Enums.FormEditMode.Update))
                {
                    if (user_control.ShowDialogForm("Neačin isplate") == DialogResult.OK)
                    {
                        LoadGridNacinIsplate();
                    }
                }
            }
        }