예제 #1
0
        public override bool Process()
        {
            string theCurrentLine = null;

            Program.DebugMessage("Process of the IHM Scripted Function\n");
            Main_Calcul theCalcul = new Main_Calcul(ref mVarList);

            //Ouverture du fichier
            StreamReader sr = new StreamReader(mFilePath);

            theCurrentLine = sr.ReadLine();

            //Boucle sur chaque ligne du fichier
            while (theCurrentLine != null)
            {
                theCalcul.mLine = CreateLine(theCurrentLine);
                theCalcul.Calculate();
                theCurrentLine = sr.ReadLine();
            }

            //Fermeture du fichier
            sr.Close();


            return(true);
        }
예제 #2
0
        public override bool Process()
        {
            String theReadLine = null;

            Console.Write("Please enter your calcul \n");
            theReadLine = Console.ReadLine();
            Console.Write("You write the following line " + theReadLine + " \n");
            if (!IHM.YorNoDialog("Do You Want to process the Calcul ?"))
            {
                return(false);
            }


            Main_Calcul theCalcul = new Main_Calcul(CreateLine(theReadLine), ref mVarList);

            Program.DebugMessage("Process of the IHM Manual Function\n");


            return(theCalcul.Calculate());
        }