private void OnSignAndSave(object sender, EventArgs e)
        {
            // Make sure the entered cert file exists
            if (File.Exists(m_PathTextBox.Text))
            {
                // Update hashes and size info for files
                m_AppManifest.ResolveFiles();
                m_AppManifest.UpdateFileInfo();

                // Write app manifest
                ManifestWriter.WriteManifest(m_AppManifest);

                // Sign app manifest
                ManifestHelper.SignManifest(m_AppManifest, m_PathTextBox.Text, m_PasswordTextBox.Text);
                ManifestHelper.UpdateDeployManifestAppReference(m_DeployManifest, m_AppManifest);

                // Write deploy manifest
                ManifestWriter.WriteManifest(m_DeployManifest);

                // sign deploy manifest
                ManifestHelper.SignManifest(m_DeployManifest, m_PathTextBox.Text, m_PasswordTextBox.Text);
                DialogResult = DialogResult.OK;
                Close();
            }
            else
            {
                m_ErrorProvider.SetError(m_PathTextBox, "Invalid Path");
            }
        }