private void OnApplyBookmark() { if (SelectedBookmark == null) { return; } var builder = new BookmarkBuilder(); builder.Apply(myPresentation, SelectedBookmark); }
public void SetUp() { var builder = new RelaxedGraphBuilder(); builder.TryAddEdge("a", "b"); builder.TryAddEdge("a", "c"); builder.TryAddNode("d"); builder.TryAddCluster("X17", new[] { "b", "c" }); myPresentation = new GraphPresentation(); myPresentation.Graph = builder.Graph; myBuilder = new BookmarkBuilder(); }
private void OnAddBookmark() { if (string.IsNullOrWhiteSpace(Caption)) { return; } var builder = new BookmarkBuilder(); var bookmark = builder.Create(myPresentation, Caption); Bookmarks.Add(bookmark); Caption = string.Empty; }