コード例 #1
0
 public SharedTextEditorPatchingLogic(string memberName, string serverHost, SharedTextEditor editor, IClientServerCommunication clientServerCommunication)
 {
     _memberName    = memberName;
     _serverHost    = serverHost;
     _editor        = editor;
     _communication = clientServerCommunication;
     _editor.FindDocumentRequest      += Editor_FindDocumentRequest;
     _editor.CreateDocument           += Editor_CreateDocument;
     _editor.RemoveDocument           += Editor_RemoveDocument;
     _editor.UpdateDocument           += Editor_UpdateDocument;
     _editor.TakeOwnershipForDocument += Editor_TakeOwnershipForDocument;
     ;
 }
コード例 #2
0
 public SharedTextEditorPatchingLogic(string memberName, string serverHost, SharedTextEditor editor, IClientServerCommunication clientServerCommunication)
 {
     _memberName = memberName;
     _serverHost = serverHost;
     _editor = editor;
     _communication = clientServerCommunication;
     _editor.FindDocumentRequest += Editor_FindDocumentRequest;
     _editor.CreateDocument += Editor_CreateDocument;
     _editor.RemoveDocument += Editor_RemoveDocument;
     _editor.UpdateDocument += Editor_UpdateDocument;
     _editor.TakeOwnershipForDocument += Editor_TakeOwnershipForDocument;
       ;
 }