private void ShowEditWindow() { var vm = new MasterCustomersEditVM(_selectedLine); var editWindow = new MasterCustomersEditView(vm) { Owner = Application.Current.MainWindow, WindowStartupLocation = WindowStartupLocation.CenterOwner }; editWindow.ShowDialog(); }