Exemplo n.º 1
0
    private void CommitSelectionChanger(
      SelectionChanger selectionChanger,
      bool itemsSourceChanged )
    {
      try
      {
        selectionChanger.UpdateSelectedItemsInChangeOfDataGridContext( itemsSourceChanged );
        selectionChanger.UpdateSelectedCellsInChangeOfDataGridContext( itemsSourceChanged );
      }
      finally
      {
        selectionChanger.Cleanup();
      }

      selectionChanger.Owner.UpdatePublicSelectionProperties();
    }
Exemplo n.º 2
0
    private SelectionChanger GetSelectionChanger( DataGridContext dataGridContext )
    {
      SelectionChanger selectionChanger = m_activatedSelectionChanger[ dataGridContext ] as SelectionChanger;

      if( selectionChanger != null )
        return selectionChanger;

      selectionChanger = new SelectionChanger( dataGridContext );
      m_activatedSelectionChanger[ dataGridContext ] = selectionChanger;
      return selectionChanger;
    }