Exemplo n.º 1
0
        public static void StartProject()
        {
            XmlNodeList nodeList = Project.GetNodes(Project.ProjectRootNodeName + "/shells/*");

            foreach (XmlNode p in nodeList)
            {
                Shell shell = OpenShell(p);
                if (shell.MainControl == null)
                {
                    string controlKind          = Project.GetNodeAttributeValue(p, "controlkind", null);
                    ShellDeserializerDelegate d = GetShellDeserializer(controlKind);
                    if (d != null)
                    {
                        if (!shell.SetControl(d(shell.ShellId, p)))
                        {
                            // return "Error: unable to create shell control.";
                        }
                    }
                }
            }
            Shell s = GetShell(ConsoleShellId);

            if (s != null)
            {
                s.SetActive();
            }
        }