예제 #1
0
        private void Switch_IsEnabled()
        {
            if (this.AppConfig.IsEnabled)
            {
                if (ThreadStateController.SetDefault())
                {
                    this.AppConfig.IsEnabled = false;
                }
                else
                {
                    // TBD: Show Error
                }
            }
            else
            {
                if (ThreadStateController.SetBusy())
                {
                    this.AppConfig.IsEnabled = true;
                }
                else
                {
                    // TBD: Show Error
                }
            }

            this.AppConfig.RefreshUI();
            ShowBaloonTip();
        }
예제 #2
0
 private void AppClose()
 {
     ThreadStateController.SetDefault();
     CloseProgram();
 }