public void Save() { if (adapter.GetPath() == null) { throw new Exception(); } else { adapter.Save(T, H, W); } }
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(); } }