GoDiagram Web Reference
LoadView Method (GoView)

the deserialized view
This method is called by OnLoad in order to restore the state of this view from a GoView serialized in the GetSessionViewsTable.
Syntax
'Declaration
 
Public Overridable Sub LoadView( _
   ByVal saved As GoView _
) 
public virtual void LoadView( 
   GoView saved
)

Parameters

saved
the deserialized view
Remarks

Generally you will want to copy all of your fields from the saved view to this view. Remember to call the base method first. You will also be overriding the GetObjectData method and defining your own deserialization constructor. See the example code in the description for GetObjectData.

The event handlers associated with events on this view are not restored. Thus you will need to re-establish event handlers for the view in the Page's Init or Load event:

            protected override void OnLoad(EventArgs evt) { // handling the Page's Load event
              base.OnLoad(evt);
              MyView.SessionStarted += new EventHandler(InitializeDocument);
              MyView.LinkCreated += new GoSelectionEventHandler(LinkDrawn);
            }
            

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoView Class
GoView Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback