Commit 3efa3a6e authored by 潘栩锋's avatar 潘栩锋 🚴

只是把 PUSH_DATA 的字符串改为 nameof() 而已

parent d6493b28
......@@ -69,7 +69,7 @@ namespace FLY.Simulation.Flyad7.OBJProxy
void Data_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
if (e.PropertyName == "IStatus")
if (e.PropertyName == nameof(Data.IStatus))
{
ostatus = Data.OStatus;
UInt16 inchange = (UInt16)(istatus ^ Data.IStatus);
......@@ -86,7 +86,7 @@ namespace FLY.Simulation.Flyad7.OBJProxy
pos2 = Data.Position2
}.ToBytes());
}
else if ((e.PropertyName == "DriveStatus")||(e.PropertyName == "Marker"))
else if ((e.PropertyName == nameof(Data.DriveStatus))||(e.PropertyName == nameof(Data.Marker)))
{
CurrObjSys.PushObjInfoEx(this, FLYAD7_OBJ_INTERFACE.PUSH_DATA_INTERFACE.PUSH_STATUS,
new FLYAD7_OBJ_INTERFACE.DRIVE_MAN_INTERFACE.Pack_DriveState
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment