Exemple #1
0
        public static void OpenFile(string path)
        {
            var file = GetTextFileType(path);

            AddToHistory(file);
            Registrator.AddForm(file, MainForm);
        }
Exemple #2
0
        public static void OpenFile(OpenFileDialog fileDialog)
        {
            if (fileDialog.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }
            var file = GetTextFileType(fileDialog.FileName);

            AddToHistory(file);
            Registrator.AddForm(file, MainForm);
        }