Esempio n. 1
0
        public void Insert(object sender, EventArgs e)
        {
            UcenikForm ucenikForm = new UcenikForm(Enums.FormEditMode.Insert, null);

            if (ucenikForm.ShowDialogForm("Učenik") == DialogResult.OK)
            {
                try
                {
                    BusinessLogic.Ucenici.pSelectedIndex = UltraGridUcenici.ActiveRow.Index;
                }
                catch { }
                LoadGridUcenici();
            }
        }
Esempio n. 2
0
        public void Copy(object sender, EventArgs e)
        {
            if (this.UltraGridUcenici.ActiveRow != null)
            {
                int id = Convert.ToInt32(this.UltraGridUcenici.ActiveRow.Cells["ID"].Value);

                UcenikForm ucenikForm = new UcenikForm(Enums.FormEditMode.Copy, id);

                if (ucenikForm.ShowDialogForm("Učenik") == DialogResult.OK)
                {
                    BusinessLogic.Ucenici.pSelectedIndex = UltraGridUcenici.ActiveRow.Index;
                    LoadGridUcenici();
                }
            }
        }