Exemple #1
0
        private async Task ReOpenFileAsync(string path)
        {
            if (path != null && File.Exists(path))
            {
                await TabManager.OpenFileAsync(path);
            }

            JumpToLastTab();
        }
Exemple #2
0
        private async Task OpenFileAsync()
        {
            var dialog = new OpenFileDialog();

            dialog.Filter = "(*.txt)|*.txt|All Files (*.*)|*.*";

            var result = dialog.ShowDialog();

            if (result == true)
            {
                await TabManager.OpenFileAsync(dialog.FileName);
            }

            JumpToLastTab();
        }