Ejemplo n.º 1
0
        /// <summary>
        /// Запустить alfamos и установить подключение
        /// </summary>
        /// <param name="anyAlfamos"></param>
        /// <returns>имя новой сессии</returns>
        public char OpenConnection(PCCOMM_Path anyAlfamos, out Process alfamos)
        {
            char currentSessionName = 'H';

            alfamos = null;
            for (int i = 8; i > 0; i--)
            {
                if (EUCL.Connect($"{ currentSessionName }") == 0)
                {
                    currentSessionName++;
                    alfamos = runAlfamos(currentSessionName, anyAlfamos.Path);

                    return(currentSessionName);
                }
                else if (currentSessionName != 'A')
                {
                    currentSessionName--;
                }
                else
                {
                    alfamos = runAlfamos(currentSessionName, anyAlfamos.Path);
                }
            }
            return(currentSessionName);
        }
Ejemplo n.º 2
0
 public EquationWorker(PCCOMM_Path alfamos2, PCCOMM_Path alfamos4, PCCOMM_Path pcscm)
 {
     _alfamos2 = alfamos2;
     _alfamos4 = alfamos4;
     _pcscm    = pcscm;
 }
Ejemplo n.º 3
0
 public void EditPath(PCCOMM_Path path)
 {
     _dbContext.PCCOMM_Paths.FirstOrDefault(i => i.SessionName.Equals(path.SessionName)).Path = path.Path;
     _dbContext.SaveChanges();
 }