/// <summary> /// Hides results control and shows welcome screen with info about an available update. /// </summary> public void SetWelcomeUpdate(int vmaj, int vmin, DateTime rdate, string rnotes, UpdateNowDelegate updateNowDelegate) { RemoveChild(ctrlResults); ctrlWhite = new WhiteUpdateControl(this, tprov, vmaj, vmin, rdate, rnotes, updateNowDelegate); ctrlWhite.RelLocation = new Point(writingPad.RelRight + padding, ctrlSearchInput.RelBottom + padding); OnSizeChanged(); }
private void clearWhite() { if (ctrlWhite != null) { RemoveChild(ctrlWhite); ctrlWhite.Dispose(); ctrlWhite = null; AddChild(ctrlResults); //ctrlResults.SetResults(lookupId, null, // new ReadOnlyCollection<CedictResult>(new CedictResult[0]), // searchScript); OnSizeChanged(); MakeMePaint(true, RenderMode.Invalidate); } }