public void Load() { GrindingSettings.LoadSettings(); var executableFileInfo = new FileInfo(Application.ExecutablePath); string executableDirectoryName = executableFileInfo.DirectoryName; OurDirectory = executableDirectoryName; if (!string.IsNullOrEmpty(GrindingSettings.Profile) && File.Exists(GrindingSettings.Profile)) { CurrentProfile = new PathProfile(); CurrentProfile.LoadNoDialog(GrindingSettings.Profile); } else { CurrentProfile = null; Logging.Write(LogType.Error, "Could not load a valid grinding profile"); } }
public bool LoadProfile(string path) { CurrentProfile.LoadNoDialog(path); return(true); }