SIL.FieldWorks.XWorks.FwXWindow.CreateMilestoneProgressState C# (CSharp) Method

CreateMilestoneProgressState() public static method

factory method for getting a progress state which is already hooked up to the correct progress panel
public static CreateMilestoneProgressState ( XCore.Mediator mediator ) : SIL.FieldWorks.Common.Controls.ProgressState
mediator XCore.Mediator
return SIL.FieldWorks.Common.Controls.ProgressState
		public static ProgressState CreateMilestoneProgressState(Mediator mediator)
		{
			if (mediator == null || mediator.PropertyTable == null)
				return new NullProgressState();//not ready to be doing progress bars


			StatusBarProgressPanel panel = mediator.PropertyTable.GetValue("ProgressBar") as StatusBarProgressPanel;
			if (panel == null)
				return new NullProgressState();//not ready to be doing progress bars

			return new MilestoneProgressState(panel);
		}
		/// <summary>
FwXWindow