private void OpenDeviceDetails(Device d) { var app = (App)Application.Current; var deviceDetailsWindow = new DeviceDetailsWindow(d.Id) { Owner = app.ZvsWindow }; deviceDetailsWindow.Show(); }