예제 #1
0
 public void AddPart(string filename)
 {
     Parts.Add(MmsPart.FromFile(filename));
 }
예제 #2
0
        /// <summary>
        /// Creates a MmsPart from a file
        /// </summary>
        /// <param name="filename">A valid path to a existing file</param>
        public static MmsPart FromFile(string filename)
        {
            var name = new FileInfo(filename).Name;

            return(MmsPart.FromFile(filename, name));
        }