UCStandGrid.xaml.cs 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. using MeterVision.Config;
  2. using MeterVision.db;
  3. using MeterVision.Dlg;
  4. using MeterVision.model;
  5. using MeterVision.Patch;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Collections.ObjectModel;
  9. using System.ComponentModel;
  10. using System.IO;
  11. using System.Linq;
  12. using System.Text;
  13. using System.Threading.Tasks;
  14. using System.Windows;
  15. using System.Windows.Controls;
  16. using System.Windows.Data;
  17. using System.Windows.Documents;
  18. using System.Windows.Input;
  19. using System.Windows.Media;
  20. using System.Windows.Media.Imaging;
  21. using System.Windows.Navigation;
  22. namespace MeterVision.Stand
  23. {
  24. /// <summary>
  25. /// UCStandGrid.xaml 的交互逻辑
  26. /// </summary>
  27. public partial class UCStandGrid : UserControl, INotifyPropertyChanged
  28. {
  29. public event PropertyChangedEventHandler PropertyChanged;
  30. protected void OnPropertyChanged(string propertyName)
  31. {
  32. PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
  33. }
  34. public event EventHandler<StandItemCountChangedEventArgs> OnStandItemCountChanged;
  35. //定义数据源
  36. public ObservableCollection<StandDetailItem> StandDetailList { get; set; }
  37. //定义事件,用于通知外部组件选中项已更改
  38. public event EventHandler<StandDetailItemChangedEventArgs> OnSelectedStandDetailItemChanged;
  39. public event Action<string> OnDeleteStandDetailItem;
  40. private StandDetailItem _selectedStandDetailsItem;
  41. //定义SelectedDataItem属性,并在值变化时触发事件
  42. public StandDetailItem SelectedStandDetailItem
  43. {
  44. get => _selectedStandDetailsItem;
  45. set
  46. {
  47. if(_selectedStandDetailsItem != value)
  48. {
  49. _selectedStandDetailsItem = value;
  50. OnPropertyChanged(nameof(SelectedStandDetailItem));
  51. OnSelectedStandDetailItemChanged?.Invoke(this, new StandDetailItemChangedEventArgs(value));
  52. }
  53. }
  54. }
  55. //private StandItem _curStandItem;
  56. //public StandItem CurStandItem
  57. //{
  58. // get => _curStandItem;
  59. // set
  60. // {
  61. // if (_curStandItem != value)
  62. // {
  63. // _curStandItem = value;
  64. // //StandDetailPage.InitDefaulValue(mConfigItem.StandPageSize);
  65. // //LoadStandDetailItemList(value);
  66. // }
  67. // }
  68. //}
  69. private StationItem _curStationItem;
  70. public StationItem CurStationItem
  71. {
  72. get => _curStationItem;
  73. set
  74. {
  75. /*if(_curStationId != value)
  76. {
  77. _curStationId = value;
  78. }*/
  79. if(_curStationItem != value)
  80. {
  81. _curStationItem = value;
  82. StandDetailPage.InitDefaulValue(mConfigItem.StandPageSize);
  83. LoadStandDetailItemList();
  84. }
  85. }
  86. }
  87. //public void ChangeStation(StandItem standItem,string stationId)
  88. //{
  89. // bool blChangeStationId = false;
  90. // bool blChangeStandItem = false;
  91. // if(_curStationId != stationId)
  92. // {
  93. // _curStationId = stationId;
  94. // blChangeStationId = true;
  95. // }
  96. // if(_curStandItem != standItem)
  97. // {
  98. // _curStandItem = standItem;
  99. // blChangeStandItem = true;
  100. // }
  101. // if(blChangeStationId || blChangeStandItem)
  102. // {
  103. // StandDetailPage.InitDefaulValue(mConfigItem.StandPageSize);
  104. // LoadStandDetailItemList(CurStandItem);
  105. // }
  106. //}
  107. //详情分页信息
  108. public PageModel StandDetailPage { get; set; }
  109. private int _totalRecord;
  110. public int TotalRecords
  111. {
  112. get => _totalRecord;
  113. set
  114. {
  115. if(_totalRecord != value)
  116. {
  117. _totalRecord = value;
  118. OnPropertyChanged(nameof(TotalRecords));
  119. }
  120. }
  121. }
  122. public CfginiItem mConfigItem { get; set; }
  123. //异步方法
  124. private async void LoadStandDetailItemList()
  125. {
  126. StandDetailList.Clear();
  127. if (CurStationItem != null)
  128. {
  129. try
  130. {
  131. var result = await Task.Run(() =>
  132. {
  133. return DBStand.GetPagedStandDetails(
  134. StandDetailPage.PageNumber, StandDetailPage.PageSize, CurStationItem);
  135. });
  136. TotalRecords = result.Item1;
  137. StandDetailPage.PageCount = result.Item2;
  138. List<TStandDetail> standDetails = result.Item3;
  139. int index = 0;
  140. foreach (TStandDetail standDetail in standDetails)
  141. {
  142. StandDetailList.Add(new StandDetailItem(standDetail));
  143. index++;
  144. //更新索引号
  145. StandDetailList[StandDetailList.Count - 1].Index =
  146. index + ((StandDetailPage.PageNumber - 1) * StandDetailPage.PageSize);
  147. }
  148. if(StandDetailList.Count > 0)
  149. {
  150. dgStandDetails.ScrollIntoView(dgStandDetails.Items[0]);
  151. }
  152. }catch(Exception ex)
  153. {
  154. MessageBox.Show(Application.Current.MainWindow,
  155. $"加载数据时发生错误:{ex.Message}", "错误", MessageBoxButton.OK, MessageBoxImage.Error);
  156. }
  157. }
  158. if (StandDetailList.Count > 0)
  159. {
  160. SelectedStandDetailItem = StandDetailList[0];
  161. }
  162. else
  163. {
  164. SelectedStandDetailItem = null;
  165. }
  166. }
  167. public UCStandGrid()
  168. {
  169. InitializeComponent();
  170. StandDetailList = new ObservableCollection<StandDetailItem>();
  171. dgStandDetails.ItemsSource = StandDetailList;
  172. //CurStandItem = null;
  173. CurStationItem = null;
  174. mConfigItem = CfginiItem.GetConfigItem();
  175. StandDetailPage = new PageModel()
  176. {
  177. PageSize = mConfigItem.StandPageSize,
  178. PageNumber = 1,
  179. };
  180. //mConfigItem.OnStandPageSizeChanged += MConfigItem_OnStandPageSizeChanged;
  181. mConfigItem.OnStandPageSizeChanged += MConfigItem_OnStandPageSizeChanged1;
  182. UCPatchGrid.OnDeleteStandDetail += UCPatchGrid_OnDeleteStandDetail;
  183. UCPatchGrid.OnUpdateStandValue += UCPatchGrid_OnUpdateStandValue;
  184. this.DataContext = this;
  185. }
  186. private void UCPatchGrid_OnUpdateStandValue(string arg1, string arg2)
  187. {
  188. //throw new NotImplementedException();
  189. StandDetailItem standDetailItem = StandDetailList.FirstOrDefault(a => a.StandDetailId == arg1);
  190. if(standDetailItem != null)
  191. {
  192. standDetailItem.StandValue = arg2;
  193. }
  194. }
  195. private void UCPatchGrid_OnDeleteStandDetail(string standDetailId)
  196. {
  197. //Application.Current.Dispatcher.Invoke(() =>
  198. //{
  199. // // 从数据源中移除该条目
  200. // StandDetailList.Remove(selectedItem);
  201. // SelectedStandDetailItem = null;
  202. // OnDeleteStandDetailItem?.Invoke(selectedItem.StandId);
  203. //});
  204. StandDetailItem standDetailItem = StandDetailList.FirstOrDefault(a => a.StandDetailId == standDetailId);
  205. if (standDetailItem != null)
  206. {
  207. StandDetailList.Remove(standDetailItem);
  208. OnDeleteStandDetailItem?.Invoke(standDetailItem.StandId);
  209. }
  210. }
  211. private void MConfigItem_OnStandPageSizeChanged(object sender, PageSizeChangedEventArgs e)
  212. {
  213. StandDetailPage.InitDefaulValue(e.PageSize);
  214. LoadStandDetailItemList();
  215. }
  216. private void MConfigItem_OnStandPageSizeChanged1(int pageSize)
  217. {
  218. StandDetailPage.InitDefaulValue(pageSize);
  219. LoadStandDetailItemList();
  220. }
  221. private void Image_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
  222. {
  223. var image = sender as System.Windows.Controls.Image;
  224. if (image == null) return;
  225. var dataContext = image.DataContext as StandDetailItem;
  226. if (dataContext == null) return;
  227. //var dialog = new ImageViewerWindow(dataContext.SourceImagePath)
  228. var dialog = new imgWindow(dataContext.SrcImage)
  229. {
  230. Owner = Application.Current.MainWindow
  231. };
  232. dialog.Show();
  233. }
  234. private void StandValue_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
  235. {
  236. if (e.ClickCount == 2)
  237. {
  238. // 获取当前行的数据上下文
  239. var textBlock = sender as TextBlock;
  240. if (textBlock == null) return;
  241. var dataContext = textBlock.DataContext as StandDetailItem; // 替换为你的数据类型
  242. if (dataContext == null) return;
  243. SelectedStandDetailItem = dataContext;
  244. UpdateStandvalue(dataContext);
  245. }//e.clickCount
  246. }
  247. private void UpdateStandvalue(StandDetailItem detailItem)
  248. {
  249. StandValueModel standValueModel = new StandValueModel(detailItem);
  250. var dialog = new EditStandValueDlg(standValueModel)
  251. {
  252. Owner = Application.Current.MainWindow,
  253. WindowStartupLocation = WindowStartupLocation.CenterOwner
  254. };
  255. //if (dialog.ShowDialog() == true)
  256. //{
  257. // UpdateStandValue(detailItem, standValueModel);
  258. //}//if showDialog
  259. dialog.OnEditStandValue += (value) =>
  260. {
  261. UpdateStandValue(detailItem, standValueModel);
  262. };
  263. dialog.Show();
  264. }
  265. private void UpdateStandValue(StandDetailItem detailItem,StandValueModel standValueModel)
  266. {
  267. try
  268. {
  269. //修改数据库
  270. bool updateStandValue2 = DBStand.UpdateStandDetailStandValue(detailItem.SrcImage, standValueModel.StandValue);
  271. if (updateStandValue2)
  272. {
  273. detailItem.StandValue = standValueModel.StandValue;
  274. //MessageBox.Show(Application.Current.MainWindow, "修改标准值完成。", "提示", MessageBoxButton.OK,
  275. // MessageBoxImage.Information);
  276. }
  277. else
  278. {
  279. MessageBox.Show(Application.Current.MainWindow, "修改标准值失败。", "警告", MessageBoxButton.OK,
  280. MessageBoxImage.Warning);
  281. }
  282. }
  283. catch (Exception ex)
  284. {
  285. MessageBox.Show(Application.Current.MainWindow, $"修改标准值错误:{ex.Message}!", "警告", MessageBoxButton.OK,
  286. MessageBoxImage.Warning);
  287. }
  288. }
  289. private void UserControl_DragEnter(object sender, DragEventArgs e)
  290. {
  291. //e.Handled = true;
  292. //// Check if the dragged item is a folder
  293. //if (e.Data.GetDataPresent(DataFormats.FileDrop) && CurStandItem != null)
  294. //{
  295. // var paths = (string[])e.Data.GetData(DataFormats.FileDrop);
  296. // if (paths != null && paths.Length > 0 && Directory.Exists(paths[0]))
  297. // {
  298. // e.Effects = DragDropEffects.Copy;
  299. // }
  300. // else
  301. // {
  302. // e.Effects = DragDropEffects.None;
  303. // }
  304. //}
  305. //else
  306. //{
  307. // e.Effects = DragDropEffects.None;
  308. //}
  309. }
  310. //private async void UserControl_Drop(object sender, DragEventArgs e)
  311. //{
  312. //if (e.Data.GetDataPresent(DataFormats.FileDrop) && CurStandItem != null)
  313. //{
  314. // var paths = (string[])e.Data.GetData(DataFormats.FileDrop);
  315. // if (paths != null && paths.Length > 0)
  316. // {
  317. // var folderPath = paths[0];
  318. // if (Directory.Exists(folderPath))
  319. // {
  320. // await ImportStandImageFloder(folderPath);
  321. // }
  322. // }
  323. //}//if
  324. //}
  325. //public async Task<bool> ImportStandImageFloder(string folderPath)
  326. //{
  327. // try
  328. // {
  329. // bool blLoad = await LoadJpgFilesFromFolder(folderPath);
  330. // if (blLoad)
  331. // {
  332. // StandDetailPage.InitDefaulValue();
  333. // LoadStandDetailItemList(CurStandItem);
  334. // }
  335. // return true;
  336. // }
  337. // catch(Exception ex)
  338. // {
  339. // MessageBox.Show(Application.Current.MainWindow,
  340. // $"导入模板图像错误:{ex.Message}", "错误",
  341. // MessageBoxButton.OK, MessageBoxImage.Error);
  342. // return false;
  343. // }
  344. //}
  345. //private async Task<bool> LoadJpgFilesFromFolder(string folderPath)
  346. //{
  347. // //var jpgFiles = Directory.GetFiles(folderPath, "*.jpg", SearchOption.AllDirectories);
  348. // var jpgFiles = Directory.GetFiles(folderPath, "*.jpg", SearchOption.AllDirectories)
  349. // .Concat(Directory.GetFiles(folderPath, "*.bmp", SearchOption.AllDirectories))
  350. // .ToArray();
  351. // List<string> fileList = new List<string>();
  352. // foreach (var filePath in jpgFiles)
  353. // {
  354. // /*_fileItems.Add(new FileItem
  355. // {
  356. // FileName = Path.GetFileName(filePath),
  357. // FilePath = filePath,
  358. // FileSize = new FileInfo(filePath).Length
  359. // });*/
  360. // if( (ThisApp.IsJpgFile(filePath) || ThisApp.IsBmpFile(filePath) ) &&
  361. // ThisApp.IsFileSizeValid(filePath) &&
  362. // ThisApp.IsImageDimensionsValid(filePath))
  363. // {
  364. // fileList.Add(filePath);
  365. // }
  366. // }//foreach
  367. // if(fileList.Count == 0)
  368. // {
  369. // MessageBox.Show(Application.Current.MainWindow,
  370. // "没有找到符号要求的图片文件。", "提示", MessageBoxButton.OK, MessageBoxImage.Information);
  371. // return false;
  372. // }
  373. // //加载数据到数据库中
  374. // return await InsertFilesWithProgress(fileList);
  375. //}
  376. //public async Task<bool> InsertFilesWithProgress(List<string> filePaths)
  377. //{
  378. // // 弹出一个非模式对话框来显示进度
  379. // ProgressDialog progressDialog = new ProgressDialog()
  380. // {
  381. // Owner = Application.Current.MainWindow,
  382. // WindowStartupLocation = WindowStartupLocation.CenterOwner
  383. // };
  384. // progressDialog.Show();
  385. // try
  386. // {
  387. // // 任务来异步执行文件插入
  388. // bool blInsert = await InsertFilesToDatabase(filePaths, progressDialog);
  389. // //Task.Run(() => InsertFilesToDatabase(filePaths, progressDialog));
  390. // //刷新CurItem
  391. // if (blInsert)
  392. // {
  393. // OnStandItemCountChanged?.Invoke(this, new StandItemCountChangedEventArgs(CurStandItem));
  394. // }
  395. // return blInsert;
  396. // }
  397. // catch (Exception ex)
  398. // {
  399. // MessageBox.Show(Application.Current.MainWindow, $"操作数据库失败:{ex.Message}", "错误", MessageBoxButton.OK, MessageBoxImage.Error);
  400. // return false;
  401. // }
  402. // finally
  403. // {
  404. // // 关闭进度对话框
  405. // progressDialog.Close();
  406. // }
  407. //}
  408. //public async Task<bool> InsertFilesToDatabase(List<string> filePaths, ProgressDialog progressDialog)
  409. //{
  410. // int totalFiles = filePaths.Count;
  411. // int currentFile = 0;
  412. // int insertCount = 0;
  413. // try
  414. // {
  415. // await Task.Run(() =>
  416. // {
  417. // foreach (var filePath in filePaths)
  418. // {
  419. // // 检查文件是否已经存在于数据库
  420. // if (!DBStand.IsSrcImageExitInStand(filePath, CurStandItem.StandId))
  421. // {
  422. // // 插入文件路径到数据库
  423. // //InsertFileToDatabase(filePath);
  424. // TStandDetail standDetail = new TStandDetail()
  425. // {
  426. // StandDetailId = Guid.NewGuid().ToString(),
  427. // CreateTime = ThisApp.GetNowTime_yyyyMMddHHmmss(),
  428. // StandId = CurStandItem.StandId,
  429. // SrcImage = filePath,
  430. // StandValue = ""
  431. // };
  432. // bool blInsert = DBStand.InsertStandDetail(standDetail);
  433. // if(blInsert)
  434. // {
  435. // insertCount++;
  436. // }
  437. // }
  438. // // 更新进度条
  439. // currentFile++;
  440. // Application.Current.Dispatcher.Invoke(() =>
  441. // {
  442. // UpdateProgress(progressDialog, currentFile, totalFiles);
  443. // });
  444. // }
  445. // });
  446. // }
  447. // catch(Exception ex)
  448. // {
  449. // MessageBox.Show(Application.Current.MainWindow, $"插入数据失败:{ex.Message}。", "错误",
  450. // MessageBoxButton.OK, MessageBoxImage.Error);
  451. // }
  452. // return insertCount > 0;
  453. //}
  454. public void UpdateProgress(ProgressDialog progressDialog, int currentFile, int totalFiles)
  455. {
  456. // 更新进度条的进度
  457. double progress = (double)currentFile / totalFiles * 100;
  458. progressDialog.UpdateProgress(progress);
  459. }
  460. public void NextPage()
  461. {
  462. if (StandDetailPage.PageNumber < StandDetailPage.PageCount)
  463. {
  464. StandDetailPage.PageNumber += 1;
  465. LoadStandDetailItemList();
  466. }
  467. }
  468. public void PrePage()
  469. {
  470. if (StandDetailPage.PageNumber > 1)
  471. {
  472. StandDetailPage.PageNumber -= 1;
  473. LoadStandDetailItemList();
  474. }
  475. }
  476. public void FirstPage()
  477. {
  478. if (StandDetailPage.PageNumber > 1)
  479. {
  480. StandDetailPage.PageNumber = 1;
  481. LoadStandDetailItemList();
  482. }
  483. }
  484. public void LastPage()
  485. {
  486. if (StandDetailPage.PageNumber < StandDetailPage.PageCount)
  487. {
  488. StandDetailPage.PageNumber = StandDetailPage.PageCount;
  489. LoadStandDetailItemList();
  490. }
  491. }
  492. public void SpeciPage(int pageNumber)
  493. {
  494. if(pageNumber != StandDetailPage.PageNumber &&
  495. pageNumber>0 && pageNumber <= StandDetailPage.PageCount)
  496. {
  497. StandDetailPage.PageNumber = pageNumber;
  498. LoadStandDetailItemList();
  499. }
  500. }
  501. private void BtnDelDetailItem_Click(object sender, RoutedEventArgs e)
  502. {
  503. Button button = sender as Button;
  504. if (button == null) return;
  505. DataGridRow row = FindAncestor<DataGridRow>(button);
  506. if (row == null) return;
  507. //获取当前行绑定的数据项
  508. var selectedItem = row.Item as StandDetailItem;
  509. DeleteSelectedItem(selectedItem);
  510. }
  511. private async void DeleteSelectedItem(StandDetailItem selectedItem)
  512. {
  513. if (selectedItem == null) return;
  514. MessageBoxResult result = MessageBox.Show("确定要删除此条目吗?", "确认删除", MessageBoxButton.YesNo, MessageBoxImage.Question);
  515. if (result != MessageBoxResult.Yes) return;
  516. string titleInfo = "正在删除,请稍后...";
  517. WaitWindow waitWindow = new WaitWindow(titleInfo)
  518. {
  519. Owner = Application.Current.MainWindow,
  520. WindowStartupLocation = WindowStartupLocation.CenterOwner
  521. };
  522. waitWindow.Show();
  523. try
  524. {
  525. bool deleteSuccess = false;
  526. await Task.Run(() =>
  527. {
  528. deleteSuccess = DBStand.DeleteTStandDetailById(selectedItem.StandDetailId);
  529. });
  530. if (deleteSuccess)
  531. {
  532. //LoadStandDetailItemList(CurStandItem);
  533. Application.Current.Dispatcher.Invoke(() =>
  534. {
  535. // 从数据源中移除该条目
  536. StandDetailList.Remove(selectedItem);
  537. SelectedStandDetailItem = null;
  538. OnDeleteStandDetailItem?.Invoke(selectedItem.StandId);
  539. //重新加载数据
  540. //LoadPatchDetailItemList();
  541. });
  542. }
  543. }
  544. catch (Exception ex)
  545. {
  546. MessageBox.Show(Application.Current.MainWindow, $"删除失败:{ex.Message}", "错误",
  547. MessageBoxButton.OK, MessageBoxImage.Error);
  548. }
  549. finally
  550. {
  551. waitWindow.Close();
  552. }
  553. }
  554. public static T FindAncestor<T>(DependencyObject dependencyObject) where T : DependencyObject
  555. {
  556. var parent = VisualTreeHelper.GetParent(dependencyObject);
  557. if (parent == null) return null;
  558. var parentT = parent as T;
  559. return parentT ?? FindAncestor<T>(parent);
  560. }
  561. private void BtnUpdateStandvalue_Click(object sender, RoutedEventArgs e)
  562. {
  563. Button button = sender as Button;
  564. if (button == null) return;
  565. DataGridRow row = FindAncestor<DataGridRow>(button);
  566. if (row == null) return;
  567. //获取当前行绑定的数据项
  568. var selectedItem = row.Item as StandDetailItem;
  569. UpdateStandvalue(selectedItem);
  570. }
  571. private void MiDelteRow_Click(object sender, RoutedEventArgs e)
  572. {
  573. if(SelectedStandDetailItem != null)
  574. {
  575. DeleteSelectedItem(SelectedStandDetailItem);
  576. }
  577. }
  578. private void MiUpdateStandvalue_Click(object sender, RoutedEventArgs e)
  579. {
  580. if (SelectedStandDetailItem == null) return;
  581. UpdateStandvalue(SelectedStandDetailItem);
  582. }
  583. ///////////////////////////////////////////////////////////////////////////
  584. }
  585. public class StandDetailItemChangedEventArgs : EventArgs
  586. {
  587. public StandDetailItem SelectedDataItem { get; }
  588. public StandDetailItemChangedEventArgs(StandDetailItem selectedDataItem)
  589. {
  590. SelectedDataItem = selectedDataItem;
  591. }
  592. }
  593. //目录的条目数发生了变化
  594. public class StandItemCountChangedEventArgs : EventArgs
  595. {
  596. public StandItem mStandItem { get; }
  597. public StandItemCountChangedEventArgs(StandItem standItem)
  598. {
  599. mStandItem = standItem;
  600. }
  601. }
  602. ///////////////////////////////////////////////////////////////////
  603. }