forked from Jack251970/ContextMenuManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDetailedEditDialog.cs
More file actions
35 lines (30 loc) · 964 Bytes
/
DetailedEditDialog.cs
File metadata and controls
35 lines (30 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using ContextMenuManager.Methods;
using System;
namespace ContextMenuManager.Controls
{
internal sealed class DetailedEditDialog
{
public Guid GroupGuid { get; set; }
public bool ShowDialog()
{
return RunDialog(null);
}
public bool RunDialog(MainWindow owner)
{
var dialog = ContentDialogHost.CreateDialog(
AppString.Dialog.DetailedEdit.Replace("%s", ResourceString.StripMnemonics(GuidInfo.GetText(GroupGuid))),
owner);
var list = new DetailedEditList
{
GroupGuid = GroupGuid,
UseUserDic = XmlDicHelper.DetailedEditGuidDic[GroupGuid],
MinWidth = 500,
MinHeight = 400
};
list.LoadItems();
dialog.Content = list;
ContentDialogHost.RunBlocking(dialog.ShowAsync, owner);
return false;
}
}
}