private void Button_Click(object sender, RoutedEventArgs e) { //TODO Activate the old window if it still exists instead of creating a new one newpartwindow = new AddPart(); newpartwindow.OnLogableEvent += childlogevent; newpartwindow.Show(); OnLogableEvent("\nStarted Creating new part\n"); }
private void addPartsButton_Click(object sender, EventArgs e) { AddPart addPartForm = new AddPart(inventory); addPartForm.Show(); }