示例#1
0
        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();
        }
示例#2
0
 /**
  * Change Master of this slide.
  */
 public void SetMasterSheet(MasterSheet master){
     SlideAtom sa = GetSlideRecord().GetSlideAtom();
     int sheetNo = master._getSheetNumber();
     sa.SetMasterID(sheetNo);
 }