Esempio n. 1
0
 /// <summary>
 /// Override out Activated event to allow parent form to retains its 'activated'
 /// look (caption bar color, etc.) even when we are active
 /// </summary>
 /// <param name="e"></param>
 protected override void OnActivated(EventArgs e)
 {
     // start the animation if necessary (don't start until we are activated so that the
     // loading of the form is not delayed)
     if (!progressAnimatedBitmap.Running)
     {
         progressAnimatedBitmap.Start();
     }
 }
        public void Start(bool getPages)
        {
            labelCaption.Text = String.Format(CultureInfo.CurrentCulture, Res.Get(StringId.RetrievingFromWeblog), getPages ? Res.Get(StringId.PagesLower) : Res.Get(StringId.PostsLower));

            if (!progressAnimatedBitmap.IsDisposed)
            {
                if (!progressAnimatedBitmap.Running)
                {
                    progressAnimatedBitmap.Start();
                }
            }

            BringToFront();
        }