public void Load() { string absPath = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(Pb.CurrentProfile.XmlPath), Path); if (ProfileManager.XmlLocation != absPath) { try { if (ProfileType == LoadProfileType.Honorbuddy) { Professionbuddy.Log("Loading Profile :{0}, previous profile was {1}", absPath, ProfileManager.XmlLocation); if (string.IsNullOrEmpty(Path)) { ProfileManager.LoadEmpty(); } else if (System.IO.File.Exists(absPath)) { ProfileManager.LoadNew(absPath); } else { Logging.Write(System.Drawing.Color.Red, "Unable to load profile {0}", Path); } } else { Professionbuddy.LoadProfile(absPath); } } catch (Exception ex) { Professionbuddy.Err(ex.ToString()); } } }