public UncertaintyPropForm()
        {
            InitializeComponent();

            EqationInputFmtDropdown.SelectedItem = "Normal (Calculator Style)";
            OutputFmtDropdown.SelectedItem = "LibreMath";

            var sr = new StreamReader("apikey.txt");
            WolframApiTextBox.Text = sr.ReadToEnd();
            sr.Close();

            _latexConverter = new LatexToImg(Directory.GetCurrentDirectory() + "\\LeanAndMeanPdfLatex\\bin\\win32\\");
            _latexConverter.OnConversionCompletion += RefreshEquationImage;

            _wolframEval = new WolframEvaluator(WolframApiTextBox.Text);

            _calculator = new UncertaintyCalculator(_wolframEval, UpdateStatusLabel, OnCalculationCompletion);

            _latexConverter.QueueNewUpdate(" ");
        }
Beispiel #2
0
        public UncertaintyPropForm()
        {
            InitializeComponent();

            EqationInputFmtDropdown.SelectedItem = "Normal (Calculator Style)";
            OutputFmtDropdown.SelectedItem       = "LibreMath";

            var sr = new StreamReader("apikey.txt");

            WolframApiTextBox.Text = sr.ReadToEnd();
            sr.Close();


            _latexConverter = new LatexToImg(Directory.GetCurrentDirectory() + "\\LeanAndMeanPdfLatex\\bin\\win32\\");
            _latexConverter.OnConversionCompletion += RefreshEquationImage;

            _wolframEval = new WolframEvaluator(WolframApiTextBox.Text);

            _calculator = new UncertaintyCalculator(_wolframEval, UpdateStatusLabel, OnCalculationCompletion);

            _latexConverter.QueueNewUpdate(" ");
        }
 public UncertaintyCalculator(WolframEvaluator wolframEval, CalculationStatusUpdate callback = null, OnCalculationCompletion onCompleteCallback = null)
 {
     _updateEvent = callback;
     _onComplete = onCompleteCallback;
     _wolframEval = wolframEval;
 }
 public UncertaintyCalculator(WolframEvaluator wolframEval, CalculationStatusUpdate callback = null, OnCalculationCompletion onCompleteCallback = null)
 {
     _updateEvent = callback;
     _onComplete  = onCompleteCallback;
     _wolframEval = wolframEval;
 }