예제 #1
0
 public void Insert(object sender, EventArgs e)
 {
     using (TipSkladistaForm objekt = new TipSkladistaForm(Enums.FormEditMode.Insert))
     {
         if (objekt.ShowDialogForm("TipSkladista") == DialogResult.OK)
         {
             try
             {
                 BusinessLogic.TipSkladista.pSelectedIndex = ugdFormPregled.ActiveRow.Index;
             }
             catch { }
             LoadGridData();
         }
     }
 }
예제 #2
0
        public void Update(object sender, EventArgs e)
        {
            if (ugdFormPregled.ActiveRow != null)
            {
                BusinessLogic.TipSkladista.pID = Convert.ToInt32(ugdFormPregled.ActiveRow.Cells["ID"].Value);

                using (TipSkladistaForm objekt = new TipSkladistaForm(Enums.FormEditMode.Update))
                {
                    if (objekt.ShowDialogForm("TipSkladista") == DialogResult.OK)
                    {
                        try
                        {
                            BusinessLogic.TipSkladista.pSelectedIndex = ugdFormPregled.ActiveRow.Index;
                        }
                        catch { }
                        LoadGridData();
                    }
                }
            }
        }