예제 #1
0
        private void CTableTBLButton_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog 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;
                }
            }
        }
예제 #2
0
        private void CTableTBLButton_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog fileDialog = new OpenFileDialog();

            if (fileDialog.ShowDialog() != null)
            {
                if (File.Exists(fileDialog.FileName))
                {
                    Application.Current.MainWindow.Cursor = Cursors.Wait;

                    HexEdit.LoadTBLFile(fileDialog.FileName);
                    HexEdit.TypeOfCharacterTable = CharacterTable.TBLFile;
                    CTableASCIIButton.IsChecked  = false;
                    CTableTBLButton.IsChecked    = true;

                    Application.Current.MainWindow.Cursor = null;
                }
                //else
                //    MessageBox.Show("File not found!", Settings.Default.ApplicationName, MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }