Esempio n. 1
0
        public AnswerSheet( string name, Form form )
        {
            UniqueName = name;
            _form = form;

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