private void addPart_Click(object sender, RoutedEventArgs e) { AddPart addPart = new AddPart(); addPart.Show(); this.Close(); }
private void btnAddPart_Click(object sender, EventArgs e) { RefreshParts(); lblGrid.Text = "Parts"; var addPartWindow = new AddPart(this); addPartWindow.Show(); }