Example #1
0
        private bool CheckSourceFiles()
        {
            expertSource  = Path.Combine(ioManager.CurrentDirectory, ExpertName);
            librarySource = Path.Combine(ioManager.CurrentDirectory, LibraryName);

            if (!ioManager.FileExists(expertSource))
            {
                view.AppendOutput(string.Format("Could not find '{0}' file.", ExpertName));
                return(false);
            }
            if (!ioManager.FileExists(librarySource))
            {
                view.AppendOutput(string.Format("Could not find '{0}' file.", LibraryName));
                return(false);
            }
            return(true);
        }
Example #2
0
        private void StartApplication()
        {
            string path = Path.Combine(ioManager.CurrentDirectory, settings.FSTPath);

            if (!ioManager.FileExists(path))
            {
                view.UpdateStatus("Cannot find Forex Strategy Trader!");
                return;
            }

            view.UpdateStatus("- loading application...");
            ioManager.RunFile(path, settings.Arguments);
        }
        private void StartApplication()
        {
            view.UpdateStatus("- loading application...");

            string path = Path.Combine(ioManager.CurrentDirectory, settings.FSTPath);

            if (ioManager.FileExists(path))
            {
                ioManager.RunFile(path, settings.Arguments);
            }
            else
            {
                view.UpdateStatus("Error: cannot find FST!");
            }
        }