예제 #1
0
 public void Close()
 {
     var task = dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
     {
         isClosed = true;
         SyncIconRotation.Stop();
         this.Hide();
     });
 }
예제 #2
0
        public void Show()
        {
            var task = dispatcher.RunAsync(CoreDispatcherPriority.Normal, async() =>
            {
                SyncIconRotation.Begin();

                isClosed = false;
                while (!isClosed)
                {
                    await this.ShowAsync();
                }
            });
        }
예제 #3
0
        public void Show(bool isNightMode)
        {
            var task = dispatcher.RunAsync(CoreDispatcherPriority.Normal, async() =>
            {
                SyncIconRotation.Begin();
                ChangeReadMode(isNightMode);

                isClosed = false;
                while (!isClosed)
                {
                    await this.ShowAsync();
                }
            });
        }