Class StageDataContext
public class StageDataContext : DataContext, IDisposable, IDataContext, IDataContextReadonly, IDataContextWritable
- Inheritance
-
StageDataContext
- Implements
- Inherited Members
- Extension Methods
Constructors
StageDataContext(int, int, StagingDataProvider)
public StageDataContext(int displayStageID, int vesselStageID, StagingDataProvider stagingDataProvider)
Parameters
displayStageIDintvesselStageIDintstagingDataProviderStagingDataProvider
Fields
CanBeRemoved
public bool CanBeRemoved
Field Value
DeltaV
public PropertyExternal<double> DeltaV
Field Value
DisplayedStageID
public Property<int> DisplayedStageID
Field Value
HasThrust
public PropertyExternal<bool> HasThrust
Field Value
PartGroupCount
public PropertyExternal<int> PartGroupCount
Field Value
VesselStageID
public Property<int> VesselStageID
Field Value
Properties
HighlightIndex
public Property<int> HighlightIndex { get; }
Property Value
IsActiveStageFlight
public Property<bool> IsActiveStageFlight { get; set; }
Property Value
IsDragging
public Property<bool> IsDragging { get; }
Property Value
IsEmpty
public PropertyExternal<bool> IsEmpty { get; }
Property Value
IsExpanded
public Property<bool> IsExpanded { get; }
Property Value
IsHighlighted
public Property<bool> IsHighlighted { get; }
Property Value
PartGroups
public ContextListProperty<StagePartGroupDataContext> PartGroups { get; }
Property Value
Methods
EnumeratePartsRemoveIf(Func<StagePartDataContext, bool>, bool)
public void EnumeratePartsRemoveIf(Func<StagePartDataContext, bool> removeIfPredicate, bool fireEvent)
Parameters
removeIfPredicateFunc<StagePartDataContext, bool>fireEventbool
IsStageEmpty()
public bool IsStageEmpty()
Returns
RebuildPartGroups()
public void RebuildPartGroups()
SetActiveStage(bool)
public void SetActiveStage(bool isActive)
Parameters
isActivebool
SetIsExpanded(bool)
public void SetIsExpanded(bool expanded)
Parameters
expandedbool
ToggleExpandPartFolder(int)
public void ToggleExpandPartFolder(int partFolderIndex)
Parameters
partFolderIndexint
TryAddPart(StagePartDataContext)
public void TryAddPart(StagePartDataContext partToAdd)
Parameters
partToAddStagePartDataContext
TryRemovePart(StagePartDataContext)
public void TryRemovePart(StagePartDataContext partToRemove)
Parameters
partToRemoveStagePartDataContext
UpdateStageDeltaV(bool)
public void UpdateStageDeltaV(bool forceUpdate)
Parameters
forceUpdatebool