Exemple #1
0
 public void Insert(object sender, EventArgs e)
 {
     using (uscCPVOznake cpv_oznake = new uscCPVOznake(Enums.FormEditMode.Insert))
     {
         if (cpv_oznake.ShowDialogForm("CPVOznake") == DialogResult.OK)
         {
             try
             {
                 BusinessLogic.CPVOznake.pSelectedIndex = ugdCPVOznake.ActiveRow.Index;
             }
             catch { }
             LoadGridCPVOznake();
         }
     }
 }
Exemple #2
0
        public void Copy(object sender, EventArgs e)
        {
            if (ugdCPVOznake.ActiveRow != null)
            {
                BusinessLogic.CPVOznake.pID    = (int)ugdCPVOznake.ActiveRow.Cells["ID"].Value;
                BusinessLogic.CPVOznake.pNaziv = ugdCPVOznake.ActiveRow.Cells["Naziv"].Value.ToString();

                using (uscCPVOznake cpv_oznake = new uscCPVOznake(Enums.FormEditMode.Copy))
                {
                    if (cpv_oznake.ShowDialogForm("CPVOznake") == DialogResult.OK)
                    {
                        BusinessLogic.CPVOznake.pSelectedIndex = ugdCPVOznake.ActiveRow.Index;
                        LoadGridCPVOznake();
                    }
                }
            }
        }