public SetupFieldsWindow(SetupFieldsViewModel viewModel, Window owner) { _vm = viewModel; DataContext = viewModel; SizeToContent = SizeToContent.WidthAndHeight; Title = $"Add Setup Fields"; Owner = owner; WindowStartupLocation = WindowStartupLocation.CenterOwner; InitializeComponent(); ShowDialog(); }
public void ShowAddSetupFields() { SetupFieldsViewModel structDelVM = new SetupFieldsViewModel(_context); SetupFieldsWindow setupFieldsWindow = new SetupFieldsWindow(structDelVM, _window); }