diff --git a/DM_Weight/ViewModels/BindingChannelNewDialogViewModel.cs b/DM_Weight/ViewModels/BindingChannelNewDialogViewModel.cs index 8e09db2..b9a261a 100644 --- a/DM_Weight/ViewModels/BindingChannelNewDialogViewModel.cs +++ b/DM_Weight/ViewModels/BindingChannelNewDialogViewModel.cs @@ -546,10 +546,20 @@ namespace DM_Weight.ViewModels _portUtil.WriteQuantity(item.DrawerNo, item.ColNo, item.totalCount); //await Task.Delay(200); } + SnackbarBackground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#00e676")); + SnackbarMessageQueue.Enqueue("标签渲染完成!"); + return; } }); //GetChannelsByDrawerNo(); } + else + { + + SnackbarBackground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#b71c1c")); + SnackbarMessageQueue.Enqueue("请选择库位"); + return; + } }); } public DelegateCommand BtnCloseCommand