Game Development Reference
In-Depth Information
{
if (_splashScreen.LoadingJobs == null ||
_splashScreen.LoadingJobs.Count <= 0)
{
DisplayTimer.Stop();
this.Close();
}
}
}
public void RefreshStatus()
{
if (_currentJob != null)
{
this.StatusText = _currentJob.StatusText;
Application.DoEvents();
}
}
public void ProcessJobs()
{
Application.DoEvents();
if (_splashScreen.LoadingJobs != null &&
_splashScreen.LoadingJobs.Count > 0)
{
MethodInvoker refreshInvoker = new MethodInvoker(RefreshStatus);
foreach (ILoadingJob jobObject in _splashScreen.LoadingJobs)
{
_currentJob = jobObject;
if (_currentJob != null)
{
LoadingResult result = _currentJob.Load(refreshInvoker);
switch (result)
{
case LoadingResult.Success:
{
// Generally ignore this return value
break;
}
Search Nedrilad ::




Custom Search