private void Add() { try { FrmBookmark bkrmrk = new FrmBookmark(); bkrmrk.BookmarkChanged += new FrmBookmark.BookmarkChange(this.BkmrkChanged); bkrmrk.ShowDialog(); } catch (Exception ex) { LightLogger.LogMethod(ex, this.Name, "Add"); } }
private void UpdateObj() { try { if (grdVwBookmarks.SelectedRows.Count > 0) { int bkmrkId = grdVwBookmarks.SelectedRows[0].Cells["ID"].Value.ToInt(); FrmBookmark bkrmrk = new FrmBookmark(bkmrkId); bkrmrk.BookmarkChanged += new FrmBookmark.BookmarkChange(this.BkmrkChanged); bkrmrk.ShowDialog(); } } catch (Exception ex) { LightLogger.LogMethod(ex, this.Name, "Update"); MessageUtil.Error("Object could not be updated"); } }