public static void Initialize() { ExcelPackage.LicenseContext = LicenseContext.NonCommercial; SQLConnector sql = new SQLConnector(); Connection = sql; GoogleCreds = GoogleCredentials(); SheetsService = new SheetsService(new BaseClientService.Initializer() { HttpClientInitializer = GoogleCreds, ApplicationName = "SMI Soils" }); MasterSheet = new MasterSheet(); OperationSheet = new OperationSheet(); }
/** * Change Master of this slide. */ public void SetMasterSheet(MasterSheet master){ SlideAtom sa = GetSlideRecord().GetSlideAtom(); int sheetNo = master._getSheetNumber(); sa.SetMasterID(sheetNo); }