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); }
static void ToYaml(AampFile file) { string yaml = YamlConverter.ToYaml(file); System.IO.File.WriteAllText("test.yaml", yaml); }
public string ConvertToString() { return(YamlConverter.ToYaml(aampFile)); }