private bool On_PuzzleAnswer_CommandAction(string cmdKey, PuzzleAnswerVM sender)
        {
            switch (cmdKey)
            {
            case PuzzleAnswerVM.CmdKey_Remove:
                sender.CommandAction = null;
                _vm.RemoveAnswer(sender);
                break;

            case PuzzleAnswerVM.CmdKey_OpenNameColle:
                NameListWindow dlg = new NameListWindow(sender.NameColle);
                dlg.Owner = this;
                dlg.ShowDialog();

                break;

            default:
                break;
            }
            return(true);
        }
예제 #2
0
        private bool On_CommandAction(string cmdKey, AssessmentCenterVM sender)
        {
            switch (cmdKey)
            {
            case nameof(sender.CmdStart):
                sender.Start();
                break;

            case nameof(sender.CmdStop):
                sender.Stop();
                break;

            case nameof(sender.CmdOpenRaterColle):
                NameListWindow wnd = new NameListWindow(sender.RaterColle);
                wnd.Owner = this;
                wnd.ShowDialog();
                break;

            default:
                break;
            }
            return(true);
        }