Quellcode durchsuchen

更新冲突

样式分支
fyf vor 2 Jahren
Ursprung
Commit
0bd82e92c1
3 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. +2
    -2
      BPASmartClient.Helper/Json.cs
  2. +2
    -2
      BPASmartClient.ViewModel/LogViewModel.cs
  3. +2
    -2
      BPASmartClient/DeviceInfo.xml

+ 2
- 2
BPASmartClient.Helper/Json.cs Datei anzeigen

@@ -27,8 +27,8 @@ namespace BPASmartClient.Helper
{
get
{
Directory.CreateDirectory(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, $"{LocaPath.GetInstance().FilePath}\\JSON"));
return $"{AppDomain.CurrentDomain.BaseDirectory}{LocaPath.GetInstance().FilePath}JSON\\{typeof(T).Name}.json";
Directory.CreateDirectory(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, $"JSON"));
return $"{AppDomain.CurrentDomain.BaseDirectory}JSON\\{typeof(T).Name}.json";
}
}



+ 2
- 2
BPASmartClient.ViewModel/LogViewModel.cs Datei anzeigen

@@ -46,14 +46,14 @@ namespace BPASmartClient.ViewModel
LogDataGrid = new ObservableCollection<LogModel>();
MessageLog.GetInstance.InfoNotify = new Action<string>((s) =>
{
System.Windows.Application.Current.Dispatcher.Invoke((Action)(() =>
System.Windows.Application.Current?.Dispatcher.Invoke((Action)(() =>
{
LogDataGrid.Insert(0,new LogModel { message = s,type = "Info" });
}));
});
MessageLog.GetInstance.ExInfoNotify = new Action<string>((s) =>
{
System.Windows.Application.Current.Dispatcher.Invoke((Action)(() =>
System.Windows.Application.Current?.Dispatcher.Invoke((Action)(() =>
{
LogDataGrid.Insert(0,new LogModel { message = s,type = "Error" });
}));


+ 2
- 2
BPASmartClient/DeviceInfo.xml Datei anzeigen

@@ -20,10 +20,10 @@
</Device>-->

<Device Name="MorkS" Module="BPASmartClient.MorkS.Control" DeviceId="2">
<Parameters>
<!--<Parameters>
<IpAddress>127.0.10.1</IpAddress>
<Port>11</Port>
</Parameters>
</Parameters>-->
<Peripherals>
<Peripheral Module="BPASmartClient.PLC.MorksMachine">
<Parameters>


Laden…
Abbrechen
Speichern