Пример #1
0
 //Constructor
 public FormViewModel()
 {
     Form = new Form();
     FormFields = new List<FormFieldViewModel>();
 }
 /// <summary>
 /// Create a new Form object.
 /// </summary>
 /// <param name="uid">Initial value of the Uid property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="timestamp">Initial value of the Timestamp property.</param>
 public static Form CreateForm(global::System.Guid uid, global::System.Guid userId, global::System.DateTime timestamp)
 {
     Form form = new Form();
     form.Uid = uid;
     form.UserId = userId;
     form.Timestamp = timestamp;
     return form;
 }
Пример #3
0
 //Constructor
 public FormResponseViewModel()
 {
     Form = new Form();
     FormFields = new List<FormField>();
     FormFieldTypes = new List<FormFieldType>();
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Forms EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToForms(Form form)
 {
     base.AddObject("Forms", form);
 }