private async Task RunGenerator(int index)
        {
            DependencyObject registration = null;

            if (_treeGeneratorWindow == null)
            {
                registration = DialogParticipation.GetAssociation(this);
                DialogParticipation.SetRegister(registration, _treeGeneratorViewModel);
            }
            var generator = _treeGeneratorViewModel.Tabs[index];
            await _treeGeneratorViewModel.RunAsync(generator);

            if (registration != null)
            {
                DialogParticipation.SetRegister(registration, this);
            }
        }
Beispiel #2
0
 private async Task RunGenerator(int index)
 {
     var generator = _treeGeneratorViewModel.Tabs[index];
     await _treeGeneratorViewModel.RunAsync(generator);
 }