Поправил UI, добавил команду автотренировки аккумулятора
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
using charger_gui.operations;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.IO.Ports;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace charger_gui
|
||||
@@ -38,73 +35,59 @@ namespace charger_gui
|
||||
}
|
||||
}
|
||||
|
||||
private float u1Acc;
|
||||
public float U1Acc
|
||||
private float u2;
|
||||
public float U2
|
||||
{
|
||||
get
|
||||
{
|
||||
return u1Acc;
|
||||
return u2;
|
||||
}
|
||||
set
|
||||
{
|
||||
u1Acc = value;
|
||||
OnPropertyChanged("U1Acc");
|
||||
u2 = value;
|
||||
OnPropertyChanged("U2");
|
||||
}
|
||||
}
|
||||
|
||||
private float u2Acc;
|
||||
public float U2Acc
|
||||
private float u3;
|
||||
public float U3
|
||||
{
|
||||
get
|
||||
{
|
||||
return u2Acc;
|
||||
return u3;
|
||||
}
|
||||
set
|
||||
{
|
||||
u2Acc = value;
|
||||
OnPropertyChanged("U2Acc");
|
||||
u3 = value;
|
||||
OnPropertyChanged("U3");
|
||||
}
|
||||
}
|
||||
|
||||
private float iLamp;
|
||||
public float ILamp
|
||||
private float u4;
|
||||
public float U4
|
||||
{
|
||||
get
|
||||
{
|
||||
return iLamp;
|
||||
return u4;
|
||||
}
|
||||
set
|
||||
{
|
||||
iLamp = value;
|
||||
OnPropertyChanged("ILamp");
|
||||
u4 = value;
|
||||
OnPropertyChanged("U4");
|
||||
}
|
||||
}
|
||||
|
||||
private float u1Lamp;
|
||||
public float U1Lamp
|
||||
private float u5;
|
||||
public float U5
|
||||
{
|
||||
get
|
||||
{
|
||||
return u1Lamp;
|
||||
return u5;
|
||||
}
|
||||
set
|
||||
{
|
||||
u1Lamp = value;
|
||||
OnPropertyChanged("U1Lamp");
|
||||
}
|
||||
}
|
||||
|
||||
private float u2Lamp;
|
||||
public float U2Lamp
|
||||
{
|
||||
get
|
||||
{
|
||||
return u2Lamp;
|
||||
}
|
||||
set
|
||||
{
|
||||
u2Lamp = value;
|
||||
OnPropertyChanged("U2Lamp");
|
||||
u5 = value;
|
||||
OnPropertyChanged("U5");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,7 +173,10 @@ namespace charger_gui
|
||||
currentOperation.StatusChanged -= OnCurrentOperationStatusChanged;
|
||||
}
|
||||
currentOperation = value;
|
||||
currentOperation.StatusChanged += OnCurrentOperationStatusChanged;
|
||||
if (currentOperation != null)
|
||||
{
|
||||
currentOperation.StatusChanged += OnCurrentOperationStatusChanged;
|
||||
}
|
||||
OnPropertyChanged("OperationStatus");
|
||||
}
|
||||
}
|
||||
@@ -209,6 +195,8 @@ namespace charger_gui
|
||||
}
|
||||
}
|
||||
|
||||
public int TrainDuration { get; set; }
|
||||
|
||||
private void FillPorts()
|
||||
{
|
||||
ports = new List<string>(SerialPort.GetPortNames());
|
||||
|
||||
Reference in New Issue
Block a user