コード例 #1
0
        private void ConfigSyncSheet_Click(object sender, RibbonControlEventArgs e)
        {
            var formConfig = new ConfigSync();

            //formConfig.GoogleSheetId { get; set; }
            //formConfig.GoogleSheetName { get; set; }
            //formConfig.GoogleSheetRange { get; set; }
            //formConfig.LocalSheetName { get; set; }
            //formConfig.LocalSheetRange { get; set; }
            //formConfig.EnableSaveSheets { get; set; }
            formConfig.ShowDialog();
        }
コード例 #2
0
        private void EnableSync_Click(object sender, RibbonControlEventArgs e)
        {
            if (string.IsNullOrEmpty(GoogleSheetName) || string.IsNullOrEmpty(GoogleSheetId) || string.IsNullOrEmpty(ExcelSheetName))
            {
                var formConfig = new ConfigSync();
                formConfig.ShowDialog();
            }

            ConfigSyncSheet.Enabled = EnableSync.Checked;
            EnableSync.Label        = EnableSync.Checked ? "Deshabiltar Google Sheets" : "Habiltar Google Sheets";

            ConfigValues.EnableSaveSheets = EnableSync.Checked;
        }