public VersionExchangeCollectionHelper(VersionExchangeNetworkService service, VersionExchangeModel ve_model)
     : base(service.m_Sender, ve_model, "VersionExchanges")
 {
     this.m_Service = service;
     this.m_VeModel = ve_model;
     base.Initialize();
 }
Exemplo n.º 2
0
 public PresenterModel()
 {
     this.m_Stylus = null;
     this.m_CurrentResult = null;
     this.m_Network = new NetworkModel();
     this.m_VersionExchange = new VersionExchangeModel();
     /// Note: We currently assume that the ParticipantModel Guid will be different for each application invocation.
     /// (In particular TCP reconnection relies on this assumption.)  If we need an identifer that persists across
     /// sessions, we'd need to create a new identifier for this.
     ParticipantId = Guid.NewGuid();
     this.m_Participant = new ParticipantModel(ParticipantId, System.Windows.Forms.SystemInformation.UserName);
     this.m_Workspace = new WorkspaceModel();
     this.m_Undo = new UndoModel();
     this.m_ViewerState = new ViewerStateModel();
     this.m_PenState = new PenStateModel();
     TheInstance = this;
 }
 public VersionExchangeNetworkService(SendingQueue sender)
 {
     m_Sender = sender;
     m_VersionExchangeModel = PresenterModel.TheInstance.VersionExchange;
     m_VersionExchangeCollectionHelper = new VersionExchangeCollectionHelper(this, PresenterModel.TheInstance.VersionExchange);
 }