Пример #1
0
        /// <summary>
        /// Handles the <b>Settings</b> command.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="args">The arguments.</param>
        private async void OnCheckForUpdatesCommand(object sender, EventArgs args)
        {
            StartOperation(workingAnimation);

            try
            {
                var clientInfo = await Headend.GetClientInfoAsync();

                if (clientInfo.UpdateVersion == null)
                {
                    MessageBox.Show("The latest version of neonKUBE is installed.", Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    MessageBox.Show("$todo(jeff.lill): Not implemented yet.", Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
            }
            catch
            {
                StopFailedOperation("Update check failed");
                return;
            }
            finally
            {
                StopOperation();
            }
        }
Пример #2
0
        /// <summary>
        /// Handles the <b>Help</b> command.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="args">The arguments.</param>
        private async void OnHelpCommand(object sender, EventArgs args)
        {
            StartOperation(workingAnimation);

            try
            {
                var clientInfo = await Headend.GetClientInfoAsync();

                NeonHelper.OpenBrowser(clientInfo.HelpUrl);
            }
            catch
            {
                StopFailedOperation(headendError);
                return;
            }
            finally
            {
                StopOperation();
            }
        }