private void button_UINRegistrationForm_Register_Click(object sender, EventArgs e)
    {
        CSP.CommonNetworkEvents.ServerUINRegisteredEvent -= ServerUINRegisteredEventProcessing;

        if (this.textBox_UINRegistrationForm_NewPassword.Text != this.textBox_UINRegistrationForm_ConfirmedPassword.Text)
        {
            MessageBox.Show(ServerStringFactory.GetString(115, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage));

            return;
        }

        string string_UserName    = this.textBox_UINRegistrationForm_UserName.Text,
               string_Password    = this.textBox_UINRegistrationForm_NewPassword.Text,
               string_FirstName   = this.textBox_UINRegistrationForm_FirstName.Text,
               string_SecondName  = this.textBox_UINRegistrationForm_MiddleName.Text,
               string_LastName    = this.textBox_UINRegistrationForm_LastName.Text,
               string_ICQ         = this.textBox_UINRegistrationForm_ICQ.Text,
               string_EMail       = this.textBox_UINRegistrationForm_EMailAddress.Text,
               string_Work        = this.textBox_UINRegistrationForm_Company.Text,
               string_HomePhone   = this.textBox_UINRegistrationForm_HomePhome.Text,
               string_WorkPhone   = this.textBox_UINRegistrationForm_WorkPhone.Text,
               string_MobilePhone = this.textBox_UINRegistrationForm_PrivateCellular.Text;


        if (string_Password.Length < 6)
        {
            MessageBox.Show(ServerStringFactory.GetString(116, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage));

            return;
        }

        if (string_EMail.Length < 6)
        {
            MessageBox.Show(ServerStringFactory.GetString(810, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage));

            return;
        }

        if (string_UserName.Length < 1)
        {
            MessageBox.Show(ServerStringFactory.GetString(811, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage));

            return;
        }


        this.Host = this.textBox_UINRegistrationForm_CustomCSPServiceIPAddress.Text;
        this.Port = this.textBox_UINRegistrationForm_CustomCSPServicePort.Text;

        int int_Port = CSP_ServerAuth_CSPPort;

        if (int_Port == 0)
        {
            MessageBox.Show(ServerStringFactory.GetString(787, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage));

            return;
        }

        if (this.checkBox_UINRegistrationForm_UseCommonJSCSPService.Checked == true)
        {
            this.Host = CSP.ConnectingServiceProvider.GetCommonCSPIPString();

            System.Net.IPAddress iPAddress_ParsedCSIP;

            if (System.Net.IPAddress.TryParse(this.Host, out iPAddress_ParsedCSIP) == false)
            {
                MessageBox.Show(ServerStringFactory.GetString(812, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage));

                return;
            }
        }

        try
        {
            CSP.ConnectingServiceProvider connectingServiceProvider_obj = new CSP.ConnectingServiceProvider();

            bool bool_AuthComplete = connectingServiceProvider_obj.RegisterNewServerUINRequest(string_Host, int_Port, string_UserName, string_Password, string_FirstName, string_SecondName, string_LastName, string_ICQ, string_EMail, string_Work, string_HomePhone, string_WorkPhone, string_MobilePhone);

            if (bool_AuthComplete == false)
            {
                MessageBox.Show(ServerStringFactory.GetString(813, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage));

                return;
            }

            CSP.CommonNetworkEvents.ServerUINRegisteredEvent += ServerUINRegisteredEventProcessing;
        }
        catch (Exception ex)
        {
            MessageBox.Show(ServerStringFactory.GetString(813, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage));
        }
    }
    private void button_ChangeUINAccountState_ProcessNewAccountState_Click(object sender, EventArgs e)
    {
        string string_ConnectingServiceHost = this.textBox_ChangeUINAccountState_CustomCSPServiceIPAddress.Text,
               string_ConnectingServicePort = this.textBox_ChangeUINAccountState_CustomCSPServicePort.Text,
               string_LoginUIN       = this.textBox_ChangeUINAccountState_UIN.Text,
               string_Password       = this.textBox_ChangeUINAccountState_Password.Text,
               string_ActivationCode = this.textBox_ChangeUINAccountState_UINActivationCode.Text;


        #region CSP TCP\IP Port Parsing

        int int_ConnectingServicePort = 0;

        if (int.TryParse(string_ConnectingServicePort, out int_ConnectingServicePort) == true)
        {
            if (int_ConnectingServicePort < 1024 || int_ConnectingServicePort > 65535)
            {
                MessageBox.Show(ServerStringFactory.GetString(788, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage));
            }
        }
        else
        {
            MessageBox.Show(ServerStringFactory.GetString(787, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage));

            return;
        }

        #endregion

        #region Login UIN Parsing

        ulong ulong_LoginUIN = 0;

        if (ulong.TryParse(string_LoginUIN, out ulong_LoginUIN) == true)
        {
        }
        else
        {
            MessageBox.Show(ServerStringFactory.GetString(795, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage));

            return;
        }

        #endregion

        #region Activation Code Parsing

        ulong ulong_ActivationCode = 0;

        if (this.comboBox_ChangeUINAccountState_NewAccountState.SelectedIndex == 0)
        {
            if (ulong.TryParse(string_ActivationCode, out ulong_ActivationCode) == true)
            {
            }
            else
            {
                MessageBox.Show(ServerStringFactory.GetString(795, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage));

                return;
            }
        }
        #endregion

        CSP.ConnectedServer connectedServer_obj = null;

        CSP.ConnectingServiceProvider connectingServiceProvider_obj = new CSP.ConnectingServiceProvider();

        if (this.checkBox_ChangeUINAccountState_UseCommonJSCSPService.Checked == true)
        {
            string_ConnectingServiceHost = CSP.ConnectingServiceProvider.GetCommonCSPIPString();
        }

        ///////////////////////////////////////////////////////
        if (this.comboBox_ChangeUINAccountState_NewAccountState.SelectedIndex == 0)
        {
            connectedServer_obj = connectingServiceProvider_obj.ActivateServerUINRequest(string_ConnectingServiceHost, int_ConnectingServicePort, ulong_LoginUIN, string_Password, ulong_ActivationCode);

            CSP.CommonNetworkEvents.ServerUINActivatedEvent += ServerUINActivatedEventProcessing;
        }
        else
        {
            bool bool_RequestActivationCode = this.checkBox_ChangeUINAccountState_GetActivationCode.Checked;

            connectedServer_obj = connectingServiceProvider_obj.DeActivateServerUINRequest(string_ConnectingServiceHost, int_ConnectingServicePort, ulong_LoginUIN, string_Password, bool_RequestActivationCode);

            CSP.CommonNetworkEvents.ServerUINDeActivatedEvent += ServerUINDeActivatedEventProcessing;
        }
        if (IsCSPObjConnected(connectedServer_obj) == false)
        {
            MessageBox.Show(ServerStringFactory.GetString(796, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage));
        }
        else
        {
        }
    }