Exemple #1
0
        virtual protected bool Convert()
        {
            bool bReturn = false;

            Console.WriteLine("Converting {0} to {1}", m_ei.ToString(), m_eo.ToString());

            Console.WriteLine("Get equation: {0}", m_ei.strFileName);
            if (m_ei.Get())
            {
                Console.WriteLine("Get MTEF");
                if (m_ei.GetMTEF())
                {
                    Console.WriteLine("Convert Equation");
                    if (ConvertToOutput())
                    {
                        Console.WriteLine("Write equation: {0}", m_eo.strFileName);
                        if (m_eo.Put())
                        {
                            bReturn = true;
                        }
                    }
                }
            }

            Console.WriteLine("Convert success: {0}\r\n", bReturn.ToString());
            return(bReturn);
        }
Exemple #2
0
        virtual protected bool Convert()
        {
            bool bReturn = false;

            if (m_ei.Get())
            {
                if (m_ei.GetMTEF())
                {
                    if (ConvertToOutput())
                    {
                        if (m_eo.Put())
                        {
                            bReturn = true;
                        }
                    }
                }
            }

            Console.WriteLine("Convert success: {0}\r\n", bReturn.ToString());
            return(bReturn);
        }