Beispiel #1
0
        private void btAdd_Click(object sender, RoutedEventArgs e)
        {
            CloseCurrentPopup();
            MTLibraryModel.Stage = TestStage.Stage_1;
            MTAddEditTextView dlgAdd = new MTAddEditTextView();

            dlgAdd.Owner = this;
            dlgAdd.ShowDialog();
            lbPatchCount.Content = "Número de textos: " + MTControler.TextManager.LstPatch.Count().ToString();
        }
Beispiel #2
0
 private void btEdit_Click(object sender, RoutedEventArgs e)
 {
     CloseCurrentPopup();
     if (this.lvTexts.SelectedIndex > -1)
     {
         MTPatchModel      objText = this.lvTexts.SelectedItem as MTPatchModel;
         MTAddEditTextView dlgAdd  = new MTAddEditTextView(ref objText);
         dlgAdd.Owner = this;
         dlgAdd.Show();
     }
     else
     {
         MessageBox.Show("Selecione pelomenos im item na lista.", "Selecione um item", MessageBoxButton.OK, MessageBoxImage.Information);
     }
 }