SRDHomePageViewModel.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows.Data;
  7. using System.Windows.Input;
  8. using System.Windows.Threading;
  9. using MECF.Framework.Common.OperationCenter;
  10. using Prism.Mvvm;
  11. using Prism.Commands;
  12. using MECF.Framework.Common.CommonData.SRD;
  13. using MECF.Framework.Common.Persistent.SRD;
  14. using MECF.Framework.Common.CommonData.PUF;
  15. using MECF.Framework.Common.DataCenter;
  16. using MECF.Framework.Common.Utilities;
  17. using MECF.Framework.Common.RecipeCenter;
  18. using System.Collections.ObjectModel;
  19. using CyberX8_MainPages.PMs;
  20. using MECF.Framework.Common.Beckhoff.Station;
  21. using CyberX8_MainPages.Unity;
  22. using WaferInfo = OpenSEMI.ClientBase.WaferInfo;
  23. namespace CyberX8_MainPages.ViewModels
  24. {
  25. internal class SRDHomePageViewModel:BindableBase
  26. {
  27. #region 常量
  28. private const string COMMON_DATA = "CommonData";
  29. private const string PERSISTENT_VALUE = "PersistentValue";
  30. private const string WAFER_PRESENCE_STATUS = "WaferPresenceStatus";
  31. private const string SRD = "srd";
  32. private const string WAFER_HOLDER= "WaferHolder";
  33. private const string LOADER_DI_ENABLE = "LoaderDiEnable";
  34. private const string FACILITIES = "Facilities";
  35. private const string MOTION_DATA = "MotionData";
  36. private const double ARM_UI_HOME_POSITION = 25.682;
  37. private const double ARM_UI_CENTER_POSITION = -15;
  38. private const double ROTATION_UI_HOME_POSITION = 0;
  39. #endregion
  40. #region 内部变量
  41. #region SRD
  42. /// <summary>
  43. /// SRDRecipeContent
  44. /// </summary>
  45. private string _recipeContent;
  46. /// <summary>
  47. /// TimeRemaining
  48. /// </summary>
  49. private double _timeRemaining;
  50. /// <summary>
  51. /// OfTotalTime
  52. /// </summary>
  53. private double _totalTime;
  54. /// <summary>
  55. /// OperatingMode
  56. /// </summary>
  57. private string _operatingMode;
  58. /// <summary>
  59. /// State
  60. /// </summary>
  61. private string _state;
  62. /// <summary>
  63. /// RecipeMode
  64. /// </summary>
  65. private string _recipeMode;
  66. /// <summary>
  67. /// AchievedRunRecipeCycle
  68. /// </summary>
  69. private int _achievedRunRecipeCycle;
  70. /// <summary>
  71. /// Loader DI
  72. /// </summary>
  73. private bool _loaderDiEnable;
  74. #endregion
  75. #region wafer
  76. /// <summary>
  77. /// WaferID
  78. /// </summary>
  79. private string _waferID = "";
  80. /// <summary>
  81. /// SeqRecipe
  82. /// </summary>
  83. private string _seqRecipe;
  84. /// <summary>
  85. /// Wafer信息
  86. /// </summary>
  87. private WaferInfo _waferInfo;
  88. #endregion
  89. #region SRD recipe
  90. /// <summary>
  91. /// RecipeModuleName
  92. /// </summary>
  93. private string _recipeModuleName;
  94. /// <summary>
  95. /// RecipeType
  96. /// </summary>
  97. private string _recipeType;
  98. /// <summary>
  99. /// 当前选择Recipe节点
  100. /// </summary>
  101. private RecipeNode _selectedRecipeNode;
  102. /// <summary>
  103. /// Recipe节点
  104. /// </summary>
  105. private ObservableCollection<RecipeNode> _recipeNodes;
  106. // <summary>
  107. /// 当前Recipe
  108. /// </summary>
  109. private string _currentRecipe;
  110. #endregion
  111. #region Common
  112. /// <summary>
  113. /// 模块名称
  114. /// </summary>
  115. private string _module;
  116. /// <summary>
  117. /// State Machine
  118. /// </summary>
  119. private string _stateMachine;
  120. /// <summary>
  121. /// Status
  122. /// </summary>
  123. private string _status;
  124. /// <summary>
  125. /// 数据
  126. /// </summary>
  127. private SrdCommonData _sRDCommonData;
  128. /// <summary>
  129. /// Threshold
  130. /// </summary>
  131. private SRDPersistentValue _sRDPersistent;
  132. /// <summary>
  133. /// WaferPresence
  134. /// </summary>
  135. private string _waferPresence;
  136. /// <summary>
  137. /// PresenceTest是否进行中
  138. /// </summary>
  139. private bool _isPresenceTesting;
  140. /// <summary>
  141. /// Test Without Wafers
  142. /// </summary>
  143. private bool _isWaferPresence;
  144. /// <summary>
  145. /// sRDArm运动数据
  146. /// </summary>
  147. private CommandMotionData _sRDArmMotionData;
  148. /// <summary>
  149. /// sRDRotation运动数据
  150. /// </summary>
  151. private CommandMotionData _sRDRotationMotionData;
  152. /// <summary>
  153. /// 页面功能启用
  154. /// </summary>
  155. private bool _isEnabled;
  156. /// <summary>
  157. /// AutoMode页面功能启用
  158. /// </summary>
  159. private bool _isAutoEnabled;
  160. #endregion
  161. #region 系统数据
  162. /// <summary>
  163. /// 定时器
  164. /// </summary>
  165. DispatcherTimer _timer;
  166. /// <summary>
  167. /// 查询后台数据集合
  168. /// </summary>
  169. private List<string> _rtDataKeys = new List<string>();
  170. /// <summary>
  171. /// rt查询key数值字典
  172. /// </summary>
  173. private Dictionary<string, object> _rtDataValueDic = new Dictionary<string, object>();
  174. /// <summary>
  175. /// UiRecipeManager
  176. /// </summary>
  177. private UiRecipeManager _uiRecipeManager = new UiRecipeManager();
  178. #endregion
  179. #region UI related
  180. /// <summary>
  181. /// SRD Arm UI位置
  182. /// </summary>
  183. private double _srdArmUIPosition = ARM_UI_HOME_POSITION;
  184. /// <summary>
  185. /// SRD Rotation UI位置
  186. /// </summary>
  187. private double _srdRotationUIPosition = ROTATION_UI_HOME_POSITION;
  188. /// <summary>
  189. /// Arm Axis位置数据
  190. /// </summary>
  191. private BeckhoffStationAxis _armAxis;
  192. /// <summary>
  193. /// Arm UI位置比例
  194. /// </summary>
  195. private double _armUIRatio;
  196. #endregion
  197. #endregion
  198. #region 属性
  199. #region SRD
  200. /// <summary>
  201. /// SRDRecipeContent
  202. /// </summary>
  203. public string SRDRecipeContent
  204. {
  205. get { return _recipeContent; }
  206. set { SetProperty(ref _recipeContent, value); }
  207. }
  208. /// <summary>
  209. /// TimeRemaining
  210. /// </summary>
  211. public double TimeRemaining
  212. {
  213. get { return _timeRemaining; }
  214. set { SetProperty(ref _timeRemaining, value); }
  215. }
  216. /// <summary>
  217. /// TotalTime
  218. /// </summary>
  219. public double TotalTime
  220. {
  221. get { return _totalTime; }
  222. set { SetProperty(ref _totalTime, value); }
  223. }
  224. /// <summary>
  225. /// OperatingMode
  226. /// </summary>
  227. public string OperatingMode
  228. {
  229. get { return _operatingMode; }
  230. set { SetProperty(ref _operatingMode, value); }
  231. }
  232. /// <summary>
  233. /// State
  234. /// </summary>
  235. public string State
  236. {
  237. get { return _state; }
  238. set { SetProperty(ref _state, value); }
  239. }
  240. /// <summary>
  241. /// RecipeMode
  242. /// </summary>
  243. public string RecipeMode
  244. {
  245. get { return _recipeMode; }
  246. set { SetProperty(ref _recipeMode, value); }
  247. }
  248. /// <summary>
  249. /// Run Recipe已经完成的次数
  250. /// </summary>
  251. public int AchievedRunRecipeCycle
  252. {
  253. get { return _achievedRunRecipeCycle; }
  254. set { SetProperty(ref _achievedRunRecipeCycle, value); }
  255. }
  256. /// <summary>
  257. /// Loader DI
  258. /// </summary>
  259. public bool LoaderDiEnable
  260. {
  261. get { return _loaderDiEnable; }
  262. set { SetProperty(ref _loaderDiEnable, value); }
  263. }
  264. #endregion
  265. #region wafer
  266. /// <summary>
  267. /// WaferID
  268. /// </summary>
  269. public string WaferID
  270. {
  271. get { return _waferID; }
  272. set { SetProperty(ref _waferID, value); }
  273. }
  274. /// <summary>
  275. /// SeqRecipe
  276. /// </summary>
  277. public string SeqRecipe
  278. {
  279. get { return _seqRecipe; }
  280. set { SetProperty(ref _seqRecipe, value); }
  281. }
  282. /// <summary>
  283. /// Wafer信息
  284. /// </summary>
  285. public WaferInfo WaferInfo
  286. {
  287. get { return _waferInfo; }
  288. set { SetProperty(ref _waferInfo, value); }
  289. }
  290. #endregion
  291. #region SRD recipe
  292. /// <summary>
  293. /// RecipeModuleName
  294. /// </summary>
  295. public string RecipeModuleName
  296. {
  297. get { return _recipeModuleName; }
  298. set { SetProperty(ref _recipeModuleName, value); }
  299. }
  300. /// <summary>
  301. /// RecipeType
  302. /// </summary>
  303. public string RecipeType
  304. {
  305. get { return _recipeType; }
  306. set { SetProperty(ref _recipeType, value); }
  307. }
  308. /// <summary>
  309. /// 当前运行的Recipe
  310. /// </summary>
  311. public string CurrentRecipe
  312. {
  313. get { return _currentRecipe; }
  314. set { SetProperty(ref _currentRecipe, value); }
  315. }
  316. #endregion
  317. #region Common
  318. /// <summary>
  319. /// 模块名称
  320. /// </summary>
  321. public string Module { get { return _module; } set { SetProperty(ref _module, value); } }
  322. /// <summary>
  323. /// StateMachine
  324. /// </summary>
  325. public string StateMachine
  326. {
  327. get { return _stateMachine; }
  328. set { SetProperty(ref _stateMachine, value); }
  329. }
  330. /// <summary>
  331. /// StateMachine
  332. /// </summary>
  333. public string Status
  334. {
  335. get { return _status; }
  336. set { SetProperty(ref _status, value); }
  337. }
  338. /// <summary>
  339. /// Commondata
  340. /// </summary>
  341. public SrdCommonData SRDCommonData
  342. {
  343. get { return _sRDCommonData; }
  344. set { SetProperty(ref _sRDCommonData, value); }
  345. }
  346. /// <summary>
  347. /// WaferPresence
  348. /// </summary>
  349. public string WaferPresence
  350. {
  351. get { return _waferPresence; }
  352. set { SetProperty(ref _waferPresence, value); }
  353. }
  354. /// <summary>
  355. /// Threshold
  356. /// </summary>
  357. public SRDPersistentValue SRDPersistent
  358. {
  359. get { return _sRDPersistent; }
  360. set { SetProperty(ref _sRDPersistent, value); }
  361. }
  362. /// <summary>
  363. /// Selected Recipe Node
  364. /// </summary>
  365. public RecipeNode SelectedRecipeNode
  366. {
  367. get { return _selectedRecipeNode; }
  368. set { SetProperty(ref _selectedRecipeNode, value); }
  369. }
  370. /// <summary>
  371. /// PresenceTest是否进行中
  372. /// </summary>
  373. public bool IsPresenceTesting
  374. {
  375. get { return _isPresenceTesting; }
  376. set { SetProperty(ref _isPresenceTesting, value); }
  377. }
  378. /// <summary>
  379. /// Test Without Wafers
  380. /// </summary>
  381. public bool IsWaferPresence
  382. {
  383. get { return _isWaferPresence; }
  384. set { SetProperty(ref _isWaferPresence, value); }
  385. }
  386. /// <summary>
  387. /// SRDArm运动数据
  388. /// </summary>
  389. public CommandMotionData SRDArmMotionData
  390. {
  391. get { return _sRDArmMotionData; }
  392. set { SetProperty(ref _sRDArmMotionData, value); }
  393. }
  394. /// <summary>
  395. /// SRDRotation运动数据
  396. /// </summary>
  397. public CommandMotionData SRDRotationMotionData
  398. {
  399. get { return _sRDRotationMotionData; }
  400. set { SetProperty(ref _sRDRotationMotionData, value); }
  401. }
  402. /// <summary>
  403. /// 页面功能启用
  404. /// </summary>
  405. public bool IsEnabled
  406. {
  407. get { return _isEnabled; }
  408. set { SetProperty(ref _isEnabled, value); }
  409. }
  410. /// <summary>
  411. /// AutoMode页面功能启用
  412. /// </summary>
  413. public bool IsAutoEnabled
  414. {
  415. get { return _isAutoEnabled; }
  416. set { SetProperty(ref _isAutoEnabled, value); }
  417. }
  418. #endregion
  419. #region UI related
  420. /// <summary>
  421. /// SRD ARM UI位置
  422. /// </summary>
  423. public double SRDArmUIPosition
  424. {
  425. get { return _srdArmUIPosition; }
  426. set { SetProperty(ref _srdArmUIPosition, value); }
  427. }
  428. /// <summary>
  429. /// SRD Rotation UI位置
  430. /// </summary>
  431. public double SRDRotationUIPosition
  432. {
  433. get { return _srdRotationUIPosition; }
  434. set { SetProperty(ref _srdRotationUIPosition, value); }
  435. }
  436. #endregion
  437. #endregion
  438. #region Command指令
  439. /// <summary>
  440. /// Initialize Command
  441. /// </summary>
  442. public ICommand InitializeCommand { get; set; }
  443. /// <summary>
  444. /// SwitchOn Command
  445. /// </summary>
  446. public ICommand SwitchOnCommand { get; set; }
  447. /// <summary>
  448. /// SwitchOff Command
  449. /// </summary>
  450. public ICommand SwitchOffCommand { get; set; }
  451. /// <summary>
  452. /// Loader Command
  453. /// </summary>
  454. public ICommand LoaderCommand { get; set; }
  455. /// <summary>
  456. /// Unloader Command
  457. /// </summary>
  458. public ICommand UnloaderCommand { get; set; }
  459. #endregion
  460. /// <summary>
  461. /// 构造函数
  462. /// </summary>
  463. public SRDHomePageViewModel()
  464. {
  465. InitializeCommand = new DelegateCommand<object>(InitializeAction);
  466. SwitchOnCommand = new DelegateCommand<object>(SwitchOnAction);
  467. SwitchOffCommand = new DelegateCommand<object>(SwitchOffAction);
  468. LoaderCommand = new DelegateCommand<object>(LoaderAction);
  469. UnloaderCommand = new DelegateCommand<object>(UnloaderAction);
  470. }
  471. /// <summary>
  472. /// 加载数据
  473. /// </summary>
  474. public void LoadData(string systemName)
  475. {
  476. Module = systemName;
  477. RecipeType = "srd";
  478. RecipeModuleName = "SRD Recipe";
  479. _rtDataKeys.Clear();
  480. _rtDataKeys.Add($"{Module}.IsHomed");
  481. _rtDataKeys.Add($"{Module}.{COMMON_DATA}");
  482. _rtDataKeys.Add($"{Module}.{PERSISTENT_VALUE}");
  483. _rtDataKeys.Add($"{Module}.{WAFER_PRESENCE_STATUS}");
  484. _rtDataKeys.Add($"{Module}.AchievedCycle");
  485. _rtDataKeys.Add($"{Module}.FsmState");
  486. _rtDataKeys.Add($"{Module}.CurrentStateMachine");
  487. _rtDataKeys.Add($"{Module}.CurrentStatus");
  488. _rtDataKeys.Add($"{Module}.WaferInfo");
  489. _rtDataKeys.Add($"{Module}.IsPresenceTesting");
  490. _rtDataKeys.Add($"{Module}.IsWaferPresence");
  491. _rtDataKeys.Add($"System.{FACILITIES}.{LOADER_DI_ENABLE}");
  492. _rtDataKeys.Add($"{Module}.Arm.{MOTION_DATA}");
  493. _rtDataKeys.Add($"{Module}.Rotation.{MOTION_DATA}");
  494. _rtDataKeys.Add($"Station.{Module}.Arm");
  495. _rtDataKeys.Add($"{Module}.CurrentRecipe");
  496. _rtDataKeys.Add($"{Module}.TotalTime");
  497. _rtDataKeys.Add($"{Module}.TimeRemain");
  498. if (_timer == null)
  499. {
  500. _timer = new DispatcherTimer();
  501. _timer.Interval = TimeSpan.FromMilliseconds(200);
  502. _timer.Tick += Timer_Tick;
  503. }
  504. _timer.Start();
  505. _rtDataValueDic = QueryDataClient.Instance.Service.PollData(_rtDataKeys);
  506. if (_rtDataValueDic != null)
  507. {
  508. _armAxis = CommonFunction.GetValue<BeckhoffStationAxis>(_rtDataValueDic, $"Station.{Module}.Arm");
  509. //计算Arm位置比例
  510. if (_armAxis != null)
  511. {
  512. double armHomePos = double.Parse(_armAxis.Stations[0].Position);
  513. double armCenterPos = double.Parse(_armAxis.Stations[1].Position);
  514. _armUIRatio = (ARM_UI_HOME_POSITION - ARM_UI_CENTER_POSITION) / (armHomePos - armCenterPos);
  515. }
  516. }
  517. }
  518. /// <summary>
  519. /// 定时器执行
  520. /// </summary>
  521. /// <param name="sender"></param>
  522. /// <param name="e"></param>
  523. private void Timer_Tick(object sender, EventArgs e)
  524. {
  525. if (_rtDataKeys.Count != 0)
  526. {
  527. _rtDataValueDic = QueryDataClient.Instance.Service.PollData(_rtDataKeys);
  528. if (_rtDataValueDic != null)
  529. {
  530. SRDCommonData = CommonFunction.GetValue<SrdCommonData>(_rtDataValueDic, $"{Module}.{COMMON_DATA}");
  531. SRDPersistent = CommonFunction.GetValue<SRDPersistentValue>(_rtDataValueDic, $"{Module}.{PERSISTENT_VALUE}");
  532. LoaderDiEnable = CommonFunction.GetValue<bool>(_rtDataValueDic, $"System.{FACILITIES}.{LOADER_DI_ENABLE}");
  533. AchievedRunRecipeCycle = CommonFunction.GetValue<int>(_rtDataValueDic, $"{Module}.AchievedCycle");
  534. WaferPresence = CommonFunction.GetValue<string>(_rtDataValueDic, $"{Module}.{WAFER_PRESENCE_STATUS}");
  535. State = CommonFunction.GetValue<string>(_rtDataValueDic, $"{Module}.FsmState");
  536. CurrentRecipe = CommonFunction.GetValue<string>(_rtDataValueDic, $"{Module}.CurrentRecipe");
  537. IsWaferPresence = CommonFunction.GetValue<bool>(_rtDataValueDic, $"{Module}.IsWaferPresence");
  538. if (SRDPersistent != null)
  539. {
  540. if ("Manual".Equals(SRDPersistent.OperatingMode))
  541. {
  542. IsEnabled = true;
  543. IsAutoEnabled = true;
  544. }
  545. else if ("Auto".Equals(SRDPersistent.OperatingMode))
  546. {
  547. if (!IsWaferPresence)
  548. {
  549. InvokeClient.Instance.Service.DoOperation($"{Module}.UpdateIsWaferPresenceAction", true);
  550. }
  551. IsAutoEnabled = true;
  552. IsEnabled = false;
  553. }
  554. else
  555. {
  556. State = "Stopped";
  557. IsEnabled = false;
  558. IsAutoEnabled = false;
  559. }
  560. }
  561. StateMachine = CommonFunction.GetValue<string>(_rtDataValueDic, $"{Module}.CurrentStateMachine");
  562. Status = CommonFunction.GetValue<string>(_rtDataValueDic, $"{Module}.CurrentStatus");
  563. IsPresenceTesting = CommonFunction.GetValue<bool>(_rtDataValueDic, $"{Module}.IsPresenceTesting");
  564. SRDArmMotionData = CommonFunction.GetValue<CommandMotionData>(_rtDataValueDic, $"{Module}.Arm.{MOTION_DATA}");
  565. SRDRotationMotionData = CommonFunction.GetValue<CommandMotionData>(_rtDataValueDic, $"{Module}.Rotation.{MOTION_DATA}");
  566. //SRD Wafer信息
  567. if (ModuleManager.ModuleInfos[Module].WaferManager.Wafers.Count != 0)
  568. {
  569. WaferInfo = ModuleManager.ModuleInfos[Module].WaferManager.Wafers[0];
  570. }
  571. //计算ARM UI位置
  572. if (SRDArmMotionData != null)
  573. {
  574. SRDArmUIPosition = ARM_UI_HOME_POSITION + _armUIRatio * SRDArmMotionData.MotorPosition;
  575. }
  576. //计算Rotation UI位置
  577. if (SRDRotationMotionData != null)
  578. {
  579. SRDRotationUIPosition = SRDRotationMotionData.MotorPosition;
  580. }
  581. TotalTime = CommonFunction.GetValue<int>(_rtDataValueDic, $"{Module}.TotalTime");
  582. TimeRemaining = CommonFunction.GetValue<int>(_rtDataValueDic, $"{Module}.TimeRemain");
  583. if (State == "Idle")
  584. {
  585. TimeRemaining = 0;
  586. }
  587. }
  588. }
  589. }
  590. /// <summary>
  591. /// 隐藏
  592. /// </summary>
  593. public void Hide()
  594. {
  595. if (_timer != null)
  596. {
  597. _timer.Stop();
  598. }
  599. }
  600. #region 指令Action
  601. /// <summary>
  602. /// Home Action
  603. /// </summary>
  604. /// <param name="param"></param>
  605. private void HomeAction(object param)
  606. {
  607. InvokeClient.Instance.Service.DoOperation($"{Module}.HomeAll");
  608. }
  609. /// <summary>
  610. /// Initialize Action
  611. /// </summary>
  612. /// <param name="param"></param>
  613. private void InitializeAction(object param)
  614. {
  615. InvokeClient.Instance.Service.DoOperation($"{Module}.InitializeHome");
  616. }
  617. /// <summary>
  618. /// Switch On Action
  619. /// </summary>
  620. /// <param name="param"></param>
  621. private void SwitchOnAction(object param)
  622. {
  623. InvokeClient.Instance.Service.DoOperation($"{Module}.SwitchOnAll");
  624. }
  625. /// <summary>
  626. /// Switch Off Action
  627. /// </summary>
  628. /// <param name="param"></param>
  629. private void SwitchOffAction(object param)
  630. {
  631. InvokeClient.Instance.Service.DoOperation($"{Module}.SwitchOffAll");
  632. }
  633. /// <summary>
  634. /// Loader Action
  635. /// </summary>
  636. /// <param name="param"></param>
  637. private void LoaderAction(object param)
  638. {
  639. InvokeClient.Instance.Service.DoOperation($"{Module}.Loader");
  640. }
  641. /// <summary>
  642. /// Unloader Action
  643. /// </summary>
  644. /// <param name="param"></param>
  645. private void UnloaderAction(object param)
  646. {
  647. InvokeClient.Instance.Service.DoOperation($"{Module}.Unloader");
  648. }
  649. #endregion
  650. }
  651. }