예제 #1
0
 public void Save()
 {
     if (adapter.GetPath() == null)
     {
         throw new Exception();
     }
     else
     {
         adapter.Save(T, H, W);
     }
 }
예제 #2
0
        public void SaveNewFile(string path, string name)
        {
            DirectoryInfo dir = new DirectoryInfo(path);

            if (dir.Exists)
            {
                string p = path + @"\" + name + ".html";
                adapter = new HTMLAdapt(p);
                adapter.Save(T, H, W);
            }
            else
            {
                throw new Exception();
            }
        }