Exemplo n.º 1
0
        public void PromptUser(ICommonWindowContent <ICloseSource> content)
        {
            var dialog = new CommonDialogWindow <ICloseSource>(content);

            dialog.Activated += OnUserPromptActiviated;
            dialog.ShowModal();
            dialog.Activated -= OnUserPromptActiviated;
        }
Exemplo n.º 2
0
        public TResult PromptUser <TResult>(ICommonWindowContent <IViewModelBase <TResult> > content)
        {
            var dialog = new CommonDialogWindow <IViewModelBase <TResult> >(content);

            dialog.Activated += OnUserPromptActiviated;
            dialog.ShowModal();
            dialog.Activated -= OnUserPromptActiviated;
            return(dialog.ViewModel.Result);
        }
Exemplo n.º 3
0
 public CommonDialogWindow(ICommonWindowContent <T> commonWindowContent) : base(commonWindowContent.Title)
 {
     Content = _commonWindowContent = commonWindowContent;
     _commonWindowContent.ViewModel.Close += Close;
 }