/*private void StorePayload(string softwareDataContent)
         * {
         *  string datastoreFile = SoftwareCoUtil.getSoftwareDataStoreFile();
         *  // append to the file
         *  File.AppendAllText(datastoreFile, softwareDataContent + Environment.NewLine);
         * }*/

        private async void LaunchLoginPrompt()
        {
            await JoinableTaskFactory.SwitchToMainThreadAsync(DisposalToken);

            bool online = await SoftwareUserSession.IsOnlineAsync();

            if (online)
            {
                string       msg     = "To see your coding data in Code Time, please log in to your account.";
                const string caption = "Code Time";
                var          result  = MessageBox.Show(msg, caption,
                                                       MessageBoxButtons.YesNo,
                                                       MessageBoxIcon.Question);

                // If the no button was pressed ...
                if (result == DialogResult.Yes)
                {
                    // launch the browser
                    SoftwareCoUtil.launchLogin();
                }
            }
        }
 private void ConnectClickHandler(string loginType)
 {
     SoftwareCoUtil.launchLogin(loginType);
     EventManager.Instance.CreateCodeTimeEvent("mouse", "click", "LaunchLoginOnboard");
 }
 /// <summary>
 /// This function is the callback used to execute the command when the menu item is clicked.
 /// See the constructor to see how the menu item is associated with this function using
 /// OleMenuCommandService service and MenuCommand class.
 /// </summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="e">Event args.</param>
 private static void Execute(object sender, EventArgs e)
 {
     SoftwareCoUtil.launchLogin();
 }