/// <summary> /// Medias the content loading. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MLifterSettingsManager.ContentLoadingEventArgs"/> instance containing the event data.</param> /// <remarks>Documented by Dev08, 2009-07-18</remarks> private void MediaContentLoading(object sender, ContentLoadingEventArgs e) { MainWindowEnabled = false; ProgressBarText = e.ContentType == ContentType.Card ? "Loading Card Media Info..." : string.Empty; ProgressBarMaximum = e.Maximum; ProgressBarValue = e.Value; }
/// <summary> /// Called when [example content loading]. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MLifterSettingsManager.ContentLoadingEventArgs"/> instance containing the event data.</param> /// <remarks>Documented by Dev08, 2009-07-18</remarks> private void OnExampleContentLoading(object sender, ContentLoadingEventArgs e) { ExampleContentLoadingEventHandler handler = ExampleContentLoading; if (handler != null) { handler(sender, e); } }
/// <summary> /// Called when [media content loading]. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MLifterSettingsManager.ContentLoadingEventArgs"/> instance containing the event data.</param> /// <remarks>Documented by Dev08, 2009-07-18</remarks> private void OnMediaContentLoading(object sender, ContentLoadingEventArgs e) { MediaContentLoadingEventHandler handler = MediaContentLoading; if (handler != null) { handler(sender, e); } }
/// <summary> /// Called when [media content loading]. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MLifterSettingsManager.ContentLoadingEventArgs"/> instance containing the event data.</param> /// <remarks>Documented by Dev08, 2009-07-18</remarks> private void OnMediaContentLoading(object sender, ContentLoadingEventArgs e) { MediaContentLoadingEventHandler handler = MediaContentLoading; if (handler != null) handler(sender, e); }
/// <summary> /// Called when [example content loading]. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MLifterSettingsManager.ContentLoadingEventArgs"/> instance containing the event data.</param> /// <remarks>Documented by Dev08, 2009-07-18</remarks> private void OnExampleContentLoading(object sender, ContentLoadingEventArgs e) { ExampleContentLoadingEventHandler handler = ExampleContentLoading; if (handler != null) handler(sender, e); }
/// <summary> /// Contents the loading. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MLifterSettingsManager.ContentLoadingEventArgs"/> instance containing the event data.</param> /// <remarks>Documented by Dev08, 2009-07-18</remarks> private void ContentLoading(object sender, ContentLoadingEventArgs e) { textBlockProgressBar.Text = e.ContentType == ContentType.Card ? "Loading Cards..." : "Loading Chapters"; progressBarLoad.Maximum = e.Maximum; progressBarLoad.Value = e.Value; }