2021-12-12 06:55:48 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using WalkingTec.Mvvm.Core;
|
|
|
|
|
using WalkingTec.Mvvm.Core.Extensions;
|
|
|
|
|
using IoTGateway.Model;
|
|
|
|
|
using Plugin;
|
|
|
|
|
|
|
|
|
|
namespace IoTGateway.ViewModel.Config.SystemConfigVMs
|
|
|
|
|
{
|
|
|
|
|
public partial class SystemConfigVM : BaseCRUDVM<SystemConfig>
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public SystemConfigVM()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void InitVM()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void DoAdd()
|
|
|
|
|
{
|
|
|
|
|
base.DoAdd();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void DoEdit(bool updateAllFields = false)
|
|
|
|
|
{
|
|
|
|
|
base.DoEdit(updateAllFields);
|
|
|
|
|
var myMqttClient = Wtm.ServiceProvider.GetService(typeof(MyMqttClient)) as MyMqttClient;
|
2022-10-13 06:50:50 +00:00
|
|
|
|
myMqttClient.StartClientAsync().Wait();
|
2021-12-12 06:55:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void DoDelete()
|
|
|
|
|
{
|
|
|
|
|
base.DoDelete();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|