Esempio n. 1
0
 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");
     }
 }
Esempio n. 2
0
        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");
            }
        }