프로젝트

일반

사용자정보

개정판 e0cfc73c

IDe0cfc73c7c1771a4fba7bb4db066ca7a022b5215
상위 554aae3b
하위 ef013bfc

이지연이(가) 5년 이상 전에 추가함

issue #681: 스플래시 스크린 수정중

Change-Id: I4193c7951a4341ac0783a4a7e298a39fc761c995

차이점 보기:

KCOM/App.xaml.cs
89 89

  
90 90
        private string versionPath = null;
91 91
        //public SplashScreen splash = new SplashScreen("splash.png");
92
        public SplashScreenWindow splashScreen = new SplashScreenWindow();
92
        public static SplashScreenWindow splashScreen = new SplashScreenWindow();
93 93
        protected override void OnStartup(StartupEventArgs e)
94 94
        {          
95 95
            try
......
237 237
                            // splash.Close(new TimeSpan(0, 0, 2));
238 238
                            Task.Factory.StartNew(() =>
239 239
                            {
240
                                for (int i = 1; i <= 100; i++)
240
                                int value = 100 / ISplashMessage.SplashMessageCnt;
241
                                for (int i = 1; i <= ISplashMessage.SplashMessageCnt ; i++)
241 242
                                {
242
                                    System.Threading.Thread.Sleep(1);
243
                                    splashScreen.Dispatcher.Invoke(() => splashScreen.Progress = i);
243
                                    System.Threading.Thread.Sleep(3);
244
                                    splashScreen.Dispatcher.Invoke(() => splashScreen.Progress = i * value);
244 245
                                }
245 246
                                this.Dispatcher.Invoke(() =>
246 247
                                {
......
257 258
                        
258 259
                        Task.Factory.StartNew(() =>
259 260
                        {
260
                            for (int i = 1; i <= 100; i++)
261
                            int value = 100 / ISplashMessage.SplashMessageCnt;
262
                            for (int i = 1; i <= ISplashMessage.SplashMessageCnt; i++)
261 263
                            {
262
                                System.Threading.Thread.Sleep(1);
263
                                splashScreen.Dispatcher.Invoke(() => splashScreen.Progress = i);
264
                                System.Threading.Thread.Sleep(3);
265
                                splashScreen.Dispatcher.Invoke(() => splashScreen.Progress = i * value);                                
264 266
                            }
267
                            
265 268
                            this.Dispatcher.Invoke(() =>
266 269
                            {
267 270
                                base.OnStartup(e);
......
279 282
            {
280 283
                Task.Factory.StartNew(() =>
281 284
                {
282
                    for (int i = 1; i <= 100; i++)
285
                    int value = 100 / ISplashMessage.SplashMessageCnt;
286
                    for (int i = 1; i < ISplashMessage.SplashMessageCnt; i++)
283 287
                    {
284
                        System.Threading.Thread.Sleep(1);
285
                        splashScreen.Dispatcher.Invoke(() => splashScreen.Progress = i);
288
                        System.Threading.Thread.Sleep(3);
289
                        
290
                        splashScreen.Dispatcher.Invoke(() => splashScreen.Progress = i * value);
291

  
292
                        //App.                      
286 293
                    }
287 294
                    this.Dispatcher.Invoke(() =>
288 295
                    {
......
294 301
        
295 302
        }
296 303

  
304
        public static void splashString(string text)
305
        {
306
            Task.Factory.StartNew(() =>
307
            {
308
                splashScreen.Dispatcher.Invoke(() => splashScreen.SplashText = text);
309
            });
310
        }
311

  
312

  
313

  
297 314
        /// <summary>
298 315
        /// log unhandled exception
299 316
        /// </summary>

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)