protected static void GenerateCancelForm(IInputForm form, IEnumerable <Entity> entities, object context) { IInputFormControl <string> commentControl = form.AddStringControl("Причина", true); commentControl.Name = "Comment"; commentControl.IsRequired = true; }
protected static void GenerateDoneForm(IInputForm form, IEnumerable <Entity> entities, object context) { IInputFormControl <string> commentControl = form.AddStringControl("Комментарий", true); commentControl.Name = "Comment"; }