public static void Loader() { var chain = new ProgressChain(); chain.OnChange += delegate { SplashScreen.Progress = chain.Progress * 0.7f; }; chain.AddTask(delegate(ProgressHandler handler) { if (Configuration.Load(handler) == Configuration.ResultCode.ERROR) { } }, 30f); chain.AddTask(delegate(ProgressHandler handler) { if (DynamicTypes.Load(handler) == DynamicTypes.ResultCode.ERROR) { } }, 10f); chain.AddTask(delegate(ProgressHandler handler) { if (GuiConfiguration.Load(handler) == GuiConfiguration.ResultCode.ERROR) { handler.Progress = 100f; } }, 30f); chain.Start(); /*if (DynamicTypes.Load() == DynamicTypes.ResultCode.OK) * { * SplashScreen.Progress = 100; * }*/ }