Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various mods #29

Merged
merged 13 commits into from
May 30, 2020
26 changes: 24 additions & 2 deletions NX_Game_Info/Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ public char CsvSeparator
set { this["CsvSeparator"] = value; }
}

[UserScopedSetting()]
[DefaultSettingValue("{n} [{i}][v{v}]")]
public string RenameFormat
{
get { return (string)this["RenameFormat"]; }
set { this["RenameFormat"] = value; }
}

[UserScopedSetting()]
[DefaultSettingValue("False")]
public bool NszExtension
Expand Down Expand Up @@ -159,6 +167,20 @@ public List<ArrayOfTitle> Titles
public static History Default = (History)Synchronized(new History());
}

public class RecentDirectories : ApplicationSettingsBase
{
[UserScopedSetting()]
[DefaultSettingValue("")]
[SettingsSerializeAs(SettingsSerializeAs.Xml)]
public List<ArrayOfTitle> Titles
{
get { return (List<ArrayOfTitle>)this["Titles"]; }
set { this["Titles"] = value; }
}

public static RecentDirectories Default = (RecentDirectories)Synchronized(new RecentDirectories());
}

[Serializable]
public class ArrayOfTitle
{
Expand Down Expand Up @@ -294,10 +316,10 @@ public Title() { }
public string displayVersion { get; set; } = "";
[XmlElement("Version")]
public uint version { get; set; } = unchecked((uint)-1);
public string versionString { get { return version != unchecked((uint)-1) ? version.ToString() : ""; } }
public string versionString { get { return version != unchecked((uint)-1) ? version.ToString() + (version >= 65536 ? " (" + (version / 65536).ToString() + ")" : "") : ""; } }
[XmlElement("LatestVersion")]
public uint latestVersion { get; set; } = unchecked((uint)-1);
public string latestVersionString { get { return latestVersion != unchecked((uint)-1) ? latestVersion.ToString() : ""; } }
public string latestVersionString { get { return latestVersion != unchecked((uint)-1) ? latestVersion.ToString() + (latestVersion >= 65536 ? " (" + (latestVersion / 65536).ToString() + ")" : "") : ""; } }
[XmlElement("SystemUpdate")]
public uint systemUpdate { get; set; } = unchecked((uint)-1);
public string systemUpdateString
Expand Down
76 changes: 37 additions & 39 deletions Windows/AboutBox.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Windows/AboutBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public string AssemblyCompany
}
#endregion

private void okButton_Click(object sender, EventArgs e)
private void buttonOK_Click(object sender, EventArgs e)
{
Close();
}
Expand Down
Loading