/// <summary> /// Represents the method that will be called to update the overall /// percent complete value and the current step name. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">A <see cref="ProgressArgs" /> that contains the event data.</param> private void OnDocBuildingStep(object sender, ProgressArgs e) { Log(Level.Info, e.Status); if (e.Progress == 25 && null != _hhcexe) { // right before progress step 25 HtmlHelp object will be created in MSDN Documentor // so we can set path to hhc.exe per reflection // determined with ILSpy SetHtmlHelpCompiler(sender, _hhcexe); } }
private static void DocBuildingStepHandler(object sender, ProgressArgs e) { // timing if (lastStepDateTime.Ticks > 0) { TimeSpan ts = DateTime.UtcNow - lastStepDateTime; Console.WriteLine(String.Format(" Last step took {0:f1} s", ts.TotalSeconds)); } lastStepDateTime = DateTime.UtcNow; Console.WriteLine( e.Status ); }
private void _HtmlHelp1Documenter_DocBuildingStep(object sender, ProgressArgs e) { // since the CHM compilation takes awhile // let's proxy its progress back to the user // (since it takes 50% of our progress divide its progress by 2) OnDocBuildingStep( e.Progress / 2, e.Status ); }
/// <summary> /// Represents the method that will be called to update the current /// step's precent complete value. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">A <see cref="ProgressArgs" /> that contains the event data.</param> private void OnDocBuildingProgress(object sender, ProgressArgs e) { Log(Level.Verbose, e.Progress + ResourceUtils.GetString("String_PercentageComplete")); }
private void m_documenter_DocBuildingStep(object sender, ProgressArgs e) { m_buildStatus.ReportProgress( e ); }
private void OnStepUpdate(object sender, ProgressArgs e) { // This gets called from another thread so we must thread // marhal back to the GUI thread. string text = e.Status; int percent = e.Progress; object[] args = new Object[] { text, percent }; Delegate d = new UpdateProgressDelegate(UpdateProgress); this.Invoke(d, args); }
/// <summary> /// Receives progress reporting /// </summary> /// <param name="e">progress arguments</param> public void ReportProgress(ProgressArgs e) { // This gets called from another thread so we must thread marhal back to the GUI thread. Delegate d = new UpdateProgressDelegate( UpdateProgress ); this.Invoke( d, new Object[] { e.Status, e.Progress } ); }
private void OnStepUpdate(object sender, ProgressArgs e) { if (e.Status.StartsWith("Generat")) { buildPane.OutputString(String.Format("{0} (Please be patient, this could take several minutes)\n", e.Status)); } else if (e.Status.StartsWith("Done")) { buildPane.OutputString(String.Format("{0}\n", e.Status)); buildPane.OutputString("\nNDoc Build complete.\n\n"); buildPane.OutputString("\"file://" + documentationFullName + "\"\n"); } else { buildPane.OutputString(String.Format("{0}\n", e.Status)); } }
/// <summary> /// Represents the method that will be called to update the overall /// percent complete value and the current step name. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">A <see cref="ProgressArgs" /> that contains the event data.</param> private void OnDocBuildingStep(object sender, ProgressArgs e) { Log(Level.Info, e.Status); }