This function is designed for registration process by e-mail. It creates registration request certificate (into filePathName) which should be sent into our automatic e-mail processing address. The service sends registration response certificate in reply
Syntax
public static ClientRegistrationRequestResponseCode CreateRegistrationRequestCertificate(string filePathName, string licenseCode)
Parameters
string filePathName - file name where request certificate will be stored
string licenseCode - license code for registration process
Return value
Returns the status of operation via ClientRegistrationRequestResponseCode enum.
Requirements
File: ItpLibraryNetWrapper.cs
Namespace: ItpLibraryNetClient;
Example
private void btnSaveCertificate_Click(object sender, EventArgs e)
{
    string licenseCode = tbLicenseCode.Text.Trim();
    if (string.IsNullOrEmpty(licenseCode))
    {
        MessageBox.Show(@"Please specify a license code", @"License is empty");
        return;
    }
 
    using(SaveFileDialog saveFileDialog = FileDialogs.CreateSaveFileDialog(_certificateName))
    {
        if (saveFileDialog.ShowDialog() != DialogResult.OK)
            return;
 
        ClientRegistrationRequestResponseCode responseCode = ItpLibraryNetWrapper.CreateRegistrationRequestCertificate(saveFileDialog.FileName, licenseCode);
        MessageBox.Show(responseCode.ToString(), Text);
    }
}