Exemplo n.º 1
0
        private void OpenEditWindow()
        {
            CollectionViewSource source = this.DataContext as CollectionViewSource;
            ListCollectionView view = (ListCollectionView) source.View;


            Word word = MyListBox.SelectedItem as Word;

            if (word == null || word.EditableValue == null) return;

            ZoomValue zoomWindow = new ZoomValue(view, word);
            zoomWindow.Show();
        }
Exemplo n.º 2
0
        private void OpenEditWindow()
        {
            CollectionViewSource source = this.DataContext as CollectionViewSource;
            ListCollectionView view = (ListCollectionView) source.View;


            Phrase phrase = MyListBox.SelectedItem as Phrase;

            if (phrase.EditableValue == null) return;

            ZoomValue zoomWindow = new ZoomValue(view, phrase);
            zoomWindow.Show();
        }