コード例 #1
0
        public bool OpenAssetDlg(AssetTreeExViewModel tva, TVAssetViewModel obj)
        {
            Window owner;

            owner = Application.Current.Windows[0];
            Views.AssetView dlg = new Views.AssetView(tva, obj)
            {
                Owner = owner
            };
            dlg.Show();
            return(false);
        }
コード例 #2
0
        public Models.AssetModel OpenAssetDlg(int customerid, int parentid)
        {
            Window _owner;

            _owner = Application.Current.Windows[0];
            Models.AssetModel result;

            Views.AssetView dlg = new Views.AssetView(customerid, parentid)
            {
                Owner = _owner
            };
            dlg.ShowDialog();
            result = (Models.AssetModel)dlg.Tag;
            return(result);
        }