Exemplo n.º 1
0
 public EditorState(Workspace workspace, JObject dialog, ImmutableList<Tab> tabs)
 {
     if (tabs == null)
         tabs = ImmutableList.Create<Tab>();
     _workspace = workspace;
     _dialog = dialog;
     _tabs = tabs;
 }
Exemplo n.º 2
0
 public EditorState WithWorkspace(Workspace workspace, JObject changes, JObject partials = null)
 {
     Utils.RegisterChange(changes, () => Workspace, workspace, partials);
     return new EditorState(workspace, _dialog, _tabs);
 }
Exemplo n.º 3
0
 public EditorState WithWorkspace(Workspace workspace, JObject changes, JObject partials = null)
 {
     Utils.RegisterChange(changes, () => Workspace, workspace, partials);
     return(new EditorState(workspace, _dialog));
 }
Exemplo n.º 4
0
 public EditorState(Workspace workspace = null, JObject dialog = null)
 {
     _workspace = workspace;
     _dialog    = dialog;
 }