private void AddType_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            AddType addType = new AddType(this);

            addType.Show();
            addToResourcesToShow();
        }
Beispiel #2
0
        private void buttonAddNewType_Click(object sender, RoutedEventArgs e)
        {
            AddType addType = new AddType(autoCompleteBoxTypes.Text, tw);

            addType.ShowDialog();

            /*
             * if (Database.GetResource(autoCompleteBoxTypes.Text) == null)
             * {
             *  AddType addType = new AddType(autoCompleteBoxTypes.Text);
             *  addType.ShowDialog();
             * }
             * else
             * {
             *  AddType addType = new AddType();
             *  addType.ShowDialog();
             * }
             */
        }