private void AddProduct_Click(object sender, RoutedEventArgs e) { AddProduct addprod = new AddProduct(); addprod.ShowDialog(); } }