コード例 #1
0
 public KACAlarm(String NewName, double UT, AlarmTypeEnum atype, AlarmActionEnum aAction)
     : this(UT)
 {
     Name        = NewName;
     TypeOfAlarm = atype;
     AlarmAction = aAction;
 }
コード例 #2
0
ファイル: KACWrapper.cs プロジェクト: todi/KCT
            /// <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);
            }
コード例 #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);
            }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #8
0
 public KACAlarm(String vID, String NewName, double UT, AlarmTypeEnum atype, AlarmActionEnum aAction)
     : this(NewName, UT, atype, aAction)
 {
     VesselID = vID;
 }