public FTurbinesFastSetup() { InitializeComponent(); SetSampleModel(); txtYawAngle.DataBindings.Add("EditValue", _model, "YawAngle", true, DataSourceUpdateMode.OnPropertyChanged); txtNumberOfBld.DataBindings.Add("EditValue", _model, "NumberOfBld", true, DataSourceUpdateMode.OnPropertyChanged); txtNumberOfBldPts.DataBindings.Add("EditValue", _model, "NumberOfBldPts", true, DataSourceUpdateMode.OnPropertyChanged); txtRotorDiameter.DataBindings.Add("EditValue", _model, "RotorDiameter", true, DataSourceUpdateMode.OnPropertyChanged); txtEpsilon.DataBindings.Add("EditValue", _model, "Epsilon", true, DataSourceUpdateMode.OnPropertyChanged); txtSmearRadius.DataBindings.Add("EditValue", _model, "SmearRadius", true, DataSourceUpdateMode.OnPropertyChanged); txtEffectiveRadiusFactor.DataBindings.Add("EditValue", _model, "EffectiveRadiusFactor", true, DataSourceUpdateMode.OnPropertyChanged); txtPointInterpType.DataBindings.Add("EditValue", _model, "PointInterpType", true, DataSourceUpdateMode.OnPropertyChanged); listTurbines.DisplayMember = "Name"; listTurbines.DataSource = _model.Turbines; listTurbines.SelectedIndexChanged += listTurbines_SelectedIndexChanged; if (listTurbines.ItemCount > 0) { listTurbines_SelectedIndexChanged(null, null); } _modelChangedIndicator = new ModelChangedIndicator(this); _model.ModelChanged += _modelChangedIndicator.ModelChangedHandler; }
public FFvSolution() { InitializeComponent(); _modelChangedIndicator = new ModelChangedIndicator(this); _model.ModelChanged += _modelChangedIndicator.ModelChangedHandler; }
public FDimensionsAndValue() { InitializeComponent(); //txtGravitation.DataBindings.Add("EditValue", _model, "Grav/itation.Z", true, DataSourceUpdateMode.OnPropertyChanged); txtX.DataBindings.Add("EditValue", _model, "X", true, DataSourceUpdateMode.OnPropertyChanged); txtY.DataBindings.Add("EditValue", _model, "Y", true, DataSourceUpdateMode.OnPropertyChanged); txtZ.DataBindings.Add("EditValue", _model, "Z", true, DataSourceUpdateMode.OnPropertyChanged); _modelChangedIndicator = new ModelChangedIndicator(this); _model.ModelChanged += _modelChangedIndicator.ModelChangedHandler; }
public FAblGeometry() { InitializeComponent(); panel3dView.Padding = new Padding(5); txtWidth.DataBindings.Add("EditValue", _model, "Width", true, DataSourceUpdateMode.OnPropertyChanged); txtLength.DataBindings.Add("EditValue", _model, "Length", true, DataSourceUpdateMode.OnPropertyChanged); txtHeight.DataBindings.Add("EditValue", _model, "Height", true, DataSourceUpdateMode.OnPropertyChanged); _modelChangedIndicator = new ModelChangedIndicator(this); _model.ModelChanged += _modelChangedIndicator.ModelChangedHandler; }
public FTurbulenceProperties() { InitializeComponent(); _model.SimulationType = SimulationType.LesModel; radioSimulationType.Properties.Items.Clear(); radioSimulationType.Properties.Items.Add(new RadioGroupItem(SimulationType.RasModel, "RAS Model")); radioSimulationType.Properties.Items.Add(new RadioGroupItem(SimulationType.LesModel, "LES Model")); radioSimulationType.Properties.Items.Add(new RadioGroupItem(SimulationType.Laminar, "Laminar")); radioSimulationType.DataBindings.Add("EditValue", _model, "SimulationType", true, DataSourceUpdateMode.OnPropertyChanged); _modelChangedIndicator = new ModelChangedIndicator(this); _model.ModelChanged += _modelChangedIndicator.ModelChangedHandler; }
public FLesProperties() { InitializeComponent(); _model.LesModel = "Smagorinsky"; _model.Delta = "cubeRootVol"; _model.PrintCoeffsOn = true; _model.DeltaCoeff = 1; txtLesModel.DataBindings.Add("EditValue", _model, "LesModel", true, DataSourceUpdateMode.OnPropertyChanged); txtDelta.DataBindings.Add("EditValue", _model, "Delta", true, DataSourceUpdateMode.OnPropertyChanged); txtDeltaCoeff.DataBindings.Add("EditValue", _model, "DeltaCoeff", true, DataSourceUpdateMode.OnPropertyChanged); radioPrintCoeffs.DataBindings.Add("EditValue", _model, "PrintCoeffsOn", true, DataSourceUpdateMode.OnPropertyChanged); _modelChangedIndicator = new ModelChangedIndicator(this); _model.ModelChanged += _modelChangedIndicator.ModelChangedHandler; }
public FFieldData() { InitializeComponent(); _model = new VFieldData(); InitFieldValue(comboInternalFieldType, null); comboInternalFieldType.DataBindings.Add("EditValue", _model, "InternalFieldType", true, DataSourceUpdateMode.OnPropertyChanged); txtInternalFieldValue1.DataBindings.Add("EditValue", _model, "InternalFieldValue1", true, DataSourceUpdateMode.OnPropertyChanged); txtInternalFieldValue2.DataBindings.Add("EditValue", _model, "InternalFieldValue2", true, DataSourceUpdateMode.OnPropertyChanged); txtInternalFieldValue3.DataBindings.Add("EditValue", _model, "InternalFieldValue3", true, DataSourceUpdateMode.OnPropertyChanged); gridControl1.DataSource = _model.Patches; InitPatchTypes(comboPatchType); InitFieldValue(comboPatchGradientType, null); InitFieldValue(comboPatchValueType, null); _modelChangedIndicator = new ModelChangedIndicator(this); _model.ModelChanged += _modelChangedIndicator.ModelChangedHandler; comboPatchGradientType.SelectedIndexChanged += comboPatchGradientType_SelectedIndexChanged; comboPatchValueType.SelectedIndexChanged += comboPatchValueType_SelectedIndexChanged; }