public void readInFilepropertyElement(XmlReader reader, string dotName, Fileproperty fileproperty)
        {
            //while (reader.NodeType != XmlNodeType.EndElement)
            //{
                reader.Read();//now on text node
                if (reader.NodeType == XmlNodeType.Text)
                {
                    //Console.WriteLine(dotName + " = " + reader.Value);
                    switch (dotName)
                    {
                        case "Name":
                            fileproperty.Filename = reader.Value;
                            reader.Read();//now on end element like </Name>
                            break;
                        case "StartingFrame":
                            fileproperty.StartingFrame = Convert.ToInt32(reader.Value);
                            reader.Read();//now on end element like </Name>
                            break;
                        case "TotalFrames":
                            fileproperty.TotalFrames = Convert.ToInt32(reader.Value);
                            reader.Read();//now on end element like </Name>
                            break;

                    }
                }
            //}
            reader.Read();//now on the next start element like <StartingFrame>

        }
        public void readInFilepropertyElement(XmlReader reader, string dotName, Fileproperty fileproperty)
        {
            //while (reader.NodeType != XmlNodeType.EndElement)
            //{
            reader.Read();    //now on text node
            if (reader.NodeType == XmlNodeType.Text)
            {
                //Console.WriteLine(dotName + " = " + reader.Value);
                switch (dotName)
                {
                case "Name":
                    fileproperty.Filename = reader.Value;
                    reader.Read();        //now on end element like </Name>
                    break;

                case "StartingFrame":
                    fileproperty.StartingFrame = Convert.ToInt32(reader.Value);
                    reader.Read();        //now on end element like </Name>
                    break;

                case "TotalFrames":
                    fileproperty.TotalFrames = Convert.ToInt32(reader.Value);
                    reader.Read();        //now on end element like </Name>
                    break;
                }
            }
            //}
            reader.Read();//now on the next start element like <StartingFrame>
        }