Saving Workspace Changes

This example uses the UiWorkspaceObject1 and WorkspaceBox1 components. UiWorkspaceObject1 with a workspace object is used as a data source for WorkspaceBox1.

Add links to the Andy, Metabase, Workspace system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    ws: IWxWorkspace;
Begin
    ws := UiWorkspaceObject1.Instance As IWxWorkspace;
    (UiWorkspaceObject1.Instance As IMetabaseObject).Save;
End Sub Button1OnClick;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Workspace;
Imports Prognoz.Platform.Interop.Metabase;

 
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    ws: IWxWorkspace;
Begin
    ws := uiWorkspaceObjectNet1.WorkspaceObjectUi.Instance 
As IWxWorkspace;
    (uiWorkspaceObjectNet1.WorkspaceObjectUi.Instance 
As IMetabaseObject).Save();
End Sub;

On clicking the button changes, made in a workspace are saved.

See also:

Examples