Ejemplo n.º 1
0
 /// <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();
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 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);
     }
 }
Ejemplo n.º 4
0
 /// <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();
 }