添加消息提示

This commit is contained in:
maqiao 2024-02-27 16:50:36 +08:00
parent 2d5dabf977
commit adf92e852d
1 changed files with 10 additions and 0 deletions

View File

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