Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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;
        }