void doUgcs(List <XMLement> ugcs) { AppController.poiHit(); XMLement raw = XMLement.createFromRawXml("<poi><name>VolksMond</name><description>Door andere gebruikers gemaakte media</description></poi>"); XMLement mmd = new XMLement("media"); foreach (XMLement x in ugcs) { mmd.addChild(x); } raw.addChild(mmd); AppController.sEventLog.WriteLine("hit {0} ugc:", ugcs.Count); AppController.sEventLog.WriteLine("\t", raw.toString()); if (sUgcViewerPage == null) { sUgcViewerPage = new PoiViewerPage(this); } if (sUgcViewerPage.setContent(raw)) { mIsActive = false; sUgcViewerPage.ShowDialog(); mBlendTimer.Change(0, 3000); } }
public PoiSelectPage(DiwiPageBase parent) : base(parent) { mMenu.addItem("Toon Inhoud", new DiwiUIMenu.DiwiMenuCallbackHandler(doView), null); mMenu.addItem("Volgende", new DiwiUIMenu.DiwiMenuCallbackHandler(doNext), AppController.sVolgIcon); this.Controls.Add(mTextBox); addDrawable(mDnlMess); mTextBox.Font = new Font("Tahoma", 12, FontStyle.Regular); mTextBox.Multiline = true; mTextBox.ReadOnly = true; mTextBox.ScrollBars = ScrollBars.Vertical; mTextBox.ForeColor = Color.Black; mTextBox.BackColor = Color.FromArgb(198, 255, 0); reOrient(); sPoiPage = new PoiViewerPage(this); AppController.sPoiSelectPage = this; title = ""; }