Example #1
0
 public Graphing()
 {
     InitializeComponent();
     _engine = new Engine();
     _engine.MemoryManager = new SimpleMemmMan();
     _source = new FunctionPlotSource();
     FunctionTemplates.ItemsSource = _source;
 }
Example #2
0
 private void MetroWindow_Loaded(object sender, RoutedEventArgs e)
 {
     bool designTime = System.ComponentModel.DesignerProperties.GetIsInDesignMode(new DependencyObject());
     if (designTime) return;
     _engine = new Engine();
     _engine.StdOutWriten += _engine_StdOutWriten;
     _engine.MemoryManager = Keypad;
     _engine.LoadUserFunctions();
     FncList.Funtions = Engine.Functions.ToArray();
     _stdout = new StringBuilder();
     Display.Focus();
 }
Example #3
0
 protected virtual void Dispose(bool direct)
 {
     if (_engine != null)
     {
         _engine.Dispose();
         _engine = null;
     }
 }