﻿var statusBarTextRef = null;
var statusBarIndicatorRef = null;

function onSourceDownloadProgressChanged(sender, eventArgs)
{
	if (statusBarTextRef != null)
	{
		statusBarTextRef.text = Math.round( eventArgs._progress * 100 ) + "%";
		statusBarIndicatorRef.Width = Math.round(eventArgs._progress * 400);
	}
}

function OnLoaded(sender, eventArgs)
{
	statusBarTextRef = sender.findName("StatusText");
	statusBarIndicatorRef = sender.findName("ProgressBarIndicator");
}
