Example #1
0
        private void mnuOpenFile_Click(object sender, System.EventArgs e)
        {
            //Obtenir le fichier a ouvrir
            OpenFileDialog openFile = new OpenFileDialog();

            openFile.Title           = "Choisir le fichier table (TBL) à ouvrir";
            openFile.Filter          = "Fichiers Table (Thingy)|*tbl|Tous les Fichiers (*.*)|*.*";
            openFile.CheckFileExists = true;
            openFile.CheckPathExists = true;
            openFile.ShowDialog(this);

            string filename = openFile.FileName;

            if (filename != "")
            {
                hexaFileShow1.UseTBL = true;
                hexaFileShow1.AddTBL(Path.GetFileNameWithoutExtension(filename), filename);
            }
        }