/// <summary> /// Constructs a new session with the given ID. /// </summary> /// <param name="id">Specifies the session ID to be used.</param> /// <param name="diagram">Reference to the shared diagram.</param> public mxSession(string id, mxSharedDiagram diagram) { this.id = id; this.diagram = diagram; this.diagram.DiagramChange += new mxDiagramChangeEventHandler(DiagramChanged); lastTimeMillis = System.DateTime.Now.Millisecond; }