private void ClearTranslationsCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            // Confirm clearing current translations
            MessageBoxResult clearTranslationsOk = MessageBox.Show("Confirm clearing current translations\nNOTE: This will reset EVERYTHING!",
                                                                   "Clear Current Translations",
                                                                   MessageBoxButton.OKCancel);

            // Return if user did not press ok
            if (clearTranslationsOk != MessageBoxResult.OK)
            {
                return;
            }

            // Load default translations
            TranslationManager.LoadDefaults();
        }
        private void FileSaveAsCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            SaveFileDialog fileDialog = new SaveFileDialog();

            // Sets filter and default file extension for file dialog
            fileDialog.DefaultExt = ".dat";
            fileDialog.Filter     = "DAT Files (*.dat)|*.dat|All Files (*.*)|*.*";

            // Show file dialog
            bool?fileChosen = fileDialog.ShowDialog();

            // If result has no value or value is false
            if (!fileChosen.HasValue || !fileChosen.Value)
            {
                // Stop attempting save
                return;
            }

            // Get chosen file path
            string filePath = fileDialog.FileName;

            // Save at chosen file path
            TranslationManager.Save(filePath);
        }
 private void FileSaveCommand_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     // Saves at current/default translations path
     TranslationManager.Save();
 }