private void ws_GetNextAdCompleted(
            object sender,
            GetNextAdCompletedEventArgs e)
        {
            try
            {
                FormHelper.SyncInvoke(
                    this,
                    delegate
                {
                    barStaticItem1.Caption = e.Result.Text;
                    barStaticItem1.Tag     = e.Result.Url;
                });

                // Next turn.
                adFetchTimer.Start();
            }
            catch (Exception x)
            {
                LogCentral.Current.LogError(
                    @"Silently catching exception when finished fetching ad.",
                    x);
            }
        }
예제 #2
0
		private void ws_GetNextAdCompleted(
			object sender,
			GetNextAdCompletedEventArgs e)
		{
			try
			{
				FormHelper.SyncInvoke(
					this,
					delegate
					{
						barStaticItem1.Caption = e.Result.Text;
						barStaticItem1.Tag = e.Result.Url;
					});

				// Next turn.
				adFetchTimer.Start();
			}
			catch (Exception x)
			{
				LogCentral.Current.LogError(
					@"Silently catching exception when finished fetching ad.",
					x);
			}
		}