예제 #1
0
        public AddOrEditDialogueActionForm(IntegratedAuthoringToolAsset asset, DialogueStateActionDTO dto)
        {
            InitializeComponent();

            this.dto   = dto;
            this.asset = asset;

            textBoxCurrentState.Value = (WellFormedNames.Name)dto.CurrentState;
            textBoxNextState.Value    = (WellFormedNames.Name)dto.NextState;
            textBoxMeaning.Value      = (WellFormedNames.Name)dto.Meaning;
            textBoxStyle.Value        = (WellFormedNames.Name)dto.Style;
            textBoxUtterance.Text     = dto.Utterance;

            //validators
            EditorTools.AllowOnlyGroundedLiteralOrNil(textBoxCurrentState);
            EditorTools.AllowOnlyGroundedLiteralOrNil(textBoxNextState);

            textBoxMeaning.AllowVariable = false;
            textBoxStyle.AllowVariable   = false;
        }