예제 #1
0
        void GraphIt_Click(object sender, RoutedEventArgs e)
        {
            //TestPop _memDisp=new TestPop();
            //_memDisp.Show();

            Thread thread = new Thread(() =>
            {

                TestPop win = new TestPop { Title = string.Format("Thread id:{0}", Thread.CurrentThread.ManagedThreadId) };

                win.Show();

                Dispatcher.Run();
            });

            thread.IsBackground = true;

            thread.SetApartmentState(ApartmentState.STA);

            thread.Start();

            Display.Children.Clear();
            Grapher grapher = new Grapher();
            Display.Children.Add(grapher.Show2D(this.Equation.Text));
        }
 public GraphingCalculator()
 {
     _ops = new List<Operation>();
     _ops.Add(new Operation("2D Graph", 0));
     _ops.Add(new Operation("2D Parametric Graph", 0));
     _ops.Add(new Operation("3D Parametric Graph", 0));
     _grapher = new Grapher();
     _leaks = new List<byte[]>();
 }
 public GraphingCalculator()
 {
     _ops = new List<IOperation>
        {
          new Operation("2D Graph", 0),
          new Operation("2D Parametric Graph", 0),
          new Operation("3D Parametric Graph", 0)
        };
       _grapher = new Grapher();
       _leaks = new List<byte[]>();
 }
예제 #4
0
 public GraphingCalculator()
 {
     //System.AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
     Dispatcher.CurrentDispatcher.UnhandledException += new DispatcherUnhandledExceptionEventHandler(CurrentDispatcher_UnhandledException);
     _ops = new List<Operation>();
     _ops.Add(new Operation("2D Graph", 0));
     _ops.Add(new Operation("2D Parametric Graph", 0));
     _ops.Add(new Operation("3D Parametric Graph", 0));
     _grapher = new Grapher();
     _leaks = new List<byte[]>();
 }
 void GraphIt_Click(object sender, RoutedEventArgs e)
 {
     Display.Children.Clear();
     Grapher grapher = new Grapher();
     Display.Children.Add(grapher.Show2DP(this.EquationX.Text,this.EquationY.Text));
 }