public Map(MapKind kind, MapArchitecture architecture, List <MapEntry> managedToJava, List <MapEntry> javaToManaged, string formatVersion) { Kind = kind; Architecture = architecture; ManagedToJava = managedToJava; JavaToManaged = javaToManaged; FormatVersion = formatVersion; }
private void loadMapFileButton_Click(object sender, EventArgs e) { //Run compile selector CompileSelector compileSelector = new CompileSelector(MAP_FILE_DIRECTORY, MAP_FILE_EXTENSION, onlyOneSelection: true); if (compileSelector.ShowDialog() == DialogResult.Yes) { //Selected successfully mapArchitecture = compileSelector.selectedMapFiles[0]; } }
private void clearButton_Click(object sender, EventArgs e) { mapArchitecture = new MapArchitecture(); }
public static string GetOutputFileBaseName(string outputDirectory, string formatVersion, MapKind kind, MapArchitecture architecture) { string ret = $"typemap-v{formatVersion}-{kind}-{architecture}"; if (outputDirectory.Length == 0) { return(ret); } return(Path.Combine(outputDirectory, ret)); }