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"); }
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"); }