コード例 #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();
 }