public static string GetExtendedName(this IRun run, bool useExtendedCategoryName = true) { var stringBuilder = new StringBuilder(); if (!string.IsNullOrWhiteSpace(run.GameName)) { stringBuilder.Append(run.GameName); } var categoryName = run.CategoryName; if (useExtendedCategoryName) { categoryName = run.GetExtendedCategoryName(); } if (!string.IsNullOrWhiteSpace(categoryName)) { if (stringBuilder.Length > 0) { stringBuilder.Append(" - "); } stringBuilder.Append(categoryName); } return(stringBuilder.ToString()); }
public RecentSplitsFile(string path, IRun run, TimingMethod method, string hotkeyProfile) : this(path, method, hotkeyProfile) { if (run != null) { GameName = run.GameName; CategoryName = run.GetExtendedCategoryName(); } }
public RecentSplitsFile(string path, IRun run) : this(path) { if (run != null) { GameName = run.GameName; CategoryName = run.GetExtendedCategoryName(); } }