public KACAlarm(String NewName, double UT, AlarmTypeEnum atype, AlarmActionEnum aAction) : this(UT) { Name = NewName; TypeOfAlarm = atype; AlarmAction = aAction; }
/// <summary> /// Delete an Alarm /// </summary> /// <param name="AlarmID">Unique ID of the alarm</param> /// <returns>Success of the deletion</returns> internal Boolean DrawAlarmActionChoice(ref AlarmActionEnum Choice, String LabelText, Int32 LabelWidth, Int32 ButtonWidth) { Int32 InValue = (Int32)Choice; Int32 OutValue = (Int32)DrawAlarmActionChoiceMethod.Invoke(actualKAC, new System.Object[] { InValue, LabelText, LabelWidth, ButtonWidth }); Choice = (AlarmActionEnum)OutValue; return(InValue != OutValue); }
/// <summary> /// Delete an Alarm /// </summary> /// <param name="AlarmID">Unique ID of the alarm</param> /// <returns>Success of the deletion</returns> internal bool DrawAlarmActionChoice(ref AlarmActionEnum Choice, string LabelText, int LabelWidth, int ButtonWidth) { int InValue = (int)Choice; int OutValue = (int)DrawAlarmActionChoiceMethod.Invoke(actualKAC, new object[] { InValue, LabelText, LabelWidth, ButtonWidth }); Choice = (AlarmActionEnum)OutValue; return(InValue != OutValue); }
public KACAlarm(String vID, String NewName, String NewNotes, double UT, Double Margin, AlarmTypeEnum atype, AlarmActionEnum aAction, ITargetable NewTarget) : this(vID, NewName, NewNotes, UT, Margin, atype, aAction) { //Set the ITargetable proerty TargetObject = NewTarget; }
public KACAlarm(String vID, String NewName, String NewNotes, double UT, Double Margin, AlarmTypeEnum atype, AlarmActionEnum aAction, KACXFerTarget NewTarget) : this(vID, NewName, NewNotes, UT, Margin, atype, aAction) { //Set target details XferOriginBodyName = NewTarget.Origin.bodyName; XferTargetBodyName = NewTarget.Target.bodyName; }
public KACAlarm(String vID, String NewName, String NewNotes, double UT, Double Margin, AlarmTypeEnum atype, AlarmActionEnum aAction, List <ManeuverNode> NewManeuvers) : this(vID, NewName, NewNotes, UT, Margin, atype, aAction) { //set maneuver node ManNodes = NewManeuvers; }
public KACAlarm(String vID, String NewName, String NewNotes, double UT, Double Margin, AlarmTypeEnum atype, AlarmActionEnum aAction) : this(vID, NewName, UT, atype, aAction) { Notes = NewNotes; AlarmMarginSecs = Margin; }
public KACAlarm(String vID, String NewName, double UT, AlarmTypeEnum atype, AlarmActionEnum aAction) : this(NewName, UT, atype, aAction) { VesselID = vID; }