/// <summary> /// The register task. /// </summary> /// <param name="splashScreenService"> /// The splash screen service. /// </param> private static void RegisterTask(ISplashScreenService splashScreenService) { splashScreenService.Enqueue(new ActionTask("Linking to Satelite", delegate { Thread.Sleep(1000); })); splashScreenService.Enqueue(new ActionTask("Downloading original files from NASA servers", delegate { Thread.Sleep(1000); })); splashScreenService.Enqueue(new ActionTask("Replacing original files with fake ones", delegate { Thread.Sleep(1000); })); splashScreenService.Enqueue(new ActionTask("Closing satellite connections", delegate { Thread.Sleep(1000); })); }
/// <summary> /// The register detailed task. /// </summary> /// <param name="splashScreenService"> /// The splash screen service. /// </param> private static void RegisterDetailedTask(ISplashScreenService splashScreenService) { splashScreenService.Enqueue(new ActionTask("Setting up enviroment", tracker => { tracker.UpdateStatus("Loading dictionaries..."); Thread.Sleep(3000); tracker.UpdateStatus("Locating fake files..."); Thread.Sleep(3000); tracker.UpdateStatus("Almost ready, wait for it....", 98); Thread.Sleep(3000); tracker.UpdateStatus("Sorry, you have to wait more....", true); Thread.Sleep(3000); })); splashScreenService.Enqueue(new ActionTask("Linking to Satelite", tracker => { tracker.UpdateStatus("Step 1", 25); Thread.Sleep(1000); tracker.UpdateStatus("Step 2", 50); Thread.Sleep(1000); tracker.UpdateStatus("Step 3", 75); Thread.Sleep(1000); tracker.UpdateStatus("Step 4", 100); })); splashScreenService.Enqueue(new ActionTask("Downloading original files from NASA servers", tracker => { tracker.UpdateStatus("Step 1", 25); Thread.Sleep(1000); tracker.UpdateStatus("Step 2", 50); Thread.Sleep(1000); tracker.UpdateStatus("Step 3", 75); Thread.Sleep(1000); tracker.UpdateStatus("Step 4", 100); })); splashScreenService.Enqueue(new ActionTask("Replacing original files with fake ones", tracker => { tracker.UpdateStatus("Step 1", 25); Thread.Sleep(1000); tracker.UpdateStatus("Step 2", 50); Thread.Sleep(1000); tracker.UpdateStatus("Step 3", 75); Thread.Sleep(1000); tracker.UpdateStatus("Step 4", 100); })); splashScreenService.Enqueue(new ActionTask("Closing satellite connections", tracker => { tracker.UpdateStatus("Step 1", 25); Thread.Sleep(1000); tracker.UpdateStatus("Step 2", 50); Thread.Sleep(1000); tracker.UpdateStatus("Step 3", 75); Thread.Sleep(1000); tracker.UpdateStatus("Step 4", 100); })); }
/// <summary> /// The register detailed task. /// </summary> /// <param name="splashScreenService"> /// The splash screen service. /// </param> private static void RegisterDetailedTask(ISplashScreenService splashScreenService) { splashScreenService.Enqueue(new ActionTask("Setting up enviroment", tracker => { tracker.UpdateStatus("Loading dictionaries..."); Thread.Sleep(3000); tracker.UpdateStatus("Locating fake files..."); Thread.Sleep(3000); tracker.UpdateStatus("Almost ready, wait for it....", 98); Thread.Sleep(3000); tracker.UpdateStatus("Sorry, you have to wait more....", true); Thread.Sleep(3000); })); splashScreenService.Enqueue(new ActionTask("Linking to Satelite", tracker => { tracker.UpdateStatus("Step 1", 25); Thread.Sleep(1000); tracker.UpdateStatus("Step 2", 50); Thread.Sleep(1000); tracker.UpdateStatus("Step 3", 75); Thread.Sleep(1000); tracker.UpdateStatus("Step 4", 100); })); splashScreenService.Enqueue(new ActionTask("Downloading original files from NASA servers", tracker => { tracker.UpdateStatus("Step 1", 25); Thread.Sleep(1000); tracker.UpdateStatus("Step 2", 50); Thread.Sleep(1000); tracker.UpdateStatus("Step 3", 75); Thread.Sleep(1000); tracker.UpdateStatus("Step 4", 100); })); splashScreenService.Enqueue(new ActionTask("Replacing original files with fake ones", tracker => { tracker.UpdateStatus("Step 1", 25); Thread.Sleep(1000); tracker.UpdateStatus("Step 2", 50); Thread.Sleep(1000); tracker.UpdateStatus("Step 3", 75); Thread.Sleep(1000); tracker.UpdateStatus("Step 4", 100); })); splashScreenService.Enqueue(new ActionTask("Closing satellite connections", tracker => { tracker.UpdateStatus("Step 1", 25); Thread.Sleep(1000); tracker.UpdateStatus("Step 2", 50); Thread.Sleep(1000); tracker.UpdateStatus("Step 3", 75); Thread.Sleep(1000); tracker.UpdateStatus("Step 4", 100); })); }
/// <summary> /// The register task. /// </summary> /// <param name="splashScreenService"> /// The splash screen service. /// </param> private static void RegisterTask(ISplashScreenService splashScreenService) { splashScreenService.Enqueue(new ActionTask("Linking to Satelite", delegate { Thread.Sleep(1000); })); splashScreenService.Enqueue(new ActionTask("Downloading original files from NASA servers", delegate { Thread.Sleep(1000); })); splashScreenService.Enqueue(new ActionTask("Replacing original files with fake ones", delegate { Thread.Sleep(1000); })); splashScreenService.Enqueue(new ActionTask("Closing satellite connections", delegate { Thread.Sleep(1000); })); }