private void RoundDuctDesignExecute(bool canExecute) { if (canExecute) { RoundDuctDesigner.Execute(AirFlow, Approximation, RelativeRoughness, DuctLenght, SelectionType, TargetValue, LocalLosses); RoundDuctList = RoundDuctDesigner.DuctCollection; } }
public DuctDesignViewModel() { PropertyChanged += DuctDesignViewModel_PropertyChanged; AirFlow = new AirFlow(293.15, 101325, 0.0); TargetValue = 3.5; SelectionType = SelectionType.Velocity; Approximation = DarcyFrictionFactorApproximation.GoudarSonnad; RectangularDuctHeight = 0.2; RelativeRoughness = 0.00001; DuctLenght = 1; RoundDuctDesigner = new RoundDuctDesigner(); RectangularDuctDesigner = new RectangularDuctDesigner(); LocalLosses = new ObservableCollection <LocalLoss>(); DuctSystem = new DuctSystem(); }