Пример #1
0
 private void buttonAddNewType_Click(object sender, RoutedEventArgs e)
 {
     if (Database.GetManifestation(autoCompleteBoxTypes.Text) == null)
     {
         AddType addType = new AddType(autoCompleteBoxTypes.Text);
         addType.ShowDialog();
     }
     else
     {
         AddType addType = new AddType();
         addType.ShowDialog();
     }
 }
Пример #2
0
        private void buttonAdd_Click(object sender, RoutedEventArgs e)
        {
            AddType addType = new AddType();

            addType.Show();
        }