public void Create(int h, int w) { data.RowCount = h; data.ColumnCount = w; H = h; W = w; FillWith(null); Show(); HeadersInit(); adapter = new HTMLAdapt(null); }
public void Open(string path) { adapter = new HTMLAdapt(path); H = adapter.GetHeight(); W = adapter.GetWidth(); data.RowCount = H; data.ColumnCount = W; T = new Cell[H, W]; T = adapter.GetTable(); HeadersInit(); Show(); }
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(); } }