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

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

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