public void FillServersEventsLog()
    {
        try
        {
            if (ConnectingServiceDB.ServersEventsLog.Rows.Count < 0)
            {
                return;
            }

            DataRow dataRow_NewRecord = null;

            DataSet_ConnectingServiceDB.ServersEventsLogDataTable eventsLogDataTable_obj = ConnectingServiceDB.ServersEventsLog;

            ////////////////////////////////////////////////////////////////////////////////

            string string_LogType, string_LogDate, string_LogTime, string_LogSource, string_LogDescription, string_UserName, string_UIN;

            for (int int_CycleCount = 0; int_CycleCount != eventsLogDataTable_obj.Rows.Count; int_CycleCount++)
            {
                dataRow_NewRecord = ConnectingServiceDB.ServersEventsLog.Rows[int_CycleCount];

                string_LogSource      = (string)dataRow_NewRecord[eventsLogDataTable_obj.SourceColumn];
                string_LogType        = (string)dataRow_NewRecord[eventsLogDataTable_obj.TypeColumn];
                string_LogDescription = (string)dataRow_NewRecord[eventsLogDataTable_obj.DescriptionColumn];
                string_LogDate        = (string)dataRow_NewRecord[eventsLogDataTable_obj.DateColumn];
                string_LogTime        = (string)dataRow_NewRecord[eventsLogDataTable_obj.TimeColumn];
                string_UserName       = (string)dataRow_NewRecord[eventsLogDataTable_obj.UserNameColumn];
                string_UIN            = (string)dataRow_NewRecord[eventsLogDataTable_obj.UINColumn];

                ConnectingServiceLogsEvents.NewServersLogRecordEvent(string_LogType, string_LogDate, string_LogTime, string_UserName, string_UIN, string_LogSource, string_LogDescription, true);
            }
        }

        catch (Exception)
        {
            if (File.Exists("ConnectingServiceDB"))
            {
                File.Delete("ConnectingServiceDB");
            }

            MessageBox.Show(ServerStringFactory.GetString(128, MainForm.CurrentLanguage), ServerStringFactory.GetString(1, MainForm.CurrentLanguage));

            return;
        }
    }
    private void button_UsersAccountsManagerForm_Add_Click(object sender, System.EventArgs e)
    {
        if (this.textBox_UsersAccountsManagerForm_Login.Text.Length == 0 ||
            this.textBox_UsersAccountsManagerForm_NewPassword.Text.Length == 0 ||
            this.textBox_UsersAccountsManagerForm_ConfirmedPassword.Text.Length == 0 ||
            this.textBox_UsersAccountsManagerForm_UserName.Text.Length == 0)
        {
            MessageBox.Show(ServerStringFactory.GetString(60, MainForm.CurrentLanguage),
                            ServerStringFactory.GetString(1, MainForm.CurrentLanguage), MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

            return;
        }

        if (this.textBox_UsersAccountsManagerForm_ConfirmedPassword.Text.Length < 6)
        {
            MessageBox.Show("password length can't be less than 6 characters");

            return;
        }

        for (int int_intCycleCount = 0; int_intCycleCount != ClientsNetworkSecurity.UserAccount.UsersAccounts.Count; int_intCycleCount++)
        {
            if (ClientsNetworkSecurity.UserAccount.UsersAccounts[int_intCycleCount].UIN == this.textBox_UsersAccountsManagerForm_Login.Text)
            {
                MessageBox.Show(ServerStringFactory.GetString(61, MainForm.CurrentLanguage),
                                ServerStringFactory.GetString(1, MainForm.CurrentLanguage), MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

                return;
            }
        }

        if (this.textBox_UsersAccountsManagerForm_NewPassword.Text != this.textBox_UsersAccountsManagerForm_ConfirmedPassword.Text)
        {
            MessageBox.Show(ServerStringFactory.GetString(115, MainForm.CurrentLanguage), ServerStringFactory.GetString(1, MainForm.CurrentLanguage), MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

            return;
        }


        ClientsNetworkSecurity.UserAccount userAccount_NewAccount = new ClientsNetworkSecurity.UserAccount();

        userAccount_NewAccount.FirstName  = this.textBox_UsersAccountsManagerForm_FirstName.Text;
        userAccount_NewAccount.SecondName = this.textBox_UsersAccountsManagerForm_MiddleName.Text;
        userAccount_NewAccount.LastName   = this.textBox_UsersAccountsManagerForm_LastName.Text;

        userAccount_NewAccount.ICQ   = this.textBox_UsersAccountsManagerForm_ICQ.Text;
        userAccount_NewAccount.EMail = this.textBox_UsersAccountsManagerForm_EMailAddress.Text;

        userAccount_NewAccount.Work = this.textBox_UsersAccountsManagerForm_Company.Text;

        userAccount_NewAccount.HomePhone   = this.textBox_UsersAccountsManagerForm_HomePhome.Text;
        userAccount_NewAccount.WorkPhone   = this.textBox_UsersAccountsManagerForm_WorkPhone.Text;
        userAccount_NewAccount.MobilePhone = this.textBox_UsersAccountsManagerForm_PrivateCellular.Text;;

        userAccount_NewAccount.ActivationCode = 0;

        userAccount_NewAccount.IsEnabled   = true;
        userAccount_NewAccount.IsActivated = true;

        userAccount_NewAccount.Password = this.textBox_UsersAccountsManagerForm_NewPassword.Text;
        userAccount_NewAccount.UIN      = this.textBox_UsersAccountsManagerForm_Login.Text;
        userAccount_NewAccount.UserName = this.textBox_UsersAccountsManagerForm_UserName.Text;

        userAccount_NewAccount.CreationTime   = DateTime.Now;
        userAccount_NewAccount.ActivationTime = DateTime.Now;

        if (ClientsNetworkSecurity.AddNewUser(userAccount_NewAccount) == true)
        {
            ClientsNetworkSecurity.StoreNewClientUserAccountToDB(userAccount_NewAccount);
        }

        #region Call Log Event

        ConnectingServiceLogsEvents.NewServersLogRecordEvent(ServerStringFactory.GetString(44, MainForm.CurrentLanguage), DateTime.Now.ToShortDateString(), DateTime.Now.ToLongTimeString(), userAccount_NewAccount.UserName, userAccount_NewAccount.UIN, ServerStringFactory.GetString(1, MainForm.CurrentLanguage), ServerStringFactory.GetString(45, MainForm.CurrentLanguage), false);

        #endregion

        this.Close();
    }