Beispiel #1
0
		public void Connect(string userName, OnlineServiceConnection connection)
		{
			UserName = userName;
			onlineServiceConnection = connection;
			connection.DataReceived += OnDataReceived;
			send = connection.Send;
			var oldResolver = ContentLoader.resolver;
			ContentLoader.DisposeIfInitialized();
			ContentLoader.resolver = oldResolver;
			ContentLoader.Use<EditorContentLoader>();
			editorContent = new EditorContentLoader(onlineServiceConnection);
			editorContent.ContentUpdated += OnContentUpdated;
			editorContent.ContentDeleted += OnContentDeleted;
			editorContent.ContentReady += OnContentReady;
		}
        public void Connect(string userName, OnlineServiceConnection connection)
        {
            UserName = userName;
            onlineServiceConnection  = connection;
            connection.DataReceived += OnDataReceived;
            send = connection.Send;
            var oldResolver = ContentLoader.resolver;

            ContentLoader.DisposeIfInitialized();
            ContentLoader.resolver = oldResolver;
            ContentLoader.Use <EditorContentLoader>();
            editorContent = new EditorContentLoader(onlineServiceConnection);
            editorContent.ContentUpdated += OnContentUpdated;
            editorContent.ContentDeleted += OnContentDeleted;
            editorContent.ContentReady   += OnContentReady;
        }