public LinkPromptDialogWindowViewModel(string text, LinkInfo link) { Text = text; NavigateCommand = new ProtectedCommand(OnNavigateCommand); _link = link; }
private LinkPromptDialogWindow(string title, string text, LinkInfo link) : base(title) { var viewModel = new LinkPromptDialogWindowViewModel(text, link); Content = new LinkPromptDialogWindowContent { DataContext = viewModel, }; }
public static void PromptUser(string title, string text, LinkInfo link) { var window = new LinkPromptDialogWindow(title, text, link); window.ShowModal(); }
public TreeLeafLink(LinkInfo linkInfo) { LinkInfo = linkInfo; Caption = LinkInfo.Caption; NavigateCommand = new ProtectedCommand(OnNavigateCommand); }