diff --git a/SicUI/Controls/Mainframe/AtmRobotMultiLP.xaml.cs b/SicUI/Controls/Mainframe/AtmRobotMultiLP.xaml.cs index 0dd9e1c5..23cb4640 100644 --- a/SicUI/Controls/Mainframe/AtmRobotMultiLP.xaml.cs +++ b/SicUI/Controls/Mainframe/AtmRobotMultiLP.xaml.cs @@ -174,6 +174,38 @@ namespace SicUI.Controls.M2C4Parts public static readonly DependencyProperty HasTrayProperty = DependencyProperty.Register("HasTray", typeof(Visibility), typeof(AtmRobotMultiLP), new PropertyMetadata(Visibility.Hidden)); + + public RobotPosition RobotPointIntsMove + { + get { return (RobotPosition)GetValue(RobotPointIntsMoveProperty); } + set { SetValue(RobotPointIntsMoveProperty, value); } + } + public static readonly DependencyProperty RobotPointIntsMoveProperty = + DependencyProperty.Register("RobotPointIntsMove", typeof(RobotPosition), typeof(AtmRobotMultiLP), new FrameworkPropertyMetadata(null, PointMoveTest)); + + + static void PointMoveTest(DependencyObject d, DependencyPropertyChangedEventArgs e) + { + var self = (AtmRobotMultiLP)d; + var robotPosition = (RobotPosition)e.NewValue; + + + var storyboard = new Storyboard(); + + var needRotate = new List(); + + needRotate.Add(self.canvas1.Rotate(storyboard, robotPosition.Root, true, self.MoveTime)); + needRotate.Add(self.canvas2.Rotate(storyboard, robotPosition.Arm, true, self.MoveTime)); + needRotate.Add(self.canvas3.Rotate(storyboard, robotPosition.Hand, true, self.MoveTime)); + + + if (needRotate.Any(x => x)) + storyboard.Begin(); + + + } + + private List menu; public event PropertyChangedEventHandler PropertyChanged; diff --git a/SicUI/Controls/Mainframe/M2C4EFEMView2.xaml b/SicUI/Controls/Mainframe/M2C4EFEMView2.xaml index 7e86fd85..6dc7c026 100644 --- a/SicUI/Controls/Mainframe/M2C4EFEMView2.xaml +++ b/SicUI/Controls/Mainframe/M2C4EFEMView2.xaml @@ -202,6 +202,7 @@ Height="80" HasTray="{Binding TMRobotHaveTray}" HasWafer="{Binding IsArmWater}" + RobotPointIntsMove="{Binding TmRobotPointIntsMove}" RobotMoveInfo="{Binding TmRobotMoveInfo}" ShowDock="False" Wafer1="{Binding TMRobotWafer1}" HorizontalAlignment="Center" VerticalAlignment="Top" /> diff --git a/SicUI/Models/Operations/Overviews/OverViewView.xaml b/SicUI/Models/Operations/Overviews/OverViewView.xaml index 53aeee70..7f983b74 100644 --- a/SicUI/Models/Operations/Overviews/OverViewView.xaml +++ b/SicUI/Models/Operations/Overviews/OverViewView.xaml @@ -417,6 +417,38 @@ + + + + + + + + +