Beispiel #1
0
        public void AddPocketAction()
        {
            var dialog = new ActionInput();

            dialog.Closing += (sender, args) =>
            {
                if (dialog.DataContext is ActionInputViewModel vm && vm.PocketAction.Id > 0)
                {
                    PocketActions.Add(vm.PocketAction);
                    SelectedPocketAction = vm.PocketAction;
                }
            };

            dialog.ShowDialogWindow(new ActionInputViewModel(dialog), mWindow);
        }