void _vm_RequestShowPackageManagerPublish(PublishPackageViewModel model) { if (_pubPkgView == null) { _pubPkgView = new PackageManagerPublishView(model); _pubPkgView.Closed += (sender, args) => _pubPkgView = null; _pubPkgView.Show(); } _pubPkgView.Focus(); }
void _vm_RequestRequestPackageManagerPublish(PublishPackageViewModel model) { if (_pubPkgView == null) { _pubPkgView = new PackageManagerPublishView(model); _pubPkgView.Closed += (sender, args) => _pubPkgView = null; _pubPkgView.Show(); if (_pubPkgView.IsLoaded && this.IsLoaded) { _pubPkgView.Owner = this; } } _pubPkgView.Focus(); }