Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
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();
            }
        }