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

      selectionChanger.Owner.UpdatePublicSelectionProperties();
    }
Esempio 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;
    }