Пример #1
0
        /// <summary>
        /// Clears any selection
        /// </summary>
        public void ClearSelection()
        {
            listViewProducts.SelectedItem = null;
            ClientLogic clientLogic = this.DataContext as ClientLogic;

            clientLogic.ClearSelections();
        }
Пример #2
0
        private void menuItemClearSelection_Click(object sender, RoutedEventArgs e)
        {
            ClientLogic clientLogic = this.DataContext as ClientLogic;

            Debug.Assert(clientLogic != null);

            listViewProducts.SelectedItem = null;
            clientLogic.ClearSelections();
        }