private void CTableTBLButton_Click(object sender, RoutedEventArgs e) { var fileDialog = new OpenFileDialog(); if (fileDialog.ShowDialog() != null) { if (File.Exists(fileDialog.FileName)) { Application.Current.MainWindow.Cursor = Cursors.Wait; HexEdit.LoadTblFile(fileDialog.FileName); HexEdit.TypeOfCharacterTable = CharacterTableType.TblFile; CTableAsciiButton.IsChecked = false; CTableTblButton.IsChecked = true; CTableTblDefaultAsciiButton.IsChecked = false; Application.Current.MainWindow.Cursor = null; } } }