Ejemplo n.º 1
0
        public static ArrayList CompareFile(TextController leftController, TextController rightController)
        {
            try
            {
                double _time = 0;
                FileCompareEngine _engine = new FileCompareEngine();

                _engine.Setup(leftController, rightController);
                _time = _engine.Execute();

                return _engine.GetResult();
            }
            catch (Exception ex)
            {
                string tmp = string.Format("{0}{1}{1}***STACK***{1}{2}",
                    ex.Message,
                    Environment.NewLine,
                    ex.StackTrace);
                MessageBox.Show(tmp, "Compare Error");
                return null;
            }
        }
Ejemplo n.º 2
0
 public void Setup(TextController controllerFileLeft, TextController controllerFileRight)
 {
     m_controllerFileLeft = controllerFileLeft;
     m_controllerFileRight = controllerFileRight;
 }