private void AddModel_Click(object sender, RoutedEventArgs e) { NewElement element = new NewElement(); if (element.ShowDialog() == true) { DataBase.AddNewModel(element.NameBox.Text); } }
private void AddSoftType(object sender, RoutedEventArgs e) { NewElement element = new NewElement(); if (element.ShowDialog() == true) { XMLWorker.AddSoftType(element.NameBox.Text); SoftType.Items.Add(element.NameBox.Text); } }