public CopyAsYamlFormatMenuViewModel()
 {
     CopyAsYamlFormatCommand.Subscribe(_ =>
     {
         var parameter = SelectManager.SelectedItems;
         var yaml      = YamlConverter.ToYaml(parameter);
         Clipboard.SetText(yaml);
     })
     .AddTo(disposables);
 }
 public DataStructureBreakdownMenuViewModel()
 {
     DataStructureBreakdownCommand.Subscribe(_ =>
     {
         var parameter         = SelectManager.GetCollection <EntityBaseObjectViewModel>();
         var yaml              = YamlConverter.ToYaml(parameter);
         TreeViewDialog dialog = new TreeViewDialog(yaml);
         dialog.Title          = "Data Structure Breakdown";
         dialog.ShowDialog();
     })
     .AddTo(disposables);
 }
示例#3
0
        static void ToYaml(AampFile file)
        {
            string yaml = YamlConverter.ToYaml(file);

            System.IO.File.WriteAllText("test.yaml", yaml);
        }
示例#4
0
 public string ConvertToString()
 {
     return(YamlConverter.ToYaml(aampFile));
 }