Esempio n. 1
0
 public void Insert(object sender, EventArgs e)
 {
     using (uscNacinIsporukeForm objekt = new uscNacinIsporukeForm(Enums.FormEditMode.Insert))
     {
         if (objekt.ShowDialogForm("Način isporuke") == DialogResult.OK)
         {
             try
             {
                 BusinessLogic.NacinIsporuke.pSelectedIndex = ugdNacinIsporuke.ActiveRow.Index;
             }
             catch { }
             LoadGridNacinIsporuke();
         }
     }
 }
Esempio n. 2
0
        public void Copy(object sender, EventArgs e)
        {
            if (ugdNacinIsporuke.ActiveRow != null)
            {
                BusinessLogic.NacinIsporuke.pID = (int)ugdNacinIsporuke.ActiveRow.Cells["ID"].Value;
                BusinessLogic.NacinIsporuke.pNaziv = ugdNacinIsporuke.ActiveRow.Cells["Naziv"].Value.ToString();

                using (uscNacinIsporukeForm objekt = new uscNacinIsporukeForm(Enums.FormEditMode.Copy))
                {
                    if (objekt.ShowDialogForm("Način isporuke") == DialogResult.OK)
                    {
                        BusinessLogic.NacinIsporuke.pSelectedIndex = ugdNacinIsporuke.ActiveRow.Index;
                        LoadGridNacinIsporuke();
                    }
                }
            }
        }