CreateCommandItem(Hix.IFormatExporter exporter)
        {
            var format = Hix.FormatRegistry.FindFormat(exporter.FormatType);

            if (format == null)
            {
                return(null);
            }

            string caption = string.Format("{0} ({1})", format.Caption, format.FileFilter);

            return(new Ctrl.CommandItem(
                       new FormatExportCommand(exporter), "Export." + format.Name, caption));
        }
 public FormatExportCommand(Hix.IFormatExporter exporter)
 {
     _exporter = exporter;
 }