コード例 #1
0
        void _vm_RequestShowPackageManagerPublish(PublishPackageViewModel model)
        {
            if (_pubPkgView == null)
            {
                _pubPkgView         = new PackageManagerPublishView(model);
                _pubPkgView.Closed += (sender, args) => _pubPkgView = null;
                _pubPkgView.Show();
            }

            _pubPkgView.Focus();
        }
コード例 #2
0
ファイル: DynamoView.xaml.cs プロジェクト: seannguyen/Dynamo
        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();
        }