private void OnGetDomainNodeIdCompleted(object sender, ReturnedNodeIdEventArgs e)
 {
     if (!string.IsNullOrEmpty(DomainUid) && e.NodeId != null)
     {
         Guid domainId = Guid.Empty;
         if (Guid.TryParse(DomainUid, out domainId))
         {
             InitializeNavigator(e.NodeId, domainId);
         }
     }
 }
 private void OnGetContainerMapNodeIdCompleted(object sender, GetContainerMapNodeIdCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (GetContainerMapNodeIdCompleted != null)
         {
             ReturnedNodeIdEventArgs eventArgs = new ReturnedNodeIdEventArgs(e.Result);
             GetContainerMapNodeIdCompleted.Invoke(this, eventArgs);
         }
     }
 }
        void OnCreateNewMapCompleted(object sender, CreateNewMapCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                ReturnedNodeIdEventArgs eventArgs = new ReturnedNodeIdEventArgs(e.Result);

                if (CreateNewMapCompleted != null)
                {
                    CreateNewMapCompleted.Invoke(this, eventArgs);
                }
            }
        }
示例#4
0
        private void nodeService_GetContainerMapNodeIdCompleted(object sender, ReturnedNodeIdEventArgs e)
        {
            ThemeManager themeManagementObject = IoC.IoCContainer.GetInjectionInstance().GetInstance <ThemeManager>();

            _navigator.SetCurrentNode(e.NodeId);

            ViewManager = new MapDepthViewManager(_navigator, themeManagementObject);
            ViewManager.NodesUpdated += new EventHandler(ViewManager_NodesUpdated);

            MessageReceivedHandler = new EventHandler <MessageReceivedEventArgs>(MsgReceiverHandler.MessageReceiver_MessageReceived);

            IoC.IoCContainer.GetInjectionInstance().RegisterComponent <MapDepthNavigator>(_navigator);
            if (NavigatorInitialised != null)
            {
                NavigatorInitialised.Invoke(this, new EventArgs());
            }

            themeManagementObject.LoadTheme(ThemeSvcUrl, "Generic");
        }
 private void OnGetContainerMapNodeIdCompleted(object sender, GetContainerMapNodeIdCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (GetContainerMapNodeIdCompleted != null)
         {
             ReturnedNodeIdEventArgs eventArgs = new ReturnedNodeIdEventArgs(e.Result);
             GetContainerMapNodeIdCompleted.Invoke(this, eventArgs);
         }
     }
 }
        void OnCreateNewMapCompleted(object sender, CreateNewMapCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                ReturnedNodeIdEventArgs eventArgs = new ReturnedNodeIdEventArgs(e.Result);

                if (CreateNewMapCompleted != null)
                {
                    CreateNewMapCompleted.Invoke(this, eventArgs);
                }
            }
        }
 private void OnGetDomainNodeIdCompleted(object sender, ReturnedNodeIdEventArgs e)
 {
     if (!string.IsNullOrEmpty(DomainUid) && e.NodeId != null)
     {
         Guid domainId = Guid.Empty;
         if (Guid.TryParse(DomainUid, out domainId))
         {
             InitializeNavigator(e.NodeId, domainId);
         }
     }
 }