Exemple #1
0
        public bool CreateSystemObject(XmlDocument document)
        {
            bool    flag   = false;
            bool    rFlag  = true;
            XmlNode node   = document.DocumentElement;
            XmlNode driver = node.SelectSingleNode("Drivers");

            hwLib.Clear();
            if (driver == null)
            {
                return(false);
            }
            flag   = CreateAxisObject(driver);
            rFlag &= flag;
            flag   = CreateSpinleObject(driver);
            rFlag &= flag;
            flag   = CreateCaptureObject(driver);
            rFlag &= flag;
            flag   = CreateDigitalObject(driver);
            if (flag)
            {
                Common.ReportCmdKeyProgress(CmdKey.S0700, false);
            }
            else
            {
                Common.ReportCmdKeyProgress(CmdKey.S0701);
            }
            rFlag &= flag;
            createObjectSucessful = rFlag;
            return(flag);
        }