Skip to content

Commit

Permalink
[client] 테이블/타입 권한 설정의 사용자 미리보기에서 연결 목록이 보이도록 함
Browse files Browse the repository at this point in the history
  • Loading branch information
powerumc committed Aug 12, 2019
1 parent b2d25d3 commit 3ba1c97
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/Ntreev.Crema.Client.Framework/Assets/TreeView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
<ContentControl Style="{StaticResource UserDescriptor_ContentControl_Style}" ContextMenu="{StaticResource User_ContextMenu}" />
</HierarchicalDataTemplate>

<HierarchicalDataTemplate DataType="{x:Type ncf:UserAuthenticationTreeItemBase}" ItemsSource="{Binding Items}">
<HierarchicalDataTemplate.Resources>
<nmfc:ExpandableContextMenu x:Key="UserAuthentication_ContextMenu" ItemsSource="{Binding ContextMenus}">
</nmfc:ExpandableContextMenu>
</HierarchicalDataTemplate.Resources>
<ContentControl Style="{StaticResource UserDescriptor_ContentControl_Style}" ContextMenu="{StaticResource UserAuthentication_ContextMenu}" />
</HierarchicalDataTemplate>

<HierarchicalDataTemplate DataType="{x:Type ncf:DomainCategoryTreeItemBase}" ItemsSource="{Binding Items}">
<HierarchicalDataTemplate.Resources>
<nmfc:ExpandableContextMenu x:Key="Category_ContextMenu" ItemsSource="{Binding ContextMenus}" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//Released under the MIT License.
//
//Copyright (c) 2018 Ntreev Soft co., Ltd.
//
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
//documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
//rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
//persons to whom the Software is furnished to do so, subject to the following conditions:
//
//The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
//Software.
//
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
//COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
//OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ntreev.Crema.Services;

namespace Ntreev.Crema.Client.Framework.Dialogs.ViewModels
{
public class UserAuthenticationTreeViewItemViewModel : UserAuthenticationTreeItemBase
{
public UserAuthenticationTreeViewItemViewModel(Authentication authentication, UserAuthenticationDescriptor descriptor, object owner)
: base(authentication, descriptor, owner)
{
}

public override string DisplayName => this.Descriptor.DisplayName;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,10 @@ public string DisplayPath
{
get { return this.descriptor.UserID; }
}

protected override UserAuthenticationTreeItemBase CreateInstance(Authentication authentication, UserAuthenticationDescriptor descriptor, object owner)
{
return new UserAuthenticationTreeViewItemViewModel(authentication, descriptor, owner);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Dialogs\ViewModels\UserAuthenticationTreeViewItemViewModel.cs" />
<Compile Include="IUserAuthenticationDescriptor.cs" />
<Compile Include="ListBoxBase.cs" />
<Compile Include="TreeViewBase.cs" />
Expand Down

0 comments on commit 3ba1c97

Please sign in to comment.