private void FillDataTable(RoyalGazetteList iData) { RoyalGazetteList lData = iData; if (filterToolStripMenuItem.Checked) { lData = lData.FilteredList(TambonHelper.GlobalGazetteList); } mTable.Rows.Clear(); foreach (RoyalGazette lEntry in lData) { DataRow lRow = mTable.NewRow(); lRow["Description"] = lEntry.Description; lRow["Title"] = lEntry; lRow["Volume"] = lEntry.Volume; lRow["Issue"] = lEntry.Issue; lRow["Page"] = lEntry.PageInfo; lRow["Publication"] = lEntry.Publication; lRow["Signed"] = lEntry.Sign; lRow["Effective"] = lEntry.Effective; lRow["SignedBy"] = lEntry.SignedBy; lRow["SignedByAs"] = lEntry.SignedByPosition; lRow["Gazette"] = lEntry; mTable.Rows.Add(lRow); } grid.DataSource = mTable; }
internal static void ShowGazetteNewsDialog(RoyalGazetteList iList) { var lNewGazetteEntries = iList.FilteredList(TambonHelper.GlobalGazetteList); if (lNewGazetteEntries.Count != 0) { ShowGazetteDialog(iList, true); } }