private void buttonNext_Click(object sender, RoutedEventArgs e) { DoWorkEventArgs e2 = new DoWorkEventArgs(null); DrawingMechanism.Calculation(null, e2); this.PathPlanePosition.Data = ((DrawingMechanism)e2.Result).ResultGeometry; VisibleParameters(); }
private void OnTimer(object obj, EventArgs e) { //additional_thread.RunWorkerAsync(); DoWorkEventArgs e2 = new DoWorkEventArgs(null); DrawingMechanism.Calculation(null, e2); this.PathPlanePosition.Data = ((DrawingMechanism)e2.Result).ResultGeometry; VisibleParameters(); /*DrawingMechanism.mechanism = plan_position[NumberPosition]; * additional_thread.RunWorkerAsync();*/ }