mirror of
https://github.com/fadden/6502bench.git
synced 2024-08-20 11:28:58 +00:00
Mostly a straight copy & paste of the files. The only significant change was to move the localizable strings from Properties/Resources (RESX) to Res/Strings.xaml (Resource Dictionary). I expect a number of strings will no longer be needed, since WPF lets you put more of the UI/UX logic into the design side. I also renamed the namespace to SourceGenWPF, and put the app icon into the Res directory so it can be a resource rather than a loose file. I'm merging the "Setup" directory contents into the main app since there wasn't a whole lot going on there. The WPF Color class lacks conversions to/from a 32-bit integer, so I added those. None of the stuff is wired up yet.
72 lines
4.2 KiB
C#
72 lines
4.2 KiB
C#
using System;
|
|
using System.Windows;
|
|
|
|
namespace SourceGenWPF.Res {
|
|
public static class Strings {
|
|
public static string ERR_BAD_FD_FMT =
|
|
(string)Application.Current.FindResource("str_ErrBadFdFmt");
|
|
public static string ERR_BAD_FD_TYPE =
|
|
(string)Application.Current.FindResource("str_ErrBadFdType");
|
|
public static string ERR_BAD_FILE_LENGTH =
|
|
(string)Application.Current.FindResource("str_ErrBadFileLength");
|
|
public static string ERR_BAD_IDENT =
|
|
(string)Application.Current.FindResource("str_ErrBadIdent");
|
|
public static string ERR_BAD_RANGE =
|
|
(string)Application.Current.FindResource("str_ErrBadRange");
|
|
public static string ERR_BAD_SYMBOL_ST =
|
|
(string)Application.Current.FindResource("str_ErrBadSymbolSt");
|
|
public static string ERR_BAD_SYMREF_PART =
|
|
(string)Application.Current.FindResource("str_ErrBadSymrefPart");
|
|
public static string ERR_BAD_TYPE_HINT =
|
|
(string)Application.Current.FindResource("str_ErrBadTypeHint");
|
|
public static string ERR_DUPLICATE_LABEL_FMT =
|
|
(string)Application.Current.FindResource("str_ErrDuplicateLabelFmt");
|
|
public static string ERR_FILE_EXISTS_NOT_DIR_FMT =
|
|
(string)Application.Current.FindResource("str_ErrFileExistsNotDirFmt");
|
|
public static string ERR_FILE_NOT_FOUND_FMT =
|
|
(string)Application.Current.FindResource("str_ErrFileNotFoundFmt");
|
|
public static string ERR_FILE_READ_ONLY_FMT =
|
|
(string)Application.Current.FindResource("str_ErrFileReadOnlyFmt");
|
|
public static string ERR_INVALID_INT_VALUE =
|
|
(string)Application.Current.FindResource("str_ErrInvalidIntValue");
|
|
public static string ERR_INVALID_KEY_VALUE =
|
|
(string)Application.Current.FindResource("str_ErrInvalidKeyValue");
|
|
public static string ERR_NOT_PROJECT_FILE =
|
|
(string)Application.Current.FindResource("str_ErrNotProjectFile");
|
|
public static string ERR_PROJECT_FILE_CORRUPT =
|
|
(string)Application.Current.FindResource("str_ErrProjectFileCorrupt");
|
|
public static string ERR_PROJECT_LOAD_FAIL =
|
|
(string)Application.Current.FindResource("str_ErrProjectLoadFail");
|
|
public static string FILE_FILTER_CS =
|
|
(string)Application.Current.FindResource("str_FileFilterCs");
|
|
public static string FILE_FILTER_DIS65 =
|
|
(string)Application.Current.FindResource("str_FileFilterDis65");
|
|
public static string FILE_FILTER_SYM65 =
|
|
(string)Application.Current.FindResource("str_FileFilterSym65");
|
|
public static string INITIAL_EXTENSION_SCRIPTS =
|
|
(string)Application.Current.FindResource("str_InitialExtensionScripts");
|
|
public static string INITIAL_PARAMETERS =
|
|
(string)Application.Current.FindResource("str_InitialParameters");
|
|
public static string INITIAL_SYMBOL_FILES =
|
|
(string)Application.Current.FindResource("str_InitialSymbolFiles");
|
|
public static string PROJECT_FIELD_COMMENT =
|
|
(string)Application.Current.FindResource("str_ProjectFieldComment");
|
|
public static string PROJECT_FIELD_LONG_COMMENT =
|
|
(string)Application.Current.FindResource("str_ProjectFieldLongComment");
|
|
public static string PROJECT_FIELD_NOTE =
|
|
(string)Application.Current.FindResource("str_ProjectFieldNote");
|
|
public static string PROJECT_FIELD_OPERAND_FORMAT =
|
|
(string)Application.Current.FindResource("str_ProjectFieldOperandFormat");
|
|
public static string PROJECT_FIELD_STATUS_FLAGS =
|
|
(string)Application.Current.FindResource("str_ProjectFieldStatusFlags");
|
|
public static string PROJECT_FIELD_TYPE_HINT =
|
|
(string)Application.Current.FindResource("str_ProjectFieldTypeHint");
|
|
public static string PROJECT_FIELD_USER_LABEL =
|
|
(string)Application.Current.FindResource("str_ProjectFieldUserLabel");
|
|
public static string PROJECT_FROM_NEWER_APP =
|
|
(string)Application.Current.FindResource("str_ProjectFromNewerApp");
|
|
public static string SETUP_SYSTEM_SUMMARY_FMT =
|
|
(string)Application.Current.FindResource("str_SetupSystemSummaryFmt");
|
|
}
|
|
}
|