public AnswerSheet( string name, Form form )
        {
            UniqueName = name;
            _form = form;

            _answers = new Dictionary<QBase, ABase>();
        }
Example #2
0
 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;
 }
Example #3
0
 public override ABase CreateAnswer( Form form )
 {
     throw new NotImplementedException();
 }
Example #4
0
 public QRoot(Form form, string title, bool isRequired, QBase parent)
     : base(form, title, parent)
 {
 }
Example #5
0
 public override ABase CreateAnswer( Form form )
 {
     throw new NotSupportedException();
 }
Example #6
0
 public QComposite( Form form, string title, bool isRequired, QBase parent )
     : base(form, title, parent)
 {
 }
Example #7
0
 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>();
 }