/// <summary> /// Empty data context is used when the from is loaded without ID (the from is in "insert mode") /// </summary> public TagDataContext GetEmptyDataContext(out string error) { TagDataContext dataContext = new TagDataContext(); error = null; dataContext.modelNotifiedForTagMain = new ModelNotifiedForTag();; return(dataContext); }
public TagDataContext GetDataContext(int TagID, out string error) { TagDataContext dataContext = new TagDataContext(); error = null; dataContext.modelNotifiedForTagMain = GetTagByID(TagID, out error); return(dataContext); }