private async Task ReOpenFileAsync(string path) { if (path != null && File.Exists(path)) { await TabManager.OpenFileAsync(path); } JumpToLastTab(); }
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(); }