Ejemplo n.º 1
0
        private void ActivateControl(WindowsFormControlView control, ViewSettings viewSettings, Navigator navigator, Guid taskId, TaskArgumentsHolder args)
        {
            control.InternalViewName = viewSettings.Name;
            control.InternalTaskId   = taskId;
            ControllerBase controller = navigator.GetController(control);

            control.InternalNavigator  = navigator;
            control.InternalController = controller;
            control.Initialize(args, viewSettings);
        }
Ejemplo n.º 2
0
        private void InitializeChildren(Control container, Navigator navigator, Guid taskId)
        {
            foreach (Control control in container.Controls)
            {
                if (control is WindowsFormControlView)
                {
                    WindowsFormControlView child = (WindowsFormControlView)control;
                    child.InternalNavigator = navigator;
                    child.InternalTaskId    = taskId;
                    string viewName = navigator.GetViewNameFromNodeName(child.Name);
                    child.InternalViewName = viewName;
                    ViewSettings viewSettings = UIPConfiguration.Config.GetViewSettingsFromName(viewName);
                    AddActiveControl(taskId, child.Name, child);
                    child.InternalController = navigator.GetController(child);
                    child.Initialize(null, viewSettings);
                }

                if (control.Controls.Count > 0)
                {
                    InitializeChildren(control, navigator, taskId);
                }
            }
        }