Compare commits

...
2 Commits
3 changed files with 3 additions and 4 deletions

No files matched your search

+2 -2
View File
@@ -45,8 +45,8 @@ namespace SunlightAggregationManager.UserClass
{
Person? deserializedPerson = JsonSerializer.Deserialize<Person>(DAT);
var _user = MainWindowViewModel.Selet_Memory(MainWindowViewModel._userData, "State", "User='" + deserializedPerson?.User +
"' and Password ='" + deserializedPerson?.Password + "'");
var _user = MainWindowViewModel.Selet_Memory(MainWindowViewModel._userData, "State", "User='" +
deserializedPerson?.User + "' and Password ='" + deserializedPerson?.Password + "'");
if (_user != null)
{
string _dat = _user?.ToString() ?? "0";
-1
View File
@@ -17,7 +17,6 @@ namespace SunlightAggregationManager.UserClass
private string DB_IP = null!;
private string DB_PASSWORD = null!;
public void Config(string ip, string name, string type, string id, string password)
{
DB_IP = ip;
+1 -1
View File
@@ -166,7 +166,7 @@ namespace SunlightAggregationManager.ViewModel
{
lock (DB)
{
DataRow drEmployee = DB.Select(key).First();
var drEmployee = DB.Select(key).First();
object? index = drEmployee.Field<object>(name);
return index;
}