Пример #1
0
        private static void ReadAppInfo(XmlReader reader, Dictionary <int, AppRunInfoCollection> appStat)
        {
            //We are at AppInfo
            reader.MoveToAttribute("ID");
            var appId = reader.ReadContentAsInt();

            reader.Read();

            if (reader.Name == "Run")
            {
                var runHistory = new AppRunInfoCollection();
                appStat[appId] = runHistory;

                while (reader.IsStartElement())
                {
                    runHistory.Add(ReadRunEvent(reader));
                    reader.Read();
                }
            }

            if (reader.Name == "AppInfo" && reader.NodeType == XmlNodeType.EndElement)
            {
                reader.ReadEndElement();
            }
        }
Пример #2
0
		public AppInfo()
		{
			_RunHostory = new AppRunInfoCollection();
		}