thêm d/s ng dùng
This commit is contained in:
+3
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user