Just few comments on above notwa's method :)

(Oh and transform string concatenation with + to a string.Format)
Also made a small fix to externaltoolmanager
This commit is contained in:
Hathor86 2015-12-24 14:00:08 +01:00
parent 9a45066e27
commit da25052e09
3 changed files with 16 additions and 3 deletions

View File

@ -37,7 +37,10 @@ namespace BizHawk.Client.ApiHawk
}
directoryMonitor = new FileSystemWatcher(Global.Config.PathEntries["Global", "External Tools"].Path, "*.dll");
directoryMonitor.IncludeSubdirectories = false;
directoryMonitor.Created += DirectoryMonitor_Created;
directoryMonitor.NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.LastWrite | NotifyFilters.FileName;
directoryMonitor.Filter = "*.dll";
directoryMonitor.Created += new FileSystemEventHandler(DirectoryMonitor_Created);
directoryMonitor.EnableRaisingEvents = true;
BuildToolStrip();
}

View File

@ -74,7 +74,12 @@ namespace BizHawk.Client.Common
{
get { return string.Empty; }
}
/// <summary>
/// TTransform the current instance into a displayable (short representation) string
/// It's used by the "Display on screen" option in the RamWatch window
/// </summary>
/// <returns>A well formatted string representation</returns>
public override string ToDisplayString()
{
return "----";

View File

@ -567,9 +567,14 @@ namespace BizHawk.Client.Common
);
}
/// <summary>
/// Transform the current instance into a displayable (short representation) string
/// It's used by the "Display on screen" option in the RamWatch window
/// </summary>
/// <returns>A well formatted string representation</returns>
public virtual string ToDisplayString()
{
return Notes + ": " + ValueString;
return string.Format("{0}: {1}", Notes, ValueString);
}
#endregion