private void btnCreateBaseLog_Click(object sender, EventArgs e) { BaseLogModel bl = new BaseLogModel( operationID, Properties.Settings.Default.StoreID, DateTime.Now, Properties.Settings.Default.UserID ); currentBaseLog = SqliteDataAccess.CreateBaseLog(bl); baseLogs = SqliteDataAccess.LoadBaseLogs(operationID); dgvBaseLog.DataSource = baseLogs; RunOperation(currentBaseLog[0].BaseLogID); }