Ejemplo n.º 1
0
        public void Insert(object sender, EventArgs e)
        {
            SkolskaGodinaForm skolskaGodinaForm = new SkolskaGodinaForm(Enums.FormEditMode.Insert, null);

            if (skolskaGodinaForm.ShowDialogForm("Školska godina") == DialogResult.OK)
            {
                LoadGridSkolskeGodine();
            }
        }
Ejemplo n.º 2
0
        public void Copy(object sender, EventArgs e)
        {
            if (this.UltraGridSkolskeGodine.ActiveRow != null)
            {
                int id = Convert.ToInt32(this.UltraGridSkolskeGodine.ActiveRow.Cells["ID"].Value);

                SkolskaGodinaForm skolskaGodinaForm = new SkolskaGodinaForm(Enums.FormEditMode.Copy, id);

                if (skolskaGodinaForm.ShowDialogForm("Školska godina") == DialogResult.OK)
                {
                    LoadGridSkolskeGodine();
                }
            }
        }