Be.HexEditor.FormHexEditor.OpenFile C# (CSharp) Method

OpenFile() private method

Shows the open file dialog.
private OpenFile ( ) : void
return void
        void OpenFile()
        {
            if (openFileDialog.ShowDialog() == DialogResult.OK)
            {
                OpenFile(openFileDialog.FileName);
            }
        }

Same methods

FormHexEditor::OpenFile ( string fileName ) : void

Usage Example

Exemplo n.º 1
0
        public static void CreateLink(byte[] Data)
        {
            FormHexEditor ApplictionForm;

            if (!Settings.Default.UseSystemLanguage)
            {
                string l = Settings.Default.SelectedLanguage;
                Thread.CurrentThread.CurrentUICulture = new CultureInfo(l);
                Thread.CurrentThread.CurrentCulture   = CultureInfo.CreateSpecificCulture(l);
            }



            ApplictionForm = new FormHexEditor();

            string _dumpDirectory = Path.Combine(AssemblyDirectory, "G1zDumps");

            if (!Directory.Exists(_dumpDirectory))
            {
                Directory.CreateDirectory(_dumpDirectory);
            }

            string _filename = Path.Combine(_dumpDirectory, Guid.NewGuid().ToString() + ".g1z");


            File.WriteAllBytes(_filename, Data);

            ApplictionForm.OpenFile(_filename);

            ApplictionForm.Show();
        }
All Usage Examples Of Be.HexEditor.FormHexEditor::OpenFile