Exemple #1
0
 public KACAlarm(String NewName, double UT, AlarmTypeEnum atype, AlarmActionEnum aAction)
     : this(UT)
 {
     Name        = NewName;
     TypeOfAlarm = atype;
     AlarmAction = aAction;
 }
Exemple #2
0
            /// <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);
            }
Exemple #3
0
            /// <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);
            }
Exemple #4
0
 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;
 }
Exemple #5
0
 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;
 }
Exemple #6
0
 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;
 }
Exemple #7
0
 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;
 }
Exemple #8
0
 public KACAlarm(String vID, String NewName, double UT, AlarmTypeEnum atype, AlarmActionEnum aAction)
     : this(NewName, UT, atype, aAction)
 {
     VesselID = vID;
 }