Ejemplo n.º 1
0
        void SetAppSettings()
        {
            this.txtCtiServerHostname.Text = optset.Host;
            this.txtCtiServerPort.Text     = optset.Port.ToString();
            this.txtCtiServerTimeout.Text  = optset.SocketTimeout.ToString();

            this.txtClientExten.Text          = optset.PhoneExt;
            this.txtClientUsername.Text       = optset.Username;
            this.txtClientPassword.Text       = optset.Password;
            this.cboCalleridShow.Checked      = optset.TriggerCallerId;
            this.txtCalleridTimeout.Text      = optset.CallerIdTimeout.ToString();
            this.txtCalleridFadeoutSpeed.Text = optset.CalleridFadeSpeed.ToString();

            this.txtMysqlHost.Text        = optset.MySQLHost;
            this.txtMysqlUser.Text        = optset.MySQLUserName;
            this.txtMysqlDatabase.Text    = optset.MySQLDatabase;
            this.txtMysqlPassword.Text    = optset.MySQLPassword;
            this.txtMysqlPort.Text        = this.optset.MySQLPort.ToString();
            this.chkIBAddrBar.Checked     = this.optset.ShowAddressBar;
            this.chkIBAllowUrls.Checked   = this.optset.CanInsertUrls;
            this.chkIBCloseChilds.Checked = this.optset.CloseChildsOnClose;
            this.chkIBShowGo.Checked      = this.optset.ShowGoButton;
            this.chkIBStatusBar.Checked   = this.optset.ShowStatusBar;

            this.chkMinimizeOnStart.Checked  = this.optset.MinimizeOnStart;
            this.chkStartWithWindows.Checked = false;
            this.txtUIFont.Text = this.optset.InterfaceFont.ToString();

            this.inoutcontextes             = new InOutContext();
            this.initial_inoutcontextes     = new InOutContext();
            initial_inoutcontextes.Inbound  = (CTIContextCollection)optset.CTIContextes.Clone();
            initial_inoutcontextes.Outbound = (CTIOutboundContextCollection)optset.CTIOutboundContextes.Clone();

            inoutcontextes.Inbound  = (CTIContextCollection)optset.CTIContextes;
            inoutcontextes.Outbound = (CTIOutboundContextCollection)optset.CTIOutboundContextes;



            this.propInbound.SelectedObject = inoutcontextes;
            this.propInbound.ExpandAllGridItems();
        }
Ejemplo n.º 2
0
        void SetAppSettings()
        {
            this.txtCtiServerHostname.Text = optset.Host;
            this.txtCtiServerPort.Text = optset.Port.ToString();
            this.txtCtiServerTimeout.Text = optset.SocketTimeout.ToString();

            this.txtClientExten.Text = optset.PhoneExt;
            this.txtClientUsername.Text = optset.Username;
            this.txtClientPassword.Text = optset.Password;
            this.cboCalleridShow.Checked = optset.TriggerCallerId;
            this.txtCalleridTimeout.Text = optset.CallerIdTimeout.ToString();
            this.txtCalleridFadeoutSpeed.Text = optset.CalleridFadeSpeed.ToString();

            this.txtMysqlHost.Text = optset.MySQLHost;
            this.txtMysqlUser.Text = optset.MySQLUserName;
            this.txtMysqlDatabase.Text = optset.MySQLDatabase;
            this.txtMysqlPassword.Text = optset.MySQLPassword;
            this.txtMysqlPort.Text = this.optset.MySQLPort.ToString();
            this.chkIBAddrBar.Checked = this.optset.ShowAddressBar;
            this.chkIBAllowUrls.Checked = this.optset.CanInsertUrls;
            this.chkIBCloseChilds.Checked = this.optset.CloseChildsOnClose;
            this.chkIBShowGo.Checked = this.optset.ShowGoButton;
            this.chkIBStatusBar.Checked = this.optset.ShowStatusBar;

            this.chkMinimizeOnStart.Checked = this.optset.MinimizeOnStart;
            this.chkStartWithWindows.Checked = false;
            this.txtUIFont.Text = this.optset.InterfaceFont.ToString();

            this.inoutcontextes = new InOutContext();
            this.initial_inoutcontextes = new InOutContext();
            initial_inoutcontextes.Inbound = (CTIContextCollection)optset.CTIContextes.Clone();
            initial_inoutcontextes.Outbound = (CTIOutboundContextCollection)optset.CTIOutboundContextes.Clone();

            inoutcontextes.Inbound = (CTIContextCollection)optset.CTIContextes;
            inoutcontextes.Outbound = (CTIOutboundContextCollection)optset.CTIOutboundContextes;

            this.propInbound.SelectedObject = inoutcontextes;
            this.propInbound.ExpandAllGridItems();
        }