private data.baseDS.projCommentRow CreateDuplicate(data.baseDS.projectsRow oldRow, string newCode) { data.baseDS.projCommentRow newRow = myDataSet.projComment.NewprojCommentRow(); newRow.ItemArray = oldRow.ItemArray; newRow.projectCode = newCode; myDataSet.projComment.AddprojCommentRow(newRow); data.system.projectsTA.Update(newRow); return(newRow); }
public override void AddNew(string code) { this.AddNewRow(); data.baseDS.projCommentRow projectsRow = (data.baseDS.projCommentRow)((DataRowView)myMasterSource.Current).Row; if (projectsRow == null) { return; } projectsRow.projectCode = code; }