Example #1
0
 /// <summary>
 /// Copy Constructor to copy file
 /// </summary>
 /// <param name="oldfile"></param>
 public AsyncFile(AsyncFile oldfile)
 {
     FileInfo file = new FileInfo(oldfile.FilePath);
     if (file.Exists)
     {
         InitializeFile(file);
     }
     else
     {
         throw new Exception();
     }
 }
Example #2
0
        /// <summary>
        /// Copy Constructor to copy file
        /// </summary>
        /// <param name="oldfile"></param>
        public AsyncFile(AsyncFile oldfile)
        {
            FileInfo file = new FileInfo(oldfile.FilePath);

            if (file.Exists)
            {
                InitializeFile(file);
            }
            else
            {
                throw new Exception();
            }
        }