Ejemplo n.º 1
0
        public XmlElement ToXmlElement(XmlDocument document)
        {
            XmlElement result = document.CreateElement(ConfigConsts.UserTag);

            result.SetAttribute(ConfigConsts.UserNameAttr, Name);
            result.SetAttribute(ConfigConsts.ThreadsCountTag, ThreadsCount.ToString());

            // Write feeds
            var child = document.CreateElement(ConfigConsts.ChannelsListTag);

            foreach (FeedModel feed in FeedsList)
            {
                child.AppendChild(feed.ToXmlElement(document));
            }
            result.AppendChild(child);

            // Write filters
            child = document.CreateElement(ConfigConsts.FiltersListTag);

            child.AppendChild(IncludeFilter.ToXmlElement(document));
            child.AppendChild(ExcludeFilter.ToXmlElement(document));

            result.AppendChild(child);

            return(result);
        }
Ejemplo n.º 2
0
 public string PersonalToString()
 {
     return("Power consumption: " + PowerConsumption.ToString() + " \n" +
            "Cores: " + CoresCount.ToString() + " \n" +
            "ThreadsCount: " + ThreadsCount.ToString() + " \n" +
            "Frequency: " + Frequency.ToString() + " \n" +
            "Socket: " + Socket + " \n" +
            "RAM: " + RamAge + ", " + RamFrequency.ToString());
 }
 public SettingsWindow()
 {
     InitializeComponent();
     ThreadsCount.Focus();
 }
Ejemplo n.º 4
0
 public ColorFilter(ThreadsCount threadsCount = ThreadsCount.One)
 {
     TasksCount = (int)threadsCount;
 }
 public ThreadsCountResult(ThreadsCount threadsCount)
 {
     Count = threadsCount.Count;
 }