本文整理匯總了C#中MonoDevelop.Gettext.CatalogEntry.Equals方法的典型用法代碼示例。如果您正苦於以下問題:C# CatalogEntry.Equals方法的具體用法?C# CatalogEntry.Equals怎麽用?C# CatalogEntry.Equals使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類MonoDevelop.Gettext.CatalogEntry
的用法示例。
在下文中一共展示了CatalogEntry.Equals方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: UpdateEntry
public void UpdateEntry (CatalogEntry entry)
{
TreeIter iter, foundIter = TreeIter.Zero;
// Look if selected is the same - only wanted usecase
if (treeviewEntries.Selection.GetSelected (out iter)) {
CatalogEntry storeEntry = store.GetValue (iter, (int)Columns.CatalogEntry) as CatalogEntry;
if (entry.Equals (storeEntry))
foundIter = iter;
}
// Update data
if (foundIter.Stamp != TreeIter.Zero.Stamp) {
store.SetValue (foundIter, (int)Columns.Fuzzy, entry.IsFuzzy);
store.SetValue (foundIter, (int)Columns.Stock, GetStockForEntry (entry));
store.SetValue (foundIter, (int)Columns.RowColor, GetRowColorForEntry (entry));
store.SetValue (foundIter, (int)Columns.ForeColor, GetForeColorForEntry (entry));
}
}