Exemple #1
0
        /// <inheritdoc />
        public override XElement GetXml(string rootElemName, bool suppressDefaults)
        {
            XElement rootElem = new XElement(rootElemName);

            rootElem.Add(new XAttribute("name", Name));
            rootElem.Add(TaskCfg.GetXml(suppressDefaults));
            Validate(rootElem, XsdTypeName);
            return(rootElem);
        }
    public void InitTable()
    {
        string data = ConfigUtil.GetConfigData("/Task/Task.txt");

        string[] splits = data.Split('\n');
        foreach (string split in splits)
        {
            string line = split.Trim();
            if (line.Length > 0)
            {
                TaskCfg rowdata = new TaskCfg(line);
                mList.Add(rowdata);
            }
            else
            {
                continue;
            }
        }
    }