// cHAY TAB public void RunTabConTrol() { DirectoryTabcontrol RanString = tabControl as DirectoryTabcontrol; RanString.Dir = duongdan; RanString.Run(); }
public void Open_File() { try { string file = FileSelector.BrowseFile(FileType.Excel97); DirectoryTabcontrol RanString = tabControl as DirectoryTabcontrol; int name = file.LastIndexOf("\\"); string _nametab = file.Substring(name + 1); try { RanString.duongdan.Add(_nametab, file); RanString.nameoftab = _nametab; RanString.Dir = file; RanString.Run(); } catch { RanString.nameoftab = _nametab; RanString.Dir = file; RanString.Run(); } counttabpage(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void Open_File_Click(object sender, EventArgs e) { string file = FileSelector.BrowseFile(FileType.Excel97); DirectoryTabcontrol RanString = tabControl as DirectoryTabcontrol; RanString.Dir = file; RanString.Run(); }
private void Open_File_Click(object sender, EventArgs e) { string file = FileSelector.BrowseFile(FileType.Excel97); DirectoryTabcontrol RanString = tabControl as DirectoryTabcontrol; int name = file.LastIndexOf("\\"); string _nametab = file.Substring(name + 1); RanString.duongdan.Add(_nametab, file); RanString.nameoftab = _nametab; RanString.Dir = file; RanString.Run(); counttabpage(); }
// cHAY TAB public void RunTabConTrol() { DirectoryTabcontrol RanString = tabControl as DirectoryTabcontrol; RanString.Dir = duongdan; RanString.nameoftab = nametabofdir; try { RanString.duongdan.Add(nametabofdir, duongdan); RanString.Run(); counttabpage(); } catch { RanString.Run(); counttabpage(); } }