protected virtual void OnCellValueChanged(EditableDataGridCellEventArgs e)
 {
     if (this.CellValueChanged != null)
     {
         this.CellValueChanged(this, e);
     }
 }
Beispiel #2
0
        protected virtual void NotifyCellValueChanged()
        {
            EditableDataGridCellEventArgs e = new EditableDataGridCellEventArgs()
            {
                Column   = this,
                RowIndex = this.EditRow
            };

            Owner.OnCellValueChangedInternal(e);
        }
 protected virtual void OnCellValueChanged(EditableDataGridCellEventArgs e)
 {
     if (this.CellValueChanged != null)
     {
         this.CellValueChanged(this, e);
     }
 }
 internal void OnCellValueChangedInternal(EditableDataGridCellEventArgs e)
 {
     this.OnCellValueChanged(e);
 }
 internal void OnCellValueChangedInternal(EditableDataGridCellEventArgs e)
 {
     this.OnCellValueChanged(e);
 }
        protected override void OnCellValueChanged(EditableDataGridCellEventArgs e)
        {
            base.OnCellValueChanged(e);

            TreeVM tree = (TreeVM)this._BS_trees[e.RowIndex];
            if (e.Column == _sgColumn)
            {
                tree.HandleSampleGroupChanged();
                this.UpdateSpeciesColumn(tree);

                //this.DataEntryController.HandleSampleGroupChanged(this, tree);
            }
            else if (e.Column == _speciesColumn)
            {
                EditableComboBoxColumn col = e.Column as EditableComboBoxColumn;
                if (col == null) { return; }

                this.DataEntryController.HandleSpeciesChanged(tree, col.EditComboBox.SelectedItem as TreeDefaultValueDO);
            }
            else if (e.Column == _stratumColumn)
            {
                tree.HandleStratumChanged();
                this.UpdateSampleGroupColumn(tree);
                this.UpdateSpeciesColumn(tree);

                //this.DataEntryController.HandleStratumChanged(this, tree);
            }
        }
 void editableDataGrid1_CellValueChanged(object sender, EditableDataGridCellEventArgs e)
 {
 }
 protected virtual void NotifyCellValueChanged()
 {
     EditableDataGridCellEventArgs e = new EditableDataGridCellEventArgs()
     {
         Column = this,
         RowIndex = this.EditRow
     };
     Owner.OnCellValueChangedInternal(e);
 }
 void _dataGrid_CellValueChanged(object sender, EditableDataGridCellEventArgs e)
 {
     TreeVM tree = this.ViewLogicController.CurrentTree;
     if (tree == null || e.Column == null) { return; }
     if (e.Column == _sgColumn)
     {
         tree.HandleSampleGroupChanged();
         this.UpdateSpeciesColumn(tree);
     }
     else if (e.Column == _speciesColumn)
     {
         var newTDV = _speciesColumn.EditComboBox.SelectedItem as TreeDefaultValueDO;
         this.ViewLogicController.DataEntryController.HandleSpeciesChanged(tree, newTDV);
     }
 }
 void edg_CellValueChanged(object sender, EditableDataGridCellEventArgs e)
 {
     switch (e.Column.MappingName)
     {
         case ID:
                 etxt_pid_CellEdited();
                 break;
         case Indx:
                 etxt_indx_CellEdited();
                 break;
         case Polygon:
                 //ecbo_poly_SelectedValueChanged(sender, e);
                 break;
         case Op:
                 break;
         case OnBnd:
                 break;
         case Group:
                 break;
         case GroupCN:
                 break;
         case X:
                 break;
         case Y:
                 break;
         case Z:
                 break;
         case ManAcc:
                 etxt_manacc_CellEdited();
                 break;
         case uX:
                 etxt_ux_CellEdited();
                 break;
         case uY:
                 etxt_uy_CellEdited();
                 break;
         case uZ:
                 etxt_uz_CellEdited();
                 break;
         case aX:
                 break;
         case aY:
                 break;
         case aZ:
                 break;
         case fA:
                 etxt_fa_CellEdited();
                 break;
         case bA:
                 etxt_ba_CellEdited();
                 break;
         case sD:
                 etxt_sd_CellEdited();
                 break;
         case sA:
                 etxt_sa_CellEdited();
                 break;
         case hD:
                 break;
         case QL:
                 break;
         case Meta:
                 break;
         case Cmt:
                 break;
     }
 }