Esempio n. 1
0
        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");
            }
        }
Esempio n. 2
0
 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");
     }
 }
Esempio n. 3
0
 public bool LoadProfile(string path)
 {
     CurrentProfile.LoadNoDialog(path);
     return(true);
 }