Skip to content
Permalink
Browse files

- added additional flexibility to Quick Add feature

  • Loading branch information...
cozy1 committed Apr 1, 2019
1 parent 378802d commit ec9ae02a1359312197c70eb92e649cccda4e177f
@@ -2494,7 +2494,7 @@ private void btnArrangementQuick_Click(object sender, EventArgs e)
ofd.Title = "Multiselect XML Arrangements and Arrange Order ...";
ofd.Filter = "Rocksmith Arrangement XML Files (*.xml)|*.xml|All Files (*.*)|*.*";
ofd.Multiselect = true;

if (ofd.ShowDialog() != DialogResult.OK)
return;

@@ -29,5 +29,5 @@
//
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("f34b4cda")]
[assembly: AssemblyInformationalVersion("378802d2")]
[assembly: AssemblyConfiguration("")]
@@ -1,5 +1,6 @@
Rocksmith Toolkit Release Notes

- added additional flexibility to Quick Add feature
- only show the display setting warning on first run if applicable
- improved App.config file compatibility
- added additional popup messages to Auto Updater to help users with process
@@ -230,6 +230,9 @@ private void InitDefaultFolders()

private void TreeViewBrowser_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
{
// double click produces the undesired effect of opening folder in a new window
return; // so do nothing instead

// opens the double clicked directory or file in windows explorer
if (File.Exists(e.Node.Tag.ToString()) || Directory.Exists(e.Node.Tag.ToString()))
Process.Start(e.Node.Tag.ToString());
@@ -675,7 +678,13 @@ public void RestoreTreeView(List<string> paths, string separator = @"\")
AddNodes(this, rootNode);
}
else
throw new DirectoryNotFoundException("Did not find the rootNode text: " + rootPath);
{
// accomodate user custom installations and Environmental Variables
// reset InitialDirectory instead of throwing exception
InitialDirectory = String.Empty;
Debug.WriteLine("<Reset InitialDirecotry> Did not find the rootNode text: " + rootPath);
// throw new DirectoryNotFoundException("Did not find the rootNode text: " + rootPath);
}

var childNode = rootNode;

@@ -689,13 +698,22 @@ public void RestoreTreeView(List<string> paths, string separator = @"\")
childNode = subNode;
}
else
throw new DirectoryNotFoundException("Did not find node text: " + pathParts[i]);

{
// reset InitialDirectory instead of throwing exception
InitialDirectory = String.Empty;
Debug.WriteLine("<Reset InitialDirecotry> Did not find node text: " + pathParts[i]);
// throw new DirectoryNotFoundException("Did not find node text: " + pathParts[i]);
}
}

var restoreNode = FindNodeByTagRecursive(rootNode, childNode.Tag);
if (restoreNode == null)
throw new DirectoryNotFoundException("Could not restoreNode for: " + path);
{
// reset InitialDirectory instead of throwing exception
InitialDirectory = String.Empty;
Debug.WriteLine("<Reset InitialDirecotry> Could not restoreNode for: " + path);
// throw new DirectoryNotFoundException("Could not restoreNode for: " + path);
}

EndUpdate(); // enable TreeView redrawing and scrolling
Debug.WriteLine("Set InitialDirectory to: " + restoreNode.FullPath);
@@ -27,5 +27,5 @@
//
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("f34b4cda")]
[assembly: AssemblyInformationalVersion("378802d2")]
[assembly: AssemblyConfiguration("")]
@@ -1,7 +1,9 @@
using System.Xml.Serialization;

namespace RocksmithToolkitLib.XmlRepository {
public class SongAppId {
namespace RocksmithToolkitLib.XmlRepository
{
public class SongAppId
{
[XmlAttribute("Version")]
public GameVersion GameVersion { get; set; }
[XmlAttribute]
@@ -10,11 +12,14 @@ public class SongAppId {
public string Name { get; set; }

[XmlIgnore]
public string DisplayName {
public string DisplayName
{
get { return this.ToString(); }
}

public override string ToString() {
// display custom object with ComboBox
public override string ToString()
{
return string.Format("{0} - {1}", Name, AppId);
}
}
@@ -29,5 +29,5 @@
//
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("f34b4cda")]
[assembly: AssemblyInformationalVersion("378802d2")]
[assembly: AssemblyConfiguration("")]
@@ -1,3 +1,3 @@
2.9.2.0
f34b4cda
378802d2

0 comments on commit ec9ae02

Please sign in to comment.
You can’t perform that action at this time.