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