public void EnsureWorkflowInformation(object retrieveAssociations, object retrieveWorkflows) { if (retrieveAssociations == Undefined.Value && retrieveWorkflows == Undefined.Value) { m_listItem.EnsureWorkflowInformation(); } else { m_listItem.EnsureWorkflowInformation(TypeConverter.ToBoolean(retrieveAssociations), TypeConverter.ToBoolean(retrieveWorkflows)); } }
/// <summary> /// Inserts the word list. /// </summary> /// <param name="myLangs">My langs.</param> /// <param name="myWords">My words.</param> /// <returns></returns> public bool InsertWordList(List <string> myLangs, List <string> myWords) { int i = 0; bool boo = true; SPListItem spListItem = this.TranslationList.Items.Add(); foreach (string word in myWords) { boo = boo && MatchWord(word); Console.WriteLine("(" + word + ") " + boo); spListItem[myLangs.ElementAt(i)] = word; Console.WriteLine(myLangs.ElementAt(i) + " Adding " + word); i++; } spListItem.Update(); spListItem.EnsureWorkflowInformation(); spListItem.SystemUpdate(); this.TranslationList.Update(); //Console.WriteLine(MatchWord(myWords.ElementAt(0))); return(boo); }