void ChangeControlsLanguage()
    {
        this.Text = ServerStringFactory.GetString(129, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.groupBox_UsersAccountsManagerForm_AccountInformation.Text    = ServerStringFactory.GetString(140, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.groupBox_UsersAccountsManagerForm_AdditionalInformation.Text = ServerStringFactory.GetString(141, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_UsersAccountsManagerForm_Login.Text             = ServerStringFactory.GetString(17, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UsersAccountsManagerForm_UserName.Text          = ServerStringFactory.GetString(142, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UsersAccountsManagerForm_NewPassword.Text       = ServerStringFactory.GetString(16, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UsersAccountsManagerForm_ConfirmedPassword.Text = ServerStringFactory.GetString(130, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_UsersAccountsManagerForm_FirstName.Text       = ServerStringFactory.GetString(131, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UsersAccountsManagerForm_LastName.Text        = ServerStringFactory.GetString(132, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UsersAccountsManagerForm_MiddleName.Text      = ServerStringFactory.GetString(133, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UsersAccountsManagerForm_EMailAddress.Text    = ServerStringFactory.GetString(134, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UsersAccountsManagerForm_ICQ.Text             = ServerStringFactory.GetString(135, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UsersAccountsManagerForm_Company.Text         = ServerStringFactory.GetString(136, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UsersAccountsManagerForm_HomePhone.Text       = ServerStringFactory.GetString(137, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UsersAccountsManagerForm_WorkPhone.Text       = ServerStringFactory.GetString(138, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UsersAccountsManagerForm_PrivateCellular.Text = ServerStringFactory.GetString(139, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.button_UsersAccountsManagerForm_Add.Text    = ServerStringFactory.GetString(23, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.button_UsersAccountsManagerForm_Apply.Text  = ServerStringFactory.GetString(79, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.button_UsersAccountsManagerForm_Cancel.Text = ServerStringFactory.GetString(86, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
    }
    public void RetriveServerSettingsData(MemoryStream memoryStream_XMLData)
    {
        try
        {
            ConnectingServiceDBSupplier.ConnectingServiceDB.Clear();

            ConnectingServiceDB.ReadXml(memoryStream_XMLData);
        }
        catch (Exception)
        {
            InitMainServerXmlDB();

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

            return;
        }

        try
        {
            ApplyDBSettings();
        }
        catch (Exception e)
        {
            MessageBox.Show(e.Message);
            MessageBox.Show(ServerStringFactory.GetString(128, MainForm.CurrentLanguage), ServerStringFactory.GetString(1, MainForm.CurrentLanguage));
        }
    }
    void ChangeControlsLanguage()
    {
        this.Text = ServerStringFactory.GetString(129, MainForm.CurrentLanguage);

        this.groupBox_UsersAccountsManagerForm_AccountInformation.Text    = ServerStringFactory.GetString(140, MainForm.CurrentLanguage);
        this.groupBox_UsersAccountsManagerForm_AdditionalInformation.Text = ServerStringFactory.GetString(141, MainForm.CurrentLanguage);

        this.label_UsersAccountsManagerForm_UIN.Text               = ServerStringFactory.GetString(17, MainForm.CurrentLanguage);
        this.label_UsersAccountsManagerForm_UserName.Text          = ServerStringFactory.GetString(142, MainForm.CurrentLanguage);
        this.label_UsersAccountsManagerForm_NewPassword.Text       = ServerStringFactory.GetString(16, MainForm.CurrentLanguage);
        this.label_UsersAccountsManagerForm_ConfirmedPassword.Text = ServerStringFactory.GetString(130, MainForm.CurrentLanguage);

        this.label_UsersAccountsManagerForm_FirstName.Text       = ServerStringFactory.GetString(131, MainForm.CurrentLanguage);
        this.label_UsersAccountsManagerForm_LastName.Text        = ServerStringFactory.GetString(132, MainForm.CurrentLanguage);
        this.label_UsersAccountsManagerForm_MiddleName.Text      = ServerStringFactory.GetString(133, MainForm.CurrentLanguage);
        this.label_UsersAccountsManagerForm_EMailAddress.Text    = ServerStringFactory.GetString(134, MainForm.CurrentLanguage);
        this.label_UsersAccountsManagerForm_ICQ.Text             = ServerStringFactory.GetString(135, MainForm.CurrentLanguage);
        this.label_UsersAccountsManagerForm_Company.Text         = ServerStringFactory.GetString(136, MainForm.CurrentLanguage);
        this.label_UsersAccountsManagerForm_HomePhone.Text       = ServerStringFactory.GetString(137, MainForm.CurrentLanguage);
        this.label_UsersAccountsManagerForm_WorkPhone.Text       = ServerStringFactory.GetString(138, MainForm.CurrentLanguage);
        this.label_UsersAccountsManagerForm_PrivateCellular.Text = ServerStringFactory.GetString(139, MainForm.CurrentLanguage);

        this.button_UsersAccountsManagerForm_Add.Text    = ServerStringFactory.GetString(23, MainForm.CurrentLanguage);
        this.button_UsersAccountsManagerForm_Apply.Text  = ServerStringFactory.GetString(79, MainForm.CurrentLanguage);
        this.button_UsersAccountsManagerForm_Cancel.Text = ServerStringFactory.GetString(86, MainForm.CurrentLanguage);
    }
Exemplo n.º 4
0
    public void ChangeControlsLanguage()
    {
        this.Text = ServerStringFactory.GetString(117, CurrentLanguage);

        this.label_Title.Text = ServerStringFactory.GetString(90, CurrentLanguage);

        this.groupBox_Contacts.Text = ServerStringFactory.GetString(89, CurrentLanguage);

        this.richTextBox_About.Text = ServerStringFactory.GetString(2, CurrentLanguage);

        this.label_PasswordVerivicationForm_Password.Text = ServerStringFactory.GetString(16, CurrentLanguage);

        this.groupBox_PasswordVerivicationForm_Language.Text = ServerStringFactory.GetString(118, CurrentLanguage);

        this.label_PasswordVerivicationForm_CurrentLanguage.Text = ServerStringFactory.GetString(66, CurrentLanguage);

        this.button_PasswordVerivicationForm_Quit.Text = ServerStringFactory.GetString(31, CurrentLanguage);

        this.button_PasswordVerivicationForm_Login.Text = ServerStringFactory.GetString(119, CurrentLanguage);

        this.button_PasswordVerivicationForm_LoginWithOutPassword.Text = ServerStringFactory.GetString(122, CurrentLanguage);

        this.groupBox_PasswordVerivicationForm_WhenPasswordLost.Text = ServerStringFactory.GetString(121, CurrentLanguage);

        this.label_PasswordVerivicationForm_LostPasswordDecription.Text = ServerStringFactory.GetString(120, CurrentLanguage);
    }
    void SetLanguageSettings()
    {
        this.Text = ServerStringFactory.GetString(765, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.groupBox_UINRegistrationForm_AdditionalInformation.Text = ServerStringFactory.GetString(141, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.groupBox_UINRegistrationForm_AccountInformation.Text    = ServerStringFactory.GetString(140, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_UINRegistrationForm_Company.Text = ServerStringFactory.GetString(136, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_UINRegistrationForm_FirstName.Text  = ServerStringFactory.GetString(131, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UINRegistrationForm_MiddleName.Text = ServerStringFactory.GetString(133, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UINRegistrationForm_LastName.Text   = ServerStringFactory.GetString(132, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_UINRegistrationForm_ICQ.Text          = ServerStringFactory.GetString(135, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UINRegistrationForm_EMailAddress.Text = ServerStringFactory.GetString(134, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_UINRegistrationForm_HomePhone.Text       = ServerStringFactory.GetString(137, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UINRegistrationForm_WorkPhone.Text       = ServerStringFactory.GetString(138, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UINRegistrationForm_PrivateCellular.Text = ServerStringFactory.GetString(139, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_UINRegistrationForm_UserName.Text = ServerStringFactory.GetString(142, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_UINRegistrationForm_NewPassword.Text       = ServerStringFactory.GetString(104, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UINRegistrationForm_ConfirmedPassword.Text = ServerStringFactory.GetString(105, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.button_UINRegistrationForm_Cancel.Text   = ServerStringFactory.GetString(86, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.button_UINRegistrationForm_Register.Text = ServerStringFactory.GetString(761, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_UINRegistrationForm_Notice.Text = ServerStringFactory.GetString(762, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_UINRegistrationForm_CustomCSPServicePort.Text      = ServerStringFactory.GetString(8, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_UINRegistrationForm_CustomCSPServiceIPAddress.Text = ServerStringFactory.GetString(763, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.checkBox_UINRegistrationForm_UseCommonJSCSPService.Text = ServerStringFactory.GetString(764, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
    }
        protected override void OnStart(string[] args)
        {
            try
            {
                Thread.CurrentPrincipal = new WindowsPrincipal(WindowsIdentity.GetCurrent());

                ServiceController serviceController_obj = new ServiceController("YakSys RCT Server");

                if (!File.Exists(Application.StartupPath + "\\YakSysRctServerLib.dll"))
                {
                    try
                    {
                        MessageBox.Show(null, ServerStringFactory.GetString(36, ServerSettingsEnvironment.CurrentLanguage), ServerStringFactory.GetString(37, ServerSettingsEnvironment.CurrentLanguage), MessageBoxButtons.OK, MessageBoxIcon.Stop, MessageBoxDefaultButton.Button1);

                        serviceController_obj.Refresh();

                        serviceController_obj.Stop();
                    }
                    catch
                    {
                    }

                    return;
                }

                new Thread(new ThreadStart(WatchProcWindowModule)).Start();

                YakSys.XMLConfigImporter.YakSysServerDBEnvironment.LoadXMLDataFile(Application.StartupPath + "\\YakSysServerDB", false);

                NetworkSecurity.LoadSecurityDB(new YakSysServerDBEnvironment().GetSecurityDataBase());

                NetworkSecurity.LoadAccessRestrictionRulesDB(new YakSysServerDBEnvironment().GetAccessRestrictionRules());

                NETRemotingInteractionLayer.StartNETRemotingHost(5550);

                NetworkStatusAndStatistics.ServerStatus = ServerStringFactory.GetString(7, ServerSettingsEnvironment.CurrentLanguage);

                if (ServerSettingsEnvironment.StartServerAtRun == true)
                {
                    if (NetworkSecurity.UserAccount.UsersAccounts.Count == 0)
                    {
                        MessageBox.Show(ServerStringFactory.GetString(69, ServerSettingsEnvironment.CurrentLanguage), ServerStringFactory.GetString(1, ServerSettingsEnvironment.CurrentLanguage), MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    }
                    else
                    {
                        try
                        {
                            obj_NetworkAction.StartServer(ServerSettingsEnvironment.ServerPort);//IPC call
                        }
                        catch { }
                        string string_ConnectingServiceHost = CSP.ConnectingServiceProvider.GetCommonCSPIPString();
                    }
                }
            }
            catch (Exception e)
            {
                // MessageBox.Show("Starting YakSys Server Service failed");
            }
        }
    void MonitorConnectionStatus()
    {
        try
        {
            bool bool_IsMessageFirstTimeShown = false;

            while (this.IsDisposed == false && this.IsHandleCreated == true)
            {
                this.Invoke((MethodInvoker) delegate
                {
                    if (LocalObjCopy.obj_NetworkAction.IsPublishServerCallWorking() == false)
                    {
                        this.button_CSPForm_ServerAuth_Connect.Enabled = true;

                        if (LocalObjCopy.obj_NetworkAction.IsCSPServerObjConnected() == false)
                        {
                            this.textBox_CSPForm_ServerAuth_ConnectionStatus.Text = ServerStringFactory.GetString(780, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

                            this.button_CSPForm_ServerAuth_Connect.Text = ServerStringFactory.GetString(776, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

                            if (bool_IsMessageFirstTimeShown == true)
                            {
                                bool_IsMessageFirstTimeShown = false;

                                ServerDisconnectionEventProcessing();
                            }
                        }
                        else
                        {
                            this.textBox_CSPForm_ServerAuth_ConnectionStatus.Text = ServerStringFactory.GetString(629, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

                            this.button_CSPForm_ServerAuth_Connect.Text = ServerStringFactory.GetString(779, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
                        }
                    }
                    else
                    {
                        bool_IsMessageFirstTimeShown = true;
                    }
                });

                if (LocalObjCopy.obj_NetworkAction.IsCSPServerObjConnected() == true)
                {
                    Thread.Sleep(2000);
                }
                else
                {
                    Thread.Sleep(200);
                }
            }
        }
        catch
        {
        }
        finally
        {
            this.button_CSPForm_ServerAuth_Connect.Enabled = true;
        }
    }
        private void button_StartYakSysRCT_Click(object sender, EventArgs e)
        {
            try
            {
                Thread.CurrentPrincipal = new WindowsPrincipal(WindowsIdentity.GetCurrent());

                System.Threading.Thread.Sleep(1000);

                ServiceController serviceController_obj = new ServiceController("YakSys RCT Server");

                if (!File.Exists(Application.StartupPath + "\\YakSysRctServerLib.dll"))
                {
                    try
                    {
                        MessageBox.Show(null, ServerStringFactory.GetString(36, ServerSettingsEnvironment.CurrentLanguage), ServerStringFactory.GetString(37, ServerSettingsEnvironment.CurrentLanguage), MessageBoxButtons.OK, MessageBoxIcon.Stop, MessageBoxDefaultButton.Button1);
                    }
                    catch
                    {
                    }

                    return;
                }

                new Thread(new ThreadStart(WatchProcWindowModule)).Start();

                YakSys.XMLConfigImporter.YakSysServerDBEnvironment.LoadXMLDataFile(Application.StartupPath + "\\YakSysServerDB", false);

                YakSys.Server_Core.NetworkSecurity.LoadSecurityDB(new YakSysServerDBEnvironment().GetSecurityDataBase());

                YakSys.Server_Core.NetworkSecurity.LoadAccessRestrictionRulesDB(new YakSysServerDBEnvironment().GetAccessRestrictionRules());

                NETRemotingInteractionLayer.StartNETRemotingHost(5550);

                NetworkStatusAndStatistics.ServerStatus = ServerStringFactory.GetString(7, ServerSettingsEnvironment.CurrentLanguage);



                //!!! ошибка, не считывается DB сервера, не назначается true StartServerAtRun и соответственно не входит в старот сервера. а вообще стартует. почему не отвечает после рефакторинга GUI не понятно
                if (ServerSettingsEnvironment.StartServerAtRun == true)
                {
                    if (NetworkSecurity.UserAccount.UsersAccounts.Count == 0)
                    {
                        MessageBox.Show(ServerStringFactory.GetString(69, ServerSettingsEnvironment.CurrentLanguage), ServerStringFactory.GetString(1, ServerSettingsEnvironment.CurrentLanguage), MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    }
                    else
                    {
                        obj_NetworkAction.StartServer(ServerSettingsEnvironment.ServerPort);//IPC call

                        string string_ConnectingServiceHost = CSP.ConnectingServiceProvider.GetCommonCSPIPString();
                    }
                }
            }
            catch (Exception)
            {
                // MessageBox.Show("Starting YakSys Server Service failed");
            }
        }
    public void ChangeControlsLanguage()
    {
        if (CallerID == 0) // 0 Is A YakSysRctServer
        {
            this.Text = ServerStringFactory.GetString(117, ServerSettingsEnvironment.CurrentLanguage);

            this.label_Title.Text = ServerStringFactory.GetString(90, ServerSettingsEnvironment.CurrentLanguage);

            this.groupBox_Contacts.Text = ServerStringFactory.GetString(89, ServerSettingsEnvironment.CurrentLanguage);

            this.richTextBox_About.Text = ServerStringFactory.GetString(2, ServerSettingsEnvironment.CurrentLanguage);

            this.label_PasswordVerivicationForm_Password.Text = ServerStringFactory.GetString(16, ServerSettingsEnvironment.CurrentLanguage);

            this.groupBox_PasswordVerivicationForm_Language.Text = ServerStringFactory.GetString(118, ServerSettingsEnvironment.CurrentLanguage);

            this.label_PasswordVerivicationForm_CurrentLanguage.Text = ServerStringFactory.GetString(66, ServerSettingsEnvironment.CurrentLanguage);

            this.button_PasswordVerivicationForm_Quit.Text = ServerStringFactory.GetString(31, ServerSettingsEnvironment.CurrentLanguage);

            this.button_PasswordVerivicationForm_Login.Text = ServerStringFactory.GetString(119, ServerSettingsEnvironment.CurrentLanguage);

            this.button_PasswordVerivicationForm_LoginWithOutPassword.Text = ServerStringFactory.GetString(122, ServerSettingsEnvironment.CurrentLanguage);

            this.groupBox_PasswordVerivicationForm_WhenPasswordLost.Text = ServerStringFactory.GetString(121, ServerSettingsEnvironment.CurrentLanguage);

            this.label_PasswordVerivicationForm_LostPasswordDecription.Text = ServerStringFactory.GetString(120, ServerSettingsEnvironment.CurrentLanguage);
        }

        else
        {
            this.Text = ClientStringFactory.GetString(537, ClientSettingsEnvironment.CurrentLanguage);

            this.label_Title.Text = ClientStringFactory.GetString(511, ClientSettingsEnvironment.CurrentLanguage);

            this.groupBox_Contacts.Text = ClientStringFactory.GetString(510, ClientSettingsEnvironment.CurrentLanguage);

            this.richTextBox_About.Text = ClientStringFactory.GetString(2, ClientSettingsEnvironment.CurrentLanguage);

            this.label_PasswordVerivicationForm_Password.Text = ClientStringFactory.GetString(73, ClientSettingsEnvironment.CurrentLanguage);

            this.groupBox_PasswordVerivicationForm_Language.Text = ClientStringFactory.GetString(252, ClientSettingsEnvironment.CurrentLanguage);

            this.label_PasswordVerivicationForm_CurrentLanguage.Text = ClientStringFactory.GetString(299, ClientSettingsEnvironment.CurrentLanguage);

            this.button_PasswordVerivicationForm_Quit.Text = ClientStringFactory.GetString(201, ClientSettingsEnvironment.CurrentLanguage);

            this.button_PasswordVerivicationForm_Login.Text = ClientStringFactory.GetString(268, ClientSettingsEnvironment.CurrentLanguage);

            this.button_PasswordVerivicationForm_LoginWithOutPassword.Text = ClientStringFactory.GetString(536, ClientSettingsEnvironment.CurrentLanguage);

            this.groupBox_PasswordVerivicationForm_WhenPasswordLost.Text = ClientStringFactory.GetString(538, ClientSettingsEnvironment.CurrentLanguage);

            this.label_PasswordVerivicationForm_LostPasswordDecription.Text = ClientStringFactory.GetString(539, ClientSettingsEnvironment.CurrentLanguage);
        }
    }
    void ChangeControlsLanguage()
    {
        this.Text = ServerStringFactory.GetString(223, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.groupBox_AdditionalParameters_AdditionalNetworkParameters.Text = ServerStringFactory.GetString(220, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_AdditionalNetworkParameters_MaxConnections.Text = ServerStringFactory.GetString(224, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_AdditionalNetworkParameters_MaxConnectionsPerAccount.Text = ServerStringFactory.GetString(225, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
    }
    private void button_PasswordVerivicationForm_LoginWithOutPassword_Click(object sender, System.EventArgs e)
    {
        if (CallerID == 0)
        {
            if (DialogResult.No == MessageBox.Show(ServerStringFactory.GetString(123, ServerSettingsEnvironment.CurrentLanguage), ServerStringFactory.GetString(1, ServerSettingsEnvironment.CurrentLanguage), MessageBoxButtons.YesNo, MessageBoxIcon.Question))
            {
                this.DialogResult = DialogResult.None;

                return;
            }

            try
            {
                this.DialogResult = DialogResult.Ignore;

                new YakSysRctServerV110XMLConfigImporter().InitMainServerSettingsXmlDB();
                new YakSysRctServerV110XMLConfigImporter().InitCommonSecuritySettingsXmlDB();

                bool_NeedToClose = true;

                this.Close();
            }

            catch (Exception)
            {
            }
        }

        else
        {
            if (DialogResult.No == MessageBox.Show(ClientStringFactory.GetString(540, ClientSettingsEnvironment.CurrentLanguage), ClientStringFactory.GetString(1, ClientSettingsEnvironment.CurrentLanguage), MessageBoxButtons.YesNo, MessageBoxIcon.Question))
            {
                this.DialogResult = DialogResult.None;

                return;
            }

            try
            {
                this.DialogResult = DialogResult.Ignore;

                new YakSysRctClientV110XMLConfigImporter().InitProxyServersSettingsXmlDB();
                new YakSysRctClientV110XMLConfigImporter().InitMainClientSettingsXmlDB();

                bool_NeedToClose = true;

                this.Close();
            }

            catch (Exception)
            {
            }
        }
    }
    void ServerUINRegisteredEventProcessing(ulong ulong_RegisteredUIN)
    {
        this.Invoke((MethodInvoker) delegate
        {
            MessageBox.Show(ServerStringFactory.GetString(798, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage) + ulong_RegisteredUIN.ToString());

            CSP.CommonNetworkEvents.ServerUINRegisteredEvent -= ServerUINRegisteredEventProcessing;
        });

        this.Close();
    }
    public void InitMainServerXmlDB()
    {
        try
        {
            DataRow dataRow_NewRecord = null;

            DataSet_ConnectingServiceDB.MainSettingsDataTable mainSettingsDataTable_obj = ConnectingServiceDB.MainSettings;

            ConnectingServiceDB.MainSettings.Clear();

            dataRow_NewRecord = ConnectingServiceDB.MainSettings.NewRow();

            dataRow_NewRecord.ItemArray.Initialize();

            dataRow_NewRecord[mainSettingsDataTable_obj.IDColumn] = 0;

            dataRow_NewRecord[mainSettingsDataTable_obj.ServerPortColumn] = 5545;

            dataRow_NewRecord[mainSettingsDataTable_obj.AppVersionColumn] = "0.1.0";

            dataRow_NewRecord[mainSettingsDataTable_obj.ShowToolTipsColumn]         = true;
            dataRow_NewRecord[mainSettingsDataTable_obj.ShowAdvancedSettingsColumn] = false;

            dataRow_NewRecord[mainSettingsDataTable_obj.AutoRunColumn]                   = false;
            dataRow_NewRecord[mainSettingsDataTable_obj.StartServerAtRunColumn]          = false;
            dataRow_NewRecord[mainSettingsDataTable_obj.MinimizeToNotifyAreaAtRunColumn] = false;
            dataRow_NewRecord[mainSettingsDataTable_obj.ShowIconInNotifyAreaColumn]      = true;

            dataRow_NewRecord[mainSettingsDataTable_obj.MaxConnectionsColumn]          = 255;
            dataRow_NewRecord[mainSettingsDataTable_obj.MaxConnectionPerAccountColumn] = 255;

            dataRow_NewRecord[mainSettingsDataTable_obj.PromptPasswordAfterUnHideColumn] = false;

            dataRow_NewRecord[mainSettingsDataTable_obj.IsClientAccessRestrictionRuleEnableColumn] = false;
            dataRow_NewRecord[mainSettingsDataTable_obj.IsServerAccessRestrictionRuleEnableColumn] = false;

            dataRow_NewRecord[mainSettingsDataTable_obj.CurrentAppLanguageColumn] = MainForm.CurrentLanguage;

            dataRow_NewRecord[mainSettingsDataTable_obj.ActivateHiddenModeAtStartUpColumn] = false;

            ConnectingServiceDB.MainSettings.Rows.Add(dataRow_NewRecord);
        }
        catch (Exception e)
        {
            if (File.Exists("ConnectingServiceDB"))
            {
                File.Delete("ConnectingServiceDB");
            }

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

            return;
        }
    }
    public void ChangeControlsLanguage()
    {
        this.Text = ServerStringFactory.GetString(117, ServerSettingsEnvironment.CurrentLanguage);

        this.label_PasswordPromptForm_Password.Text = ServerStringFactory.GetString(16, ServerSettingsEnvironment.CurrentLanguage);

        this.label_PasswordPromptForm_Descpription.Text = ServerStringFactory.GetString(151, ServerSettingsEnvironment.CurrentLanguage);

        this.button_PasswordPromptForm_Cancel.Text = ServerStringFactory.GetString(86, ServerSettingsEnvironment.CurrentLanguage);

        this.button_PasswordPromptForm_Accept.Text = ServerStringFactory.GetString(119, ServerSettingsEnvironment.CurrentLanguage);
    }
Exemplo n.º 15
0
    void ChangeControlsLanguage()
    {
        this.Text = ServerStringFactory.GetString(180, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_NetworkInformation_IPAddress.Text  = ServerStringFactory.GetString(185, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_NetworkInformation_MACAddress.Text = ServerStringFactory.GetString(186, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_Statistic_BytesReceived.Text       = ServerStringFactory.GetString(188, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_Statistic_BytesSent.Text           = ServerStringFactory.GetString(187, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_Statistic_ConnectedAt.Text         = ServerStringFactory.GetString(183, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.groupBox_ActiveConnectionDetails_NetworkInformation.Text = ServerStringFactory.GetString(184, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.groupBox_ActiveConnectionDetails_Statistic.Text          = ServerStringFactory.GetString(171, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
    }
    void SetLanguageSettings()
    {
        this.groupBox_CSPForm_ServerAuthSettings.Text                = ServerStringFactory.GetString(778, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.button_CSPForm_ServerAuth_RegisterNewUIN.Text           = ServerStringFactory.GetString(768, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_CSPForm_ServerAuth_ConnectionStatus.Text          = ServerStringFactory.GetString(777, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.button_CSPForm_ServerAuth_Connect.Text                  = ServerStringFactory.GetString(776, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_CSPForm_ServerAuth_CustomCSPServicePort.Text      = ServerStringFactory.GetString(8, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_CSPForm_ServerAuth_CustomCSPServiceIPAddress.Text = ServerStringFactory.GetString(763, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.checkBox_ServerAuthSettings_UseCommonJSCSPService.Text  = ServerStringFactory.GetString(764, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_CSPForm_ServerAuth_CSPLoginPassword.Text          = ServerStringFactory.GetString(775, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_CSPForm_ServerAuth_CSPLoginUIN.Text               = ServerStringFactory.GetString(767, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.textBox_CSPForm_ServerAuth_ConnectionStatus.Text        = ServerStringFactory.GetString(780, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.checkBox_ServerAuthSettings_ConnectAtStartUp.Text       = ServerStringFactory.GetString(784, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.checkBox_ServerAuthSettings_HideServerIP.Text           = ServerStringFactory.GetString(782, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.checkBox_ServerAuthSettings_IsServerPublic.Text         = ServerStringFactory.GetString(783, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.checkBox_ServerAuthSettings_KeepConnectionAlive.Text    = ServerStringFactory.GetString(785, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

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

        this.groupBox_ChangeUINAccountState_AccountControl.Text       = ServerStringFactory.GetString(774, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_ChangeUINAccountState_NewAccountState.Text         = ServerStringFactory.GetString(771, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_ChangeUINAccountState_UINActivationCode.Text       = ServerStringFactory.GetString(786, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_ChangeUINAccountState_Status.Text                  = ServerStringFactory.GetString(777, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.button_ChangeUINAccountState_ProcessNewAccountState.Text = ServerStringFactory.GetString(713, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_ChangeUINAccountState_UIN.Text = ServerStringFactory.GetString(767, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_ChangeUINAccountState_CustomCSPServicePort.Text      = ServerStringFactory.GetString(8, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_ChangeUINAccountState_CustomCSPServiceIPAddress.Text = ServerStringFactory.GetString(763, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.label_ChangeUINAccountState_Password.Text = ServerStringFactory.GetString(775, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.checkBox_ChangeUINAccountState_UseCommonJSCSPService.Text = ServerStringFactory.GetString(764, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.checkBox_ChangeUINAccountState_GetActivationCode.Text     = ServerStringFactory.GetString(769, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
        this.textBox_ChangeUINAccountState_Status.Text = ServerStringFactory.GetString(780, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        int int_SelectedItemIndex = this.comboBox_ChangeUINAccountState_NewAccountState.SelectedIndex;

        this.comboBox_ChangeUINAccountState_NewAccountState.Items.Clear();
        this.comboBox_ChangeUINAccountState_NewAccountState.Items.AddRange(new object[] {
            ServerStringFactory.GetString(772, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage),
            ServerStringFactory.GetString(773, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage)
        });

        if (int_SelectedItemIndex < 0)
        {
            int_SelectedItemIndex = 0;
        }

        this.comboBox_ChangeUINAccountState_NewAccountState.SelectedIndex = int_SelectedItemIndex;
    }
Exemplo n.º 17
0
    private void button_RestoreToDefaults_Click(object sender, System.EventArgs e)
    {
        if (MessageBox.Show(ServerStringFactory.GetString(110, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage),
                            ServerStringFactory.GetString(1, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage), MessageBoxButtons.YesNo) != DialogResult.Yes)
        {
            return;
        }

        LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_AutoRun = this.checkBox_SettingsForm_AutoRun.Checked = false;

        LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_StartServerAtRun = this.checkBox_SettingsForm_StartServerAtRun.Checked = false;

        LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_MinimizeToNotifyAreaAtRun = this.checkBox_SettingsForm_MinimizeToNotifyAreaAfterStart.Checked = false;

        LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CompressSettingsDataBase = this.checkBox_LocalSecurity_CompressSettingsDatabase.Checked = true;
        LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_EncryptSettingsDataBase  = this.checkBox_LocalSecurity_EncryptSettingsDatabase.Checked = false;
    }
    public void FillClientsEventsLog()
    {
        try
        {
            if (ConnectingServiceDB.ClientsEventsLog.Rows.Count < 0)
            {
                return;
            }

            DataRow dataRow_NewRecord = null;

            DataSet_ConnectingServiceDB.ClientsEventsLogDataTable eventsLogDataTable_obj = ConnectingServiceDB.ClientsEventsLog;

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

            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.ClientsEventsLog.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.NewClientsLogRecordEvent(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;
        }
    }
    public RegistrationForm()
    {
        InitializeComponent();

        this.label_Name.Text = ServerStringFactory.GetString(75, MainForm.CurrentLanguage);

        this.Text = this.groupBox_KeyApply.Text = ServerStringFactory.GetString(76, MainForm.CurrentLanguage);

        this.label_RegistrationNumber.Text = ServerStringFactory.GetString(77, MainForm.CurrentLanguage);

        this.richTextBox_RegInfo.Text = ServerStringFactory.GetString(78, MainForm.CurrentLanguage);

        this.button_Apply.Text = ServerStringFactory.GetString(79, MainForm.CurrentLanguage);

        this.button_BuyOnline.Text = ServerStringFactory.GetString(80, MainForm.CurrentLanguage);

        this.button_ContinueUnregistered.Text = ServerStringFactory.GetString(81, MainForm.CurrentLanguage);
    }
Exemplo n.º 20
0
    public RegistrationForm()
    {
        InitializeComponent();

        this.label_Name.Text = ServerStringFactory.GetString(75, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.Text = this.groupBox_KeyApply.Text = ServerStringFactory.GetString(76, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_RegistrationNumber.Text = ServerStringFactory.GetString(77, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.richTextBox_RegInfo.Text = ServerStringFactory.GetString(78, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.button_Apply.Text = ServerStringFactory.GetString(79, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.button_BuyOnline.Text = ServerStringFactory.GetString(80, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.button_ContinueUnregistered.Text = ServerStringFactory.GetString(81, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);
    }
    public AboutForm()
    {
        InitializeComponent();

        this.richTextBox_About.Text = ServerStringFactory.GetString(2, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.Text = ServerStringFactory.GetString(3, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.button_BuyNow.Text = ServerStringFactory.GetString(80, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.groupBox_Contacts.Text = ServerStringFactory.GetString(89, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_Title.Text = ServerStringFactory.GetString(90, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.groupBox_RegistrationInformation.Text = ServerStringFactory.GetString(91, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_ProductCopyOwner.Text = ServerStringFactory.GetString(92, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_ProductSerialNumber.Text = ServerStringFactory.GetString(93, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.button_ActivateSerialNumber.Text = ServerStringFactory.GetString(94, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

        this.label_ProductNotRegistered.Text = ServerStringFactory.GetString(95, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);


        if (LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_IsProductRegistered == true)
        {
            this.button_BuyNow.Visible = this.button_ActivateSerialNumber.Visible = false;

            this.textBox_ProductCopyOwner.Text    = LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_ProductLicenceName;
            this.textBox_ProductSerialNumber.Text = LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_ProductSerialNumber;
        }

        else
        {
            this.textBox_ProductCopyOwner.Visible = this.textBox_ProductSerialNumber.Visible = false;

            this.label_ProductCopyOwner.Visible = this.label_ProductSerialNumber.Visible = false;

            this.label_ProductNotRegistered.Visible = true;
        }

        this.label_ProductNotRegistered.Select();
    }
    public AboutForm()
    {
        InitializeComponent();

        this.richTextBox_About.Text = ServerStringFactory.GetString(2, MainForm.CurrentLanguage);

        this.Text = ServerStringFactory.GetString(3, MainForm.CurrentLanguage);

        this.button_BuyNow.Text = ServerStringFactory.GetString(80, MainForm.CurrentLanguage);

        this.groupBox_Contacts.Text = ServerStringFactory.GetString(89, MainForm.CurrentLanguage);

        this.label_Title.Text = ServerStringFactory.GetString(90, MainForm.CurrentLanguage);

        this.groupBox_RegistrationInformation.Text = ServerStringFactory.GetString(91, MainForm.CurrentLanguage);

        this.label_ProductCopyOwner.Text = ServerStringFactory.GetString(92, MainForm.CurrentLanguage);

        this.label_ProductSerialNumber.Text = ServerStringFactory.GetString(93, MainForm.CurrentLanguage);

        this.button_ActivateSerialNumber.Text = ServerStringFactory.GetString(94, MainForm.CurrentLanguage);

        this.label_ProductNotRegistered.Text = ServerStringFactory.GetString(95, MainForm.CurrentLanguage);


        if (CommonEnvironment.IsProductRegistered == true)
        {
            this.button_BuyNow.Visible = this.button_ActivateSerialNumber.Visible = false;

            this.textBox_ProductCopyOwner.Text    = CommonEnvironment.ProductLicenceName;
            this.textBox_ProductSerialNumber.Text = CommonEnvironment.ProductSerialNumber;
        }

        else
        {
            this.textBox_ProductCopyOwner.Visible = this.textBox_ProductSerialNumber.Visible = false;

            this.label_ProductCopyOwner.Visible = this.label_ProductSerialNumber.Visible = false;

            this.label_ProductNotRegistered.Visible = true;
        }

        this.label_ProductNotRegistered.Select();
    }
    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, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage),
                            ServerStringFactory.GetString(1, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage), MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

            return;
        }

        for (int int_intCycleCount = 0; int_intCycleCount != LocalObjCopy.obj_NetworkSecurity_UserAccount.RemotingWrapper_UsersAccounts.Count; int_intCycleCount++)
        {
            if (LocalObjCopy.obj_NetworkSecurity_UserAccount.RemotingWrapper_UsersAccounts[int_intCycleCount].Login == this.textBox_UsersAccountsManagerForm_Login.Text)
            {
                MessageBox.Show(ServerStringFactory.GetString(61, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage),
                                ServerStringFactory.GetString(1, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage), MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

                return;
            }
        }

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

            return;
        }

        DateTime dateTime_CreationTime = DateTime.Now;

        if (LocalObjCopy.obj_NetworkSecurity.RemotingWrapper_AddNewUser(this.textBox_UsersAccountsManagerForm_UserName.Text, this.textBox_UsersAccountsManagerForm_Login.Text, this.textBox_UsersAccountsManagerForm_NewPassword.Text, dateTime_CreationTime, true))
        {
            LocalObjCopy.obj_NetworkSecurity.RemotingWrapper_StoreUserAccountToDB(this.textBox_UsersAccountsManagerForm_UserName.Text, this.textBox_UsersAccountsManagerForm_Login.Text, this.textBox_UsersAccountsManagerForm_NewPassword.Text, this.textBox_UsersAccountsManagerForm_FirstName.Text, this.textBox_UsersAccountsManagerForm_LastName.Text, this.textBox_UsersAccountsManagerForm_MiddleName.Text, this.textBox_UsersAccountsManagerForm_EMailAddress.Text, this.textBox_UsersAccountsManagerForm_ICQ.Text, this.textBox_UsersAccountsManagerForm_Company.Text, this.textBox_UsersAccountsManagerForm_WorkPhone.Text, this.textBox_UsersAccountsManagerForm_HomePhome.Text, this.textBox_UsersAccountsManagerForm_PrivateCellular.Text, dateTime_CreationTime, true);

            LocalObjCopy.obj_YakSysServerLog.RemotingWrapper_InsertDataToLog(ServerStringFactory.GetString(44, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage), dateTime_CreationTime.ToShortDateString(), dateTime_CreationTime.ToLongTimeString(),
                                                                             ServerStringFactory.GetString(1, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage), ServerStringFactory.GetString(45, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage) + this.textBox_UsersAccountsManagerForm_UserName.Text);
        }

        this.Close();
    }
Exemplo n.º 24
0
    private void button_RestoreToDefaults_Click(object sender, System.EventArgs e)
    {
        if (MessageBox.Show(ServerStringFactory.GetString(110, MainForm.CurrentLanguage),
                            ServerStringFactory.GetString(1, MainForm.CurrentLanguage), MessageBoxButtons.YesNo) != DialogResult.Yes)
        {
            return;
        }

        CommonEnvironment.AutoRun = this.checkBox_SettingsForm_AutoRun.Checked = false;

        CommonEnvironment.StartServerAtRun = this.checkBox_SettingsForm_StartServerAtRun.Checked = false;

        CommonEnvironment.MinimizeToNotifyAreaAtRun = this.checkBox_SettingsForm_MinimizeToNotifyAreaAfterStart.Checked = false;

        CommonEnvironment.ActivateHiddenModeAtStartUp = this.checkBox_SettingsForm_ActivateHiddenMode.Checked = false;

        CommonEnvironment.CompressSettingsDataBase = this.checkBox_LocalSecurity_CompressSettingsDatabase.Checked = true;
        CommonEnvironment.EncryptSettingsDataBase  = this.checkBox_LocalSecurity_EncryptSettingsDatabase.Checked = false;
    }
    public void InitSMTPSettingsXmlDB()
    {
        try
        {
            ///////////////////////////////////////////////////////////////////////////////////////////////////////

            DataRow dataRow_NewRecord = null;

            DataSet_ConnectingServiceDB.SMTPSettingsDataTable smtpSettingsDataTable_obj = ConnectingServiceDB.SMTPSettings;

            ConnectingServiceDB.SMTPSettings.Clear();

            dataRow_NewRecord = ConnectingServiceDB.SMTPSettings.NewRow();

            dataRow_NewRecord.ItemArray.Initialize();

            dataRow_NewRecord[smtpSettingsDataTable_obj.IDColumn] = 0;

            dataRow_NewRecord[smtpSettingsDataTable_obj.SMTP_ServerColumn] = string.Empty;
            dataRow_NewRecord[smtpSettingsDataTable_obj.SMTP_PortColumn]   = 25;

            dataRow_NewRecord[smtpSettingsDataTable_obj.SenderMailAddressColumn] = string.Empty;

            dataRow_NewRecord[smtpSettingsDataTable_obj.SMTP_LoginColumn]    = string.Empty;
            dataRow_NewRecord[smtpSettingsDataTable_obj.SMTP_PasswordColumn] = string.Empty;

            ConnectingServiceDB.SMTPSettings.Rows.Add(dataRow_NewRecord);

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

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

            return;
        }
    }
    private void button_Apply_Click(object sender, System.EventArgs e)
    {
        if (textBox_Name.Text.Length < 1 || textBox_RegistrationNumber.Text.Length < 1)
        {
            MessageBox.Show(ServerStringFactory.GetString(82, MainForm.CurrentLanguage), ServerStringFactory.GetString(1, MainForm.CurrentLanguage));

            return;
        }
        //--

        /*
         * if (ObjCopy.obj_MainForm.CheckSN(textBox_Name.Text, textBox_RegistrationNumber.Text) == 1)
         *      {
         *              MessageBox.Show(ServerStringFactory.GetString(83, MainForm.CurrentLanguage), ServerStringFactory.GetString(1, MainForm.CurrentLanguage));
         *
         *              Close();
         *
         *              return;
         *      }
         *
         *      else MessageBox.Show(ServerStringFactory.GetString(84, MainForm.CurrentLanguage), ServerStringFactory.GetString(1, MainForm.CurrentLanguage));*/
    }
Exemplo n.º 27
0
    private void button_PasswordVerivicationForm_LoginWithOutPassword_Click(object sender, System.EventArgs e)
    {
        if (DialogResult.No == MessageBox.Show(ServerStringFactory.GetString(123, CurrentLanguage), ServerStringFactory.GetString(1, MainForm.CurrentLanguage), MessageBoxButtons.YesNo, MessageBoxIcon.Question))
        {
            return;
        }

        try
        {
            File.Delete("ConnectingServiceDB");

            new ConnectingServiceDBSupplier().InitMainServerXmlDB();

            bool_NeedToClose = true;

            this.Close();
        }

        catch (Exception)
        {
        }
    }
    private void comboBox_ChangeUINAccountState_NewAccountState_SelectedIndexChanged(object sender, EventArgs e)
    {
        bool bool_EnableUINActivationControls = true;

        if (this.comboBox_ChangeUINAccountState_NewAccountState.SelectedIndex == 0)
        {
            this.button_ChangeUINAccountState_ProcessNewAccountState.Text = ServerStringFactory.GetString(772, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

            this.checkBox_ChangeUINAccountState_GetActivationCode.Enabled = false;
        }
        else
        {
            this.button_ChangeUINAccountState_ProcessNewAccountState.Text = ServerStringFactory.GetString(773, LocalObjCopy.obj_ServerSettingsEnvironment.RemotingWrapper_CurrentLanguage);

            bool_EnableUINActivationControls = false;

            this.checkBox_ChangeUINAccountState_GetActivationCode.Enabled = true;
        }

        this.textBox_ChangeUINAccountState_UINActivationCode.Enabled   =
            this.label_ChangeUINAccountState_UINActivationCode.Enabled = bool_EnableUINActivationControls;
    }
Exemplo n.º 29
0
    void ChangeControlsLanguage()
    {
        this.Text = ServerStringFactory.GetString(65, MainForm.CurrentLanguage);

        this.groupBox_SettingsForm_Language.Text = ServerStringFactory.GetString(66, MainForm.CurrentLanguage);

        this.label_SettingsForm_SelectLanguage.Text = ServerStringFactory.GetString(118, MainForm.CurrentLanguage);

        this.comboBox_SettingsForm_Language.SelectedIndex = MainForm.CurrentLanguage;

        this.checkBox_SettingsForm_AutoRun.Text = ServerStringFactory.GetString(73, MainForm.CurrentLanguage);

        this.checkBox_SettingsForm_StartServerAtRun.Text = ServerStringFactory.GetString(71, MainForm.CurrentLanguage);

        this.checkBox_SettingsForm_MinimizeToNotifyAreaAfterStart.Text = ServerStringFactory.GetString(72, MainForm.CurrentLanguage);


        this.groupBox_SettingsForm_StartUpParameters.Text = ServerStringFactory.GetString(218, MainForm.CurrentLanguage);


        this.groupBox_LocalSecurity_SecurityParameters.Text = ServerStringFactory.GetString(107, MainForm.CurrentLanguage);
        this.groupBox_LocalSecurity_UsedPassword.Text       = ServerStringFactory.GetString(106, MainForm.CurrentLanguage);

        this.label_LocalSecurity_NewPassword.Text       = ServerStringFactory.GetString(104, MainForm.CurrentLanguage);
        this.label_LocalSecurity_ConfirmedPassword.Text = ServerStringFactory.GetString(105, MainForm.CurrentLanguage);

        this.button_LocalSecurity_NewPassword.Text = ServerStringFactory.GetString(102, MainForm.CurrentLanguage);
        this.button_LocalSecurity_SetPassword.Text = ServerStringFactory.GetString(103, MainForm.CurrentLanguage);

        this.checkBox_LocalSecurity_CompressSettingsDatabase.Text = ServerStringFactory.GetString(101, MainForm.CurrentLanguage);
        this.checkBox_LocalSecurity_EncryptSettingsDatabase.Text  = ServerStringFactory.GetString(100, MainForm.CurrentLanguage);

        this.button_RestoreToDefaults.Text = ServerStringFactory.GetString(108, MainForm.CurrentLanguage);

        this.button_SettingsForm_Cancel.Text = ServerStringFactory.GetString(86, MainForm.CurrentLanguage);

        this.checkBox_SettingsForm_ActivateHiddenMode.Text = ServerStringFactory.GetString(114, MainForm.CurrentLanguage);
    }
Exemplo n.º 30
0
    private void button_LocalSecurity_SetPassword_Click(object sender, System.EventArgs e)
    {
        if (this.textBox_LocalSecurity_NewPassword.Text.Length < 6)
        {
            MessageBox.Show(ServerStringFactory.GetString(116, MainForm.CurrentLanguage), ServerStringFactory.GetString(1, MainForm.CurrentLanguage), MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

            return;
        }

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

            return;
        }

        CommonEnvironment.LocalSecurityPassword = this.textBox_LocalSecurity_NewPassword.Text;

        this.button_LocalSecurity_SetPassword.Enabled = false;
        this.button_LocalSecurity_NewPassword.Enabled = true;

        SetPasswordInputEnableState(false);
    }