private void AddMachine_Click(object sender, RoutedEventArgs e) { var window = new AddMachineWindow(MainWindowVM) { Owner = this }; window.Closed += (a, b) => { this?.Activate(); }; window.Show(); }
private void AddMachine_Click(object sender, RoutedEventArgs e) { var window = new AddMachineWindow(MainWindowVM); window.Show(); }