Exemple #1
0
 /// <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);
     }
 }
Exemple #2
0
		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 );
		}
Exemple #3
0
		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 );
		}
Exemple #4
0
 /// <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"));
 }
Exemple #5
0
		private void m_documenter_DocBuildingStep(object sender, ProgressArgs e)
		{
			m_buildStatus.ReportProgress( e );
		}
Exemple #6
0
		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);
		}
Exemple #7
0
		/// <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 } );
		}
Exemple #8
0
		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));
			}
		}
Exemple #9
0
 /// <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);
 }