public AnswerSheet( string name, Form form ) { UniqueName = name; _form = form; _answers = new Dictionary<QBase, ABase>(); }
public static string Save( string path, Form form ) { string completePath = Path.Combine( path, String.Format( "Form-{0}.bin", form.Name ) ); IFormatter formatter = new BinaryFormatter(); using( FileStream bin = new FileStream( Path.Combine( path, String.Format( "Form-{0}.bin", form.Name ) ), FileMode.Create, FileAccess.Write, FileShare.None ) ) { formatter.Serialize( bin, form ); } return completePath; }
public override ABase CreateAnswer( Form form ) { throw new NotImplementedException(); }
public QRoot(Form form, string title, bool isRequired, QBase parent) : base(form, title, parent) { }
public override ABase CreateAnswer( Form form ) { throw new NotSupportedException(); }
public QComposite( Form form, string title, bool isRequired, QBase parent ) : base(form, title, parent) { }
public override ABase CreateAnswer( Form form ) { return (ABase)Activator.CreateInstance( typeof( ABinary ), this ); }
public QMultipleChoice( Form form, string title, bool isRequired, QBase parent ) : base(form, title, parent) { _choices = new List<Choice>(); }