Beispiel #1
0
        private void btnRegister_Click(object sender, EventArgs e)
        {
            try
            {
                CreateChromeHostManifest(Program.ChromeHostManifestFilePath);

                IntegrationHelpers.RegisterChromeSupport(Program.ChromeHostManifestFilePath);

                MessageBox.Show(Resources.ChromeForm_btnRegister_Click_Chrome_support_enabled_, "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString(), "ShareX - " + Resources.Program_Run_Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }