示例#1
0
        public void Insert(object sender, EventArgs e)
        {
            UstanovaSkolskaGodinaForm ustanovaSkolskaGodinaForm = new UstanovaSkolskaGodinaForm(Enums.FormEditMode.Insert, null);

            if (ustanovaSkolskaGodinaForm.ShowDialogForm("Ustanova / školska godina") == DialogResult.OK)
            {
                try
                {
                    BusinessLogic.UstanoveSkolskeGodine.pSelectedIndex = UltraGridUstanoveSkolskeGodine.ActiveRow.Index;
                }
                catch { }
                LoadGridUstanoveSkolskeGodine();
            }
        }
示例#2
0
        public void Copy(object sender, EventArgs e)
        {
            if (this.UltraGridUstanoveSkolskeGodine.ActiveRow != null)
            {
                int id = Convert.ToInt32(this.UltraGridUstanoveSkolskeGodine.ActiveRow.Cells["ID"].Value);

                UstanovaSkolskaGodinaForm ustanovaSkolskaGodinaForm = new UstanovaSkolskaGodinaForm(Enums.FormEditMode.Copy, id);

                if (ustanovaSkolskaGodinaForm.ShowDialogForm("Ustanova / školska godina") == DialogResult.OK)
                {
                    BusinessLogic.UstanoveSkolskeGodine.pSelectedIndex = UltraGridUstanoveSkolskeGodine.ActiveRow.Index;
                    LoadGridUstanoveSkolskeGodine();
                }
            }
        }