コード例 #1
0
ファイル: GrindingEngine.cs プロジェクト: catontheway/myevo
        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");
            }
        }
コード例 #2
0
ファイル: GrindingEngine.cs プロジェクト: acidburn974/lazybot
 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");
     }
 }
コード例 #3
0
ファイル: GrindingEngine.cs プロジェクト: catontheway/myevo
 public bool LoadProfile(string path)
 {
     CurrentProfile.LoadNoDialog(path);
     return(true);
 }