I have a base application but the secondary window should not open twice when I click on the menu.
This is my code:
private void MenuItem_Click(object sender, RoutedEventArgs e) {
Agregar_Vendedor ventana_agregar_vendedor = new Agregar_Vendedor();
ventana_agregar_vendedor.Show();
}
I do not know how to make it not open if it is already created.