コード例 #1
0
        private void onRestartButtonClick(object sender, RoutedEventArgs e)
        {
            this.restartButton.IsEnabled = false;

            this.Hide();

            Toggl.RestartAndUpdate();

            MessageBox.Show(this, "Something went wrong.\nPlease restart Toggl Desktop manually.");
        }