private void btnConj_Click(object sender, RoutedEventArgs e)
        {
            if (_tm.SelectedVerb != null)
            {
                Conjugation dlg = new Conjugation(_tm.SelectedVerb)
                {
                    Owner = this,
                    WindowStartupLocation = WindowStartupLocation.CenterOwner
                };

                dlg.ShowDialog();
            }
        }
Esempio n. 2
0
        private void btnConjugate_Click(object sender, RoutedEventArgs e)
        {
            Verb v = lvVerbList.SelectedItem as Verb;

            if (v != null)
            {
                Selection = v;
            }

            if (Selection != null)
            {
                Conjugation dlg = new Conjugation(Selection)
                {
                    Owner = this,
                    WindowStartupLocation = WindowStartupLocation.CenterOwner
                };

                dlg.ShowDialog();
            }

            e.Handled = true;
        }