예제 #1
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 ExcelToYamlDialogX11(options);

            this.Layout.Children.Add(dialog);
            dialog.Popup(GrabOption.Exclusive);
        }
예제 #2
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  = setting.seedExtension;

            var dialog = new ExcelToYamlDialogX11(options);

            this.Layout.Children.Add(dialog);
            dialog.Popup(GrabOption.Exclusive);
        }