Esempio n. 1
0
        public static EditPaneViewModel CreateOutput(OutputPaneModel f, int n)
        {
            var outputName =
                f.Name.Length != 0
                    ? f.Name
                    : NameProvider.IndexedOutput(n);

            return(new EditPaneViewModel
            {
                Format = f.Format,
                LinkedPath = f.Path,
                ScribanName = outputName,
                AvailableFormats = MonacoResourceFetcher.Instance.GetSupportedFormats().ToArray(),
                PaneType = PaneType.Output,
                FileLinkage = FileLinkageTypes.SaveAndClipboard
            });
        }