Esempio n. 1
0
        static void Main(string[] args)
        {
            var dialogMediator   = new AsyncDialogMediator();
            var presenter        = new DialogPresenter(dialogMediator);
            var homeViewModel    = new HomeViewModel(dialogMediator);
            var dirTreeViewModel = new DirTreeViewModel(dialogMediator);

            Task.Run(async() =>
            {
                for (int i = 0; i < 10; ++i)
                {
                    await homeViewModel.Update();
                    await dirTreeViewModel.Update();
                }
            }).Wait();
        }
Esempio n. 2
0
 public DirTreeViewModel(AsyncDialogMediator dialogMediator)
 {
     this.dialogMediator = dialogMediator;
 }
Esempio n. 3
0
 public DialogPresenter(AsyncDialogMediator dialogMediator)
 {
     dialogMediator.RegisterPresenter(this);
 }