Exemple #1
0
        void _addSequence_Click(object sender, RoutedEventArgs e)
        {
            GenerateSequenceUI generateSequence = new GenerateSequenceUI(this._host);

            generateSequence.Owner = this;
            generateSequence.ShowDialog();
        }
Exemple #2
0
 void _editSequence_Click(object sender, RoutedEventArgs e)
 {
     if (this._existingSequences.SelectedIndex != -1)
     {
         Sequence           seq    = this._existingSequences.SelectedItem as Sequence;
         GenerateSequenceUI editor = new GenerateSequenceUI(this._host, seq);
         editor.Owner = this;
         editor.ShowDialog();
     }
     else
     {
         MessageBox.Show("Select a sequence to continue...", "", MessageBoxButton.OK, MessageBoxImage.Exclamation);
     }
 }