/// <summary> /// Create a new Record object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="bookId">Initial value of the bookId property.</param> /// <param name="startTime">Initial value of the startTime property.</param> /// <param name="endTime">Initial value of the endTime property.</param> public static Record CreateRecord(global::System.Int32 id, global::System.Int32 bookId, global::System.DateTime startTime, global::System.DateTime endTime) { Record record = new Record(); record.id = id; record.bookId = bookId; record.startTime = startTime; record.endTime = endTime; return record; }
private void CancelButton_Click(object sender, RoutedEventArgs e) { CurrentRecord = null; recordDataForm.CancelEdit(); this.DialogResult = false; }
/// <summary> /// Deprecated Method for adding a new object to the Records EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRecords(Record record) { base.AddObject("Records", record); }
public RecordForm(Record record) { InitializeComponent(); CurrentRecord = record; recordDataForm.CurrentItem = CurrentRecord; }