Esempio n. 1
0
        private void ExcelToYaml(string[] fileNames)
        {
            if (fileNames == null)
            {
                return;
            }
            var setting = LoadSetting();

            if (setting == null)
            {
                return;
            }
            var options = new FromOptions();

            options.files          = fileNames;
            options.input          = ".";
            options.output         = SeedPath;
            options.columnNamesRow = setting.columnNamesRow;
            options.dataStartRow   = setting.dataStartRow;
            options.engine         = setting.engine;
            options.ignoreColumns  = setting.ignoreColumns;
            options.yamlColumns    = setting.yamlColumns;
            options.ignore         = setting.ignore;
            options.only           = setting.only;
            options.subdivide      = setting.subdivide;
            options.mapping        = setting.mapping;
            options.versionColumn  = setting.versionColumn;
            options.requireVersion = setting.requireVersion;
            options.delete         = setting.delete;
            options.seedExtension  = options.seedExtension;
            var dialog = new ExcelToYamlDialog(options);

            dialog.ShowDialog();
        }
Esempio n. 2
0
        private void ExcelToYaml(string[] fileNames)
        {
            if (fileNames == null)
            {
                return;
            }
            var setting = LoadSetting();

            if (setting == null)
            {
                return;
            }
            var options = setting.FromOptions(
                files: fileNames,
                input: ".",
                output: SeedPath
                );
            var dialog = new ExcelToYamlDialog(options);

            dialog.ShowDialog();
        }