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(); }
private void AppClose() { ThreadStateController.SetDefault(); CloseProgram(); }