ATMArmRobot.xaml.cs 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. using Aitex.Core.Common;
  2. using Aitex.Core.UI.MVVM;
  3. using FurnaceUI.Controls.Common;
  4. //using FurnaceUI.Views.Maintenances;
  5. using MECF.Framework.Common.Equipment;
  6. using Caliburn.Micro;
  7. using Caliburn.Micro.Core;
  8. using System;
  9. using System.Collections.Generic;
  10. using System.ComponentModel;
  11. using System.Linq;
  12. using System.Windows;
  13. using System.Windows.Controls;
  14. using System.Windows.Input;
  15. using System.Windows.Media;
  16. using CB = MECF.Framework.UI.Client.ClientBase;
  17. using MECF.Framework.Common.CommonData;
  18. using MECF.Framework.Common.SubstrateTrackings;
  19. using FurnaceUI.Views.Maintenances;
  20. using System.Windows.Media.Animation;
  21. using System.Windows.Media.Media3D;
  22. namespace FurnaceUI.Controls.Parts
  23. {
  24. /// <summary>
  25. /// ATMDualArmRobot.xaml 的交互逻辑
  26. /// </summary>
  27. public partial class ATMArmRobot : UserControl, INotifyPropertyChanged
  28. {
  29. protected readonly int MoveTime = 300;
  30. private const int AnimationTimeout = 3000; // seconds
  31. public int RotateAngle
  32. {
  33. get { return (int)GetValue(RotateAngleProperty); }
  34. set { SetValue(RotateAngleProperty, value); }
  35. }
  36. private RobotAction CurrentAction
  37. {
  38. get; set;
  39. }
  40. // Using a DependencyProperty as the backing store for RotateAngel. This enables animation, styling, binding, etc...
  41. public static readonly DependencyProperty RotateAngleProperty =
  42. DependencyProperty.Register("RotateAngel", typeof(int), typeof(ATMArmRobot), new PropertyMetadata(0));
  43. public ModuleName Station
  44. {
  45. get { return (ModuleName)GetValue(StationProperty); }
  46. set { SetValue(StationProperty, value); }
  47. }
  48. // Using a DependencyProperty as the backing store for Station. This enables animation, styling, binding, etc...
  49. public static readonly DependencyProperty StationProperty =
  50. DependencyProperty.Register("Station", typeof(ModuleName), typeof(ATMArmRobot), new PropertyMetadata(ModuleName.Robot));
  51. public ICommand Command
  52. {
  53. get { return (ICommand)GetValue(CommandProperty); }
  54. set { SetValue(CommandProperty, value); }
  55. }
  56. // Using a DependencyProperty as the backing store for Command. This enables animation, styling, binding, etc...
  57. public static readonly DependencyProperty CommandProperty =
  58. DependencyProperty.Register("Command", typeof(ICommand), typeof(ATMArmRobot), new PropertyMetadata(null));
  59. public string RobotTarget
  60. {
  61. get { return (string)GetValue(RobotTargetProperty); }
  62. set { SetValue(RobotTargetProperty, value); }
  63. }
  64. public static readonly DependencyProperty RobotTargetProperty =
  65. DependencyProperty.Register("RobotTarget", typeof(string), typeof(ATMArmRobot), new FrameworkPropertyMetadata(ModuleName.Robot.ToString(), FrameworkPropertyMetadataOptions.AffectsRender));
  66. public Dictionary<string, StationPosition> StationPosition
  67. {
  68. get { return (Dictionary<string, StationPosition>)GetValue(StationPositionProperty); }
  69. set { SetValue(StationPositionProperty, value); }
  70. }
  71. // Using a DependencyProperty as the backing store for StationPosition. This enables animation, styling, binding, etc...
  72. public static readonly DependencyProperty StationPositionProperty =
  73. DependencyProperty.Register("StationPosition", typeof(Dictionary<string, StationPosition>), typeof(ATMArmRobot), new PropertyMetadata(null, PropertyChangedCallback));
  74. public string ArmAExtended
  75. {
  76. get { return (string)GetValue(ArmAExtendedProperty); }
  77. set { SetValue(ArmAExtendedProperty, value); }
  78. }
  79. // Using a DependencyProperty as the backing store for ArmAExtended. This enables animation, styling, binding, etc...
  80. public static readonly DependencyProperty ArmAExtendedProperty =
  81. DependencyProperty.Register("ArmAExtended", typeof(string), typeof(ATMArmRobot), new FrameworkPropertyMetadata(RobotConstant.RobotRetract, FrameworkPropertyMetadataOptions.AffectsRender));
  82. public string ArmBExtended
  83. {
  84. get { return (string)GetValue(ArmBExtendedProperty); }
  85. set { SetValue(ArmBExtendedProperty, value); }
  86. }
  87. // Using a DependencyProperty as the backing store for armBExtended. This enables animation, styling, binding, etc...
  88. public static readonly DependencyProperty ArmBExtendedProperty =
  89. DependencyProperty.Register("ArmBExtended", typeof(string), typeof(ATMArmRobot), new FrameworkPropertyMetadata(RobotConstant.RobotRetract, FrameworkPropertyMetadataOptions.AffectsRender));
  90. public WaferInfo[] RobotWafers
  91. {
  92. get { return (WaferInfo[])GetValue(RobotWafersProperty); }
  93. set { SetValue(RobotWafersProperty, value); }
  94. }
  95. // Using a DependencyProperty as the backing store for RobotWafers. This enables animation, styling, binding, etc...
  96. public static readonly DependencyProperty RobotWafersProperty =
  97. DependencyProperty.Register("RobotWafers", typeof(WaferInfo[]), typeof(ATMArmRobot), new PropertyMetadata(null, PropertyChangedCallback));
  98. public CB.WaferInfo Wafer1
  99. {
  100. get { return (CB.WaferInfo)GetValue(Wafer1Property); }
  101. set { SetValue(Wafer1Property, value); }
  102. }
  103. // Using a DependencyProperty as the backing store for Wafer1. This enables animation, styling, binding, etc...
  104. public static readonly DependencyProperty Wafer1Property =
  105. DependencyProperty.Register("Wafer1", typeof(CB.WaferInfo), typeof(ATMArmRobot), new PropertyMetadata(null));
  106. public CB.WaferInfo Wafer2
  107. {
  108. get { return (CB.WaferInfo)GetValue(Wafer2Property); }
  109. set { SetValue(Wafer2Property, value); }
  110. }
  111. // Using a DependencyProperty as the backing store for Wafer2. This enables animation, styling, binding, etc...
  112. public static readonly DependencyProperty Wafer2Property =
  113. DependencyProperty.Register("Wafer2", typeof(CB.WaferInfo), typeof(ATMArmRobot), new PropertyMetadata(null));
  114. public CarrierInfo CarrierData
  115. {
  116. get { return (CarrierInfo)GetValue(CarrierDataProperty); }
  117. set { SetValue(CarrierDataProperty, value); }
  118. }
  119. // Using a DependencyProperty as the backing store for Wafer2. This enables animation, styling, binding, etc...
  120. public static readonly DependencyProperty CarrierDataProperty =
  121. DependencyProperty.Register("CarrierData", typeof(CarrierInfo), typeof(ATMArmRobot), new PropertyMetadata(null));
  122. public RobotMoveInfo RobotMoveInfo
  123. {
  124. get { return (RobotMoveInfo)GetValue(RobotMoveInfoProperty); }
  125. set { SetValue(RobotMoveInfoProperty, value); }
  126. }
  127. public static readonly DependencyProperty RobotMoveInfoProperty =
  128. DependencyProperty.Register("RobotMoveInfo", typeof(RobotMoveInfo), typeof(ATMArmRobot), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
  129. public string CassetteType
  130. {
  131. get { return (string)GetValue(CassetteTypeProperty); }
  132. set
  133. {
  134. SetValue(CassetteTypeProperty, value);
  135. }
  136. }
  137. // Using a DependencyProperty as the backing store for CassetteType. This enables animation, styling, binding, etc...
  138. public static readonly DependencyProperty CassetteTypeProperty =
  139. DependencyProperty.Register("CassetteType", typeof(string), typeof(ATMArmRobot), new PropertyMetadata(null));
  140. public int WaferCount
  141. {
  142. get { return (int)GetValue(WaferCountProperty); }
  143. set
  144. {
  145. SetValue(WaferCountProperty, value);
  146. }
  147. }
  148. // Using a DependencyProperty as the backing store for WaferCount. This enables animation, styling, binding, etc...
  149. public static readonly DependencyProperty WaferCountProperty =
  150. DependencyProperty.Register("WaferCount", typeof(int), typeof(ATMArmRobot), new PropertyMetadata(0));
  151. public string CassetteRobotStatus
  152. {
  153. get { return (string )GetValue(CassetteRobotStatusProperty); }
  154. set { SetValue(CassetteRobotStatusProperty, value); }
  155. }
  156. // Using a DependencyProperty as the backing store for WaferRobotStatus. This enables animation, styling, binding, etc...
  157. public static readonly DependencyProperty CassetteRobotStatusProperty =
  158. DependencyProperty.Register("CassetteRobotStatus", typeof(string ), typeof(ATMArmRobot), new PropertyMetadata(null, CassetteRobotStatusChangedCallback));
  159. static void CassetteRobotStatusChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
  160. {
  161. var self = (ATMArmRobot)d;
  162. var test = d;
  163. switch ((string)e.NewValue)
  164. {
  165. case "Homing":
  166. self.RootImagePath = "/FurnaceUI;component/Resources/Images/Controls3/hgz1y.png";
  167. self.Canvas1ImagePath = "/FurnaceUI;component/Resources/Images/Controls3/rb1y.png";
  168. self.Canvas2ImagePath = "/FurnaceUI;component/Resources/Images/Controls3/rb1y.png";
  169. self.Canvas3ImagePath = "/FurnaceUI;component/Resources/Images/Controls3/rb2y.png";
  170. break;
  171. case "Idle":
  172. case "InTransfer":
  173. case "Picking":
  174. case "Placing":
  175. self.RootImagePath = "/FurnaceUI;component/Resources/Images/Controls3/hgz1g.png";
  176. self.Canvas1ImagePath = "/FurnaceUI;component/Resources/Images/Controls3/rb1g.png";
  177. self.Canvas2ImagePath = "/FurnaceUI;component/Resources/Images/Controls3/rb1g.png";
  178. self.Canvas3ImagePath = "/FurnaceUI;component/Resources/Images/Controls3/rb2g.png";
  179. break;
  180. case "Error":
  181. self.RootImagePath = "/FurnaceUI;component/Resources/Images/Controls3/hgz1r.png";
  182. self.Canvas1ImagePath = "/FurnaceUI;component/Resources/Images/Controls3/rb1r.png";
  183. self.Canvas2ImagePath = "/FurnaceUI;component/Resources/Images/Controls3/rb1r.png";
  184. self.Canvas3ImagePath = "/FurnaceUI;component/Resources/Images/Controls3/rb2r.png";
  185. break;
  186. default:
  187. break;
  188. }
  189. }
  190. public string RootImagePath
  191. {
  192. get { return (string)GetValue(RootImagePathProperty); }
  193. set { SetValue(RootImagePathProperty, value); }
  194. }
  195. // Using a DependencyProperty as the backing store for RootImagePath. This enables animation, styling, binding, etc...
  196. public static readonly DependencyProperty RootImagePathProperty =
  197. DependencyProperty.Register("RootImagePath", typeof(string), typeof(ATMArmRobot), new FrameworkPropertyMetadata("/FurnaceUI;component/Resources/Images/Controls3/hgz1y.png", FrameworkPropertyMetadataOptions.AffectsRender));
  198. public string Canvas1ImagePath
  199. {
  200. get { return (string)GetValue(Canvas1ImagePathProperty); }
  201. set { SetValue(Canvas1ImagePathProperty, value); }
  202. }
  203. // Using a DependencyProperty as the backing store for RootImagePath. This enables animation, styling, binding, etc...
  204. public static readonly DependencyProperty Canvas1ImagePathProperty =
  205. DependencyProperty.Register("Canvas1ImagePath", typeof(string), typeof(ATMArmRobot), new FrameworkPropertyMetadata("/FurnaceUI;component/Resources/Images/Controls3/rb1y.png", FrameworkPropertyMetadataOptions.AffectsRender));
  206. public string Canvas2ImagePath
  207. {
  208. get { return (string)GetValue(Canvas2ImagePathProperty); }
  209. set { SetValue(Canvas2ImagePathProperty, value); }
  210. }
  211. // Using a DependencyProperty as the backing store for RootImagePath. This enables animation, styling, binding, etc...
  212. public static readonly DependencyProperty Canvas2ImagePathProperty =
  213. DependencyProperty.Register("Canvas2ImagePath", typeof(string), typeof(ATMArmRobot), new FrameworkPropertyMetadata("/FurnaceUI;component/Resources/Images/Controls3/rb1y.png", FrameworkPropertyMetadataOptions.AffectsRender));
  214. public string Canvas3ImagePath
  215. {
  216. get { return (string)GetValue(Canvas3ImagePathProperty); }
  217. set { SetValue(Canvas3ImagePathProperty, value); }
  218. }
  219. // Using a DependencyProperty as the backing store for RootImagePath. This enables animation, styling, binding, etc...
  220. public static readonly DependencyProperty Canvas3ImagePathProperty =
  221. DependencyProperty.Register("Canvas3ImagePath", typeof(string), typeof(ATMArmRobot), new FrameworkPropertyMetadata("/FurnaceUI;component/Resources/Images/Controls3/rb2y.png", FrameworkPropertyMetadataOptions.AffectsRender));
  222. private string CurrentPosition;
  223. //private string CurrentArmA;
  224. private List<MenuItem> menu;
  225. public List<MenuItem> Menu
  226. {
  227. get
  228. {
  229. return menu;
  230. }
  231. set
  232. {
  233. menu = value;
  234. PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Menu"));
  235. }
  236. }
  237. public ICommand MoveCommand
  238. {
  239. get
  240. {
  241. return new DelegateCommand<object>(MoveTo);
  242. }
  243. }
  244. private AnimationQueue queue;
  245. public event PropertyChangedEventHandler PropertyChanged;
  246. static void PropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
  247. {
  248. var self = (ATMArmRobot)d;
  249. switch (e.Property.Name)
  250. {
  251. case "StationPosition":
  252. var positions = (Dictionary<string, StationPosition>)e.NewValue;
  253. //var menu1 = new MenuItem() { Header = "Arm" };
  254. var subMenu1 = positions.Select(x => new MenuItem() { Header = x.Key, Command = self.MoveCommand, CommandParameter = new Tuple<string, string, string>(x.Key, RobotConstant.RobotExtend, RobotConstant.RobotRetract) }).ToList();
  255. //foreach (var menu in subMenu1)
  256. //{
  257. // menu1.Items.Add(menu);
  258. //}
  259. self.menu = subMenu1;// new List<MenuItem>().Add(subMenu1);
  260. break;
  261. case "RobotWafers":
  262. //if (e.NewValue == null)
  263. //{
  264. // self.Wafer1 = null;
  265. // self.Wafer2 = null;
  266. //}
  267. //else
  268. //{
  269. // if (self.RobotWafers.Length > 1)
  270. // {
  271. // self.Wafer1 = self.RobotWafers[0];
  272. // self.Wafer2 = self.RobotWafers[1];
  273. // }
  274. //}
  275. break;
  276. default:
  277. break;
  278. }
  279. }
  280. public ATMArmRobot()
  281. {
  282. #if DEBUG
  283. System.Diagnostics.PresentationTraceSources.DataBindingSource.Switch.Level = System.Diagnostics.SourceLevels.Critical;
  284. #endif
  285. InitializeComponent();
  286. root.DataContext = this;
  287. queue = new AnimationQueue("Robot Animation");
  288. // queue.StatusUpdated += Queue_StatusUpdated;
  289. canvas1.Rotate(0);
  290. canvas2.Rotate(180);
  291. canvas3.Rotate(180);
  292. CurrentPosition = ModuleName.System.ToString();
  293. //CurrentArmA = RobotConstant.RobotRetract;
  294. }
  295. protected override void OnRender(DrawingContext drawingContext)
  296. {
  297. base.OnRender(drawingContext);
  298. if (DesignerProperties.GetIsInDesignMode(this))
  299. {
  300. return;
  301. }
  302. if (RobotMoveInfo != null && RobotMoveInfo.BladeTarget != "Robot")
  303. {
  304. var needMove = CurrentPosition != RobotMoveInfo.BladeTarget && RobotMoveInfo.BladeTarget!= "HomePosition";
  305. if (needMove)
  306. {
  307. CurrentAction = RobotMoveInfo.Action;
  308. CurrentPosition = RobotMoveInfo.BladeTarget;
  309. LogMsg($" RobotMoveInfo, action:{RobotMoveInfo.Action} armTarget:{RobotMoveInfo.ArmTarget} bladeTarget:{RobotMoveInfo.BladeTarget}");
  310. Invoke(() => MoveRobot(RobotMoveInfo));
  311. }
  312. }
  313. //if (RobotTarget != null || ArmAExtended != null || ArmBExtended != null)
  314. //{
  315. // LogMsg(string.Format("Received ------ Target: {0} ArmA: {1} ArmB: {2} ", RobotTarget, ArmAExtended, ArmBExtended));
  316. // queue.EnqueueStatus(new AnimationParameter() { Target = RobotTarget, ArmA = ArmAExtended, ArmB = ArmBExtended });
  317. //}
  318. }
  319. //private void Queue_StatusUpdated(object sender, StatusUpdateArgs e)
  320. //{
  321. // LogMsg(string.Format("Target: {0} - {1}", CurrentPosition, e.Parameter.Target));
  322. // var nextEvent = new AutoResetEvent(false);
  323. // var next = new Action(() =>
  324. // {
  325. // nextEvent.Set();
  326. // });
  327. // var wait = new Action(() =>
  328. // {
  329. // if (!nextEvent.WaitOne(AnimationTimeout))
  330. // {
  331. // LogMsg("Aniamtion time out!");
  332. // }
  333. // });
  334. // var done = new Action(() =>
  335. // {
  336. // CurrentPosition = e.Parameter.Target;
  337. // CurrentArmA = e.Parameter.ArmA;
  338. // CurrentArmB = e.Parameter.ArmB;
  339. // e.Event.Set();
  340. // });
  341. // var needMove = CurrentPosition != e.Parameter.Target || CurrentArmA != e.Parameter.ArmA || CurrentArmB != e.Parameter.ArmB;
  342. // if (needMove)
  343. // {
  344. // Invoke(() => MoveRobot(e.Parameter, next));
  345. // wait();
  346. // }
  347. // done();
  348. //}
  349. private void MoveRobot(AnimationParameter parameter, System.Action onComplete = null)
  350. {
  351. MoveToStart(parameter.Target, () => TranslateTo(parameter.Target, () => MoveToEnd(parameter, onComplete)));
  352. }
  353. private void MoveRobot(RobotMoveInfo moveInfo)
  354. {
  355. canvas1.Stop();
  356. canvas2.Stop();
  357. canvas3.Stop();
  358. var target = moveInfo.BladeTarget;
  359. var arm = moveInfo.ArmTarget;
  360. AnimationParameter animationParameter = new AnimationParameter() { ArmA= moveInfo.ArmTarget.ToString(), Target= moveInfo.BladeTarget };
  361. MoveToStart(target, () => TranslateTo(target, () => MoveToEnd(animationParameter, null)));
  362. }
  363. private void MoveToStart(string station, System.Action onComplete = null)
  364. {
  365. if (StationPosition == null)
  366. return;
  367. var position = StationPosition[station];
  368. canvas1.Rotate(position.StartPosition.Root, true, MoveTime);
  369. canvas2.Rotate(position.StartPosition.Arm, true, MoveTime);
  370. canvas3.Rotate(position.StartPosition.Hand, true, MoveTime);
  371. cassette.Filp(position.StartPosition.Root, 0, true, MoveTime);
  372. CurrentPosition = station;
  373. onComplete?.Invoke();
  374. }
  375. private void MoveToEnd(AnimationParameter parameter, System.Action onComplete = null)
  376. {
  377. //var position = StationPosition[parameter.Target];
  378. //var extended = false;
  379. //if (parameter.ArmA == RobotConstant.RobotExtend)
  380. //{
  381. // extended = true;
  382. // canvas1.Rotate(position.EndPosition.Root, true, MoveTime, 0, 0, onComplete);
  383. // canvas2.Rotate(position.EndPosition.Arm, true, MoveTime);
  384. //}
  385. if (StationPosition == null)
  386. return;
  387. var position = StationPosition[parameter.Target];
  388. canvas1.Rotate(position.EndPosition.Root, true, MoveTime);
  389. canvas2.Rotate(position.EndPosition.Arm, true, MoveTime);
  390. canvas3.Rotate(position.EndPosition.Hand, true, MoveTime);
  391. CassetteCanvas.Rotate(-(position.EndPosition.Arm % 90), true, MoveTime);
  392. cassette.Filp(position.EndPosition.Root, 0, true, MoveTime);
  393. //if (!extended)
  394. //{
  395. onComplete?.Invoke();
  396. //}
  397. // CurrentPosition = parameter.Target;
  398. }
  399. private void TranslateTo(string station, System.Action onComplete = null)
  400. {
  401. var position = StationPosition[station];
  402. if (position.StartPosition.X.HasValue)
  403. {
  404. Translate(position.StartPosition.X.Value, onComplete);
  405. }
  406. //else
  407. //{
  408. onComplete?.Invoke();
  409. //}
  410. }
  411. static double oldX = 0;
  412. private void Translate(int x, System.Action onComplete = null)
  413. {
  414. //var storyBoard = new Storyboard();
  415. //var oldX = translate.X;
  416. AnimationHelper.TranslateY(root, (int)oldX, x, MoveTime, onComplete);
  417. oldX = x;
  418. //var animation = new DoubleAnimation(oldX, x, TimeSpan.FromMilliseconds(MoveTime));
  419. //storyBoard.Children.Add(animation);
  420. //Storyboard.SetTarget(animation, root);
  421. //var propertyChain = new DependencyProperty[]
  422. // {
  423. // Canvas.RenderTransformProperty,
  424. // TransformGroup.ChildrenProperty,
  425. // TranslateTransform.XProperty
  426. // };
  427. //string thePath = "(0).(1)[1].(2)";
  428. //PropertyPath myPropertyPath = new PropertyPath(thePath, propertyChain);
  429. //Storyboard.SetTargetProperty(animation, myPropertyPath);
  430. //storyBoard.Completed += (s, e) =>
  431. //{
  432. // //InvalidateVisual();
  433. // if (onComplete != null)
  434. // {
  435. // onComplete();
  436. // }
  437. //};
  438. //storyBoard.Begin();
  439. }
  440. private void MoveTo(object obj)
  441. {
  442. var para = (Tuple<string, string, string>)obj;
  443. MoveRobot(new AnimationParameter() { Target = para.Item1, ArmA = para.Item2, ArmB = para.Item3 });
  444. }
  445. private void Invoke(System.Action action)
  446. {
  447. Dispatcher.Invoke(action);
  448. }
  449. private void LogMsg(string msg)
  450. {
  451. var source = "ATMRobot";
  452. Console.WriteLine("{0} {1}", source, msg);
  453. }
  454. private void Viewbox_MouseDown(object sender, MouseButtonEventArgs e)
  455. {
  456. var windowManager = IoC.Get<IWindowManager>();
  457. CassetteRobotViewModel cassetteRobotViewModel = new CassetteRobotViewModel();
  458. cassetteRobotViewModel.SystemName = "SMIFA";
  459. (windowManager as WindowManager)?.ShowDialogWithTitle(cassetteRobotViewModel, null, "CarrierRobot Status");
  460. }
  461. }
  462. }