Esempio n. 1
0
        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());
        }
Esempio n. 2
0
 public RecentSplitsFile(string path, IRun run, TimingMethod method, string hotkeyProfile)
     : this(path, method, hotkeyProfile)
 {
     if (run != null)
     {
         GameName     = run.GameName;
         CategoryName = run.GetExtendedCategoryName();
     }
 }
Esempio n. 3
0
 public RecentSplitsFile(string path, IRun run)
     : this(path)
 {
     if (run != null)
     {
         GameName = run.GameName;
         CategoryName = run.GetExtendedCategoryName();
     }
 }
Esempio n. 4
0
 public RecentSplitsFile(string path, IRun run)
     : this(path)
 {
     if (run != null)
     {
         GameName     = run.GameName;
         CategoryName = run.GetExtendedCategoryName();
     }
 }