private void btCreate_Click(object sender, EventArgs e)
 {
     try
     {
         FormCreateCardboardFormat form = new FormCreateCardboardFormat();
         if (DialogResult.OK == form.ShowDialog())
         {
             Pic.DAL.SQLite.PPDataContext db = new Pic.DAL.SQLite.PPDataContext();
             Pic.DAL.SQLite.CardboardFormat.CreateNew(db, form.FormatName, form.Description, form.FormatWidth, form.FormatHeight);
             FillListView();
         }
     }
     catch (Exception ex)
     {
         Debug.Fail(ex.ToString());
         _log.Debug(ex.ToString());
     }
 }
 private void btCreate_Click(object sender, EventArgs e)
 {
     try
     {
         FormCreateCardboardFormat form = new FormCreateCardboardFormat();
         if (DialogResult.OK == form.ShowDialog())
         {
             Pic.DAL.SQLite.PPDataContext db = new Pic.DAL.SQLite.PPDataContext();
             Pic.DAL.SQLite.CardboardFormat.CreateNew(db, form.FormatName, form.Description, form.FormatWidth, form.FormatHeight);
             FillListView();
         }
     }
     catch (Exception ex)
     {
         Debug.Fail(ex.ToString());
         _log.Debug(ex.ToString());
     }
 }