private void btMenu_Click(object sender, RoutedEventArgs e) { MenuWindow menuWindow = new MenuWindow(); menuWindow.ShowDialog(); menuWindow.Activate(); }
private void btNewOrder_Click(object sender, RoutedEventArgs e) { MenuWindow newOrderWindow = new MenuWindow(true); newOrderWindow.ShowDialog(); newOrderWindow.Activate(); if (newOrderWindow.DialogResult == true) { MessageBox.Show("Zamówienie trafiło do realizacji"); } }