コード例 #1
0
        public override WorldDescriptionRecord GetWorldDescriptionRecord()
        {
            string errorString;
            string expression;
            if (ParseAction(ComboBoxAction.SelectedIndex, out errorString)
               && ParseExpression(TextBoxForm.Text, out expression, out errorString))
            {
                WorldDescriptionRecord wdr = new ImpossibleActionIfRecord(SelectedAction, expression);
                CleanValues();
                return wdr;
            }

            LabelValidation.Content = errorString;
            throw new TypeLoadException("Validation error");
        }
コード例 #2
0
        public override WorldDescriptionRecord GetWorldDescriptionRecord()
        {
            string errorString;
            string expression;

            if (ParseAction(ComboBoxAction.SelectedIndex, out errorString) &&
                ParseExpression(TextBoxForm.Text, out expression, out errorString))
            {
                WorldDescriptionRecord wdr = new ImpossibleActionIfRecord(SelectedAction, expression);
                CleanValues();
                return(wdr);
            }

            LabelValidation.Content = errorString;
            throw new TypeLoadException("Validation error");
        }