Beispiel #1
0
        public bool LoadConfig()
        {
            this.textBoxOutputFolder.Text = Program.Context.ConfigMgr.Config.OutputFileFolder;
            this.textBoxExtension.Text    = Program.Context.ConfigMgr.Config.FileExtension;
            CodePageHelper.SetEncoding(this.comboBoxCodePage, Program.Context.ConfigMgr.Config.CodePageName);
            this.comboBoxOrganizeMode.SelectedIndex   = (int)Program.Context.ConfigMgr.Config.OrganizationMode;
            this.comboBoxProcessingType.SelectedIndex = (int)Program.Context.ConfigMgr.Config.MessageProcessingType;

            return(true);
        }
Beispiel #2
0
        public bool LoadConfig()
        {
            this.textBoxINFolder.Text                 = Program.Context.ConfigMgr.Config.FileInboundFolder;
            this.textBoxTimeInterval.Value            = (Decimal)Program.Context.ConfigMgr.Config.TimerInterval;
            this.comboBoxProcessingType.SelectedIndex = (int)Program.Context.ConfigMgr.Config.MessageProcessingType;
            this.textBoxFileExtension.Text            = Program.Context.ConfigMgr.Config.FileExtension;
            CodePageHelper.SetEncoding(this.comboBoxCodePage, Program.Context.ConfigMgr.Config.EncodeName);

            this.comboBoxDispose.Text      = Enum.GetName(typeof(FileDisposeType), Program.Context.ConfigMgr.Config.SourceFileDisposeType);
            this.textBoxDisposeFolder.Text = Program.Context.ConfigMgr.Config.FileOutboundFolder;

            return(true);
        }
Beispiel #3
0
        public bool LoadConfig()
        {
            this.textBoxIP.Text          = Program.Context.ConfigMgr.Config.SocketConfig.IPAddress;
            this.numericUpDownPort.Value = Program.Context.ConfigMgr.Config.SocketConfig.Port;
            CodePageHelper.SetEncoding(this.comboBoxCodePage, Program.Context.ConfigMgr.Config.SocketConfig.CodePageName);
            this.comboBoxCodePage.Enabled = Program.Context.ConfigMgr.Config.SocketConfig.CodePageCode < 0;

            //this.checkBoxMultipleSession.Checked = Program.Context.ConfigMgr.Config.SocketConfig.SocketClientType == SocketClientWithLongConnection.DEVICE_NAME;
            this.comboBoxProcessingType.SelectedIndex = (int)Program.Context.ConfigMgr.Config.MessageProcessingType;

            switch (Program.Context.ConfigMgr.Config.SocketConfig.SocketClientType)
            {
            case SocketClient.DEVICE_NAME:
                this.checkBoxDisableMLLP.Checked     = false;
                this.checkBoxMultipleSession.Checked = false;
                break;

            case SocketClientWithLongConnection.DEVICE_NAME:
                this.checkBoxDisableMLLP.Checked     = false;
                this.checkBoxMultipleSession.Checked = true;
                break;

            case SocketClientNoMLLP.DEVICE_NAME:
                this.checkBoxDisableMLLP.Checked     = true;
                this.checkBoxMultipleSession.Checked = false;
                break;

            case SocketClientWithLongConnectionNoMLLP.DEVICE_NAME:
                this.checkBoxDisableMLLP.Checked     = true;
                this.checkBoxMultipleSession.Checked = true;
                break;

            default:
                this.checkBoxMultipleSession.CheckState = CheckState.Indeterminate;
                this.checkBoxDisableMLLP.CheckState     = CheckState.Indeterminate;
                break;
            }

            return(true);
        }