thêm d/s ng dùng

This commit is contained in:
Nguyen Dinh Thuan
2024-09-21 16:02:30 +07:00
parent 19fcde061c
commit a55e7de435
4 changed files with 48 additions and 7 deletions
+3 -2
View File
@@ -27,7 +27,7 @@ namespace SafeBagDE70
public static string CDMPort = "COM4";
public static string SensorPort = "COM3";
public static Version? CurrentVersion = null;
public static List<CustomerAccount>? customerAccounts = null;
public static ObservableCollection<CustomerAccount>? customerAccounts = null;
public static CustomerAccount? CurrentCustomerAccount{get;set;}
public static CCmdRsp? cCmdRsp=null;
public static bool IsAuthenticated = false;
@@ -65,6 +65,7 @@ namespace SafeBagDE70
{
CDMSTATE = new CDMSTATE();
ADMINDEVICESTATUS = new ADMINDEVICESTATUS();
customerAccounts = new ObservableCollection<CustomerAccount>();
//InitDeviceStatus();
}
public static void Init()
@@ -125,7 +126,7 @@ namespace SafeBagDE70
try
{
customerAccounts = new List<CustomerAccount>();
customerAccounts.Clear();
using (var context = new CDMDbContext())
{
var customers = context.Customers;