コード例 #1
0
ファイル: RSNewProfile.cs プロジェクト: sandatan/reportsmart
            public CSMTPProfSMTP() : base()
            {
                this.Name = "SMTP";

                _lServer          = new Label();
                _lServer.Name     = "lServer";
                _lServer.Location = new Point(lDescription.Left + ControlProperties.ButtonWidth, lDescription.Bottom + ControlProperties.ControlSpacing);
                _lServer.Size     = ControlProperties.TextCtlSize();

                _eServer          = new CExtendedTextBox();
                _eServer.Name     = "eServer";
                _eServer.Location = new Point(_lServer.Left, _lServer.Bottom);
                _eServer.Size     = ControlProperties.TextCtlSize();

                _lPort          = new Label();
                _lPort.Name     = "lPort";
                _lPort.Location = new Point(lDescription.Left + ControlProperties.ButtonWidth, _eServer.Bottom + ControlProperties.HeaderSpacing);
                _lPort.Size     = ControlProperties.TextCtlSize();

                _ePort          = new CExtendedTextBox();
                _ePort.Name     = "ePort";
                _ePort.Location = new Point(_lPort.Left, _lPort.Bottom);
                _ePort.Size     = ControlProperties.TextCtlSize();

                this.Controls.Add(_lServer);
                this.Controls.Add(_eServer);
                this.Controls.Add(_lPort);
                this.Controls.Add(_ePort);
            }
コード例 #2
0
ファイル: RSNewProfile.cs プロジェクト: sandatan/reportsmart
            public CSMTPProfUser() : base()
            {
                this.Name = "Personal";

                _lName          = new Label();
                _lName.Name     = "lName";
                _lName.Location = new Point(lDescription.Left + ControlProperties.ButtonWidth, lDescription.Bottom + ControlProperties.ControlSpacing);
                _lName.Size     = ControlProperties.TextCtlSize();

                _eName          = new CExtendedTextBox();
                _eName.Name     = "eName";
                _eName.Location = new Point(_lName.Left, _lName.Bottom);
                _eName.Size     = ControlProperties.TextCtlSize();

                _lEmail          = new Label();
                _lEmail.Name     = "lEmail";
                _lEmail.Location = new Point(lDescription.Left + ControlProperties.ButtonWidth, _eName.Bottom + ControlProperties.HeaderSpacing);
                _lEmail.Size     = ControlProperties.TextCtlSize();

                _eEmail          = new CExtendedTextBox();
                _eEmail.Name     = "eEmail";
                _eEmail.Location = new Point(_lEmail.Left, _lEmail.Bottom);
                _eEmail.Size     = ControlProperties.TextCtlSize();

                this.Controls.Add(_lName);
                this.Controls.Add(_eName);
                this.Controls.Add(_lEmail);
                this.Controls.Add(_eEmail);
            }
コード例 #3
0
ファイル: RSNewProfile.cs プロジェクト: sandatan/reportsmart
            public CSMTPProfSec() : base()
            {
                this.Name = "Security";

                _ctlAuth          = new CheckBox();
                _ctlAuth.Name     = "ctlAuth";
                _ctlAuth.Size     = ControlProperties.TextCtlSize();
                _ctlAuth.Location = new Point(lDescription.Left + ControlProperties.ButtonWidth, lDescription.Bottom + ControlProperties.ControlSpacing);

                _lUserName          = new Label();
                _lUserName.Name     = "lUserName";
                _lUserName.Location = new Point(_ctlAuth.Left, _ctlAuth.Bottom + ControlProperties.ControlSpacing);
                _lUserName.Size     = ControlProperties.TextCtlSize();

                _eUserName          = new CExtendedTextBox();
                _eUserName.Name     = "eUserName";
                _eUserName.Location = new Point(_lUserName.Left, _lUserName.Bottom);
                _eUserName.Size     = ControlProperties.TextCtlSize();

                _lPassword          = new Label();
                _lPassword.Name     = "lPasswd";
                _lPassword.Location = new Point(lDescription.Left + ControlProperties.ButtonWidth, _eUserName.Bottom + ControlProperties.HeaderSpacing);
                _lPassword.Size     = ControlProperties.TextCtlSize();

                _ePassword              = new CExtendedTextBox();
                _ePassword.Name         = "ePasswd";
                _ePassword.Location     = new Point(_lPassword.Left, _lPassword.Bottom);
                _ePassword.Size         = ControlProperties.TextCtlSize();
                _ePassword.Font         = CReportSmartCore.Core.PasswordFont;
                _ePassword.PasswordChar = '—';

                _ctlSSL          = new CheckBox();
                _ctlSSL.Name     = "ctlSSL";
                _ctlSSL.Size     = ControlProperties.TextCtlSize();
                _ctlSSL.Location = new Point(lDescription.Left + ControlProperties.ButtonWidth, _ePassword.Bottom + ControlProperties.HeaderSpacing);

                _ctlAuth.Click += new EventHandler(EH_AuthClick);

                this.Controls.Add(_lUserName);
                this.Controls.Add(_eUserName);
                this.Controls.Add(_lPassword);
                this.Controls.Add(_ePassword);
                this.Controls.Add(_ctlAuth);
                this.Controls.Add(_ctlSSL);
            }
コード例 #4
0
ファイル: RSNewProfile.cs プロジェクト: sandatan/reportsmart
            public CSMTPProfGlobal() : base()
            {
                this.Name = "Global";

                this.SuspendLayout();

                _lProfileName          = new Label();
                _lProfileName.Name     = "lProfileName";
                _lProfileName.Location = new Point(lDescription.Left + ControlProperties.ButtonWidth, lDescription.Bottom + ControlProperties.ControlSpacing);
                _lProfileName.Size     = ControlProperties.TextCtlSize();

                _eProfileName          = new CExtendedTextBox();
                _eProfileName.Name     = "eProfileName";
                _eProfileName.Location = new Point(_lProfileName.Left, _lProfileName.Bottom);
                _eProfileName.Size     = ControlProperties.TextCtlSize();

                this.Controls.Add(_lProfileName);
                this.Controls.Add(_eProfileName);

                this.ResumeLayout();
            }
コード例 #5
0
ファイル: RSSetupLogin.cs プロジェクト: ahalassy/reportsmart
        public CdlgSetupLogin()
            : base()
        {
            this.Size = new Size(this.Size.Width, this.Size.Height + 64);
            this.SuspendLayout();
            this.Name = "dlgSetupLogin";

            _ctlSetLogon = new CheckBox();
            _ctlSetLogon.Name = "ctlSetLogon";
            _ctlSetLogon.Location = new Point(LABEL_MARGIN, CustomAreaTop);
            _ctlSetLogon.Size = new Size(CustomAreaWidth / 2, 24);

            _lName = new Label();
            _lName.Name = "lName";
            _lName.Location = new Point(LABEL_MARGIN, _ctlSetLogon.Top + _ctlSetLogon.Height + LABEL_MARGIN);
            _lName.Size = new Size((this.CustomAreaWidth - LABEL_MARGIN) / 2, 14);

            _lPassword = new Label();
            _lPassword.Name = "lPassword";
            _lPassword.Location = new Point(LABEL_MARGIN * 2 + _lName.Width, _ctlSetLogon.Top + _ctlSetLogon.Height + LABEL_MARGIN);
            _lPassword.Size = new Size((this.CustomAreaWidth - LABEL_MARGIN) / 2, 14);

            _eName = new CExtendedTextBox();
            _eName.Location = new Point(LABEL_MARGIN, _lName.Location.Y + _lName.Height + LABEL_MARGIN / 2);
            _eName.Size = _lName.Size;
            _eName.Name = "eName";

            _ePassword = new CExtendedTextBox();
            _ePassword.Location = new Point(_lPassword.Location.X, _lName.Location.Y + _lName.Height + LABEL_MARGIN / 2);
            _ePassword.Size = _lPassword.Size;
            _ePassword.Name = "ePassword";
            _ePassword.Font = RsViewEngine.PasswordFont;
            _ePassword.PasswordChar = '—';

            _ctlNoSave = new RadioButton();
            _ctlNoSave.Location = new Point(LABEL_MARGIN * 3, _eName.Location.Y + _eName.Height + LABEL_MARGIN);
            _ctlNoSave.Name = "ctlNoSave";
            _ctlNoSave.Size = new Size(_lName.Width, 24);

            _ctlSaveForThisReport = new RadioButton();
            _ctlSaveForThisReport.Location = new Point(LABEL_MARGIN * 3, _ctlNoSave.Location.Y + _ctlNoSave.Height);
            _ctlSaveForThisReport.Name = "ctlSaveForThisReport";
            _ctlSaveForThisReport.Size = new Size(_lName.Width, 24);

            _ctlSaveForDS = new RadioButton();
            _ctlSaveForDS.Location = new Point(LABEL_MARGIN * 3, _ctlSaveForThisReport.Location.Y + _ctlSaveForThisReport.Height);
            _ctlSaveForDS.Name = "ctlSaveForDS";
            _ctlSaveForDS.Size = new Size(_lName.Width, 24);

            this.Controls.Add(_ctlSetLogon);
            this.Controls.Add(_lName);
            this.Controls.Add(_lPassword);
            this.Controls.Add(_eName);
            this.Controls.Add(_ePassword);
            this.Controls.Add(_ctlNoSave);
            this.Controls.Add(_ctlSaveForThisReport);
            this.Controls.Add(_ctlSaveForDS);

            this.Shown += new EventHandler(EH_Shown);
            this._ctlSetLogon.CheckStateChanged += new EventHandler(EH_ChSetLogonState);
            this._ctlNoSave.CheckedChanged += new EventHandler(EH_CtlChange);
            this._ctlSaveForDS.CheckedChanged += new EventHandler(EH_CtlChange);
            this._ctlSaveForThisReport.TextChanged += new EventHandler(EH_CtlChange);
            this._ePassword.TextChanged += new EventHandler(EH_CtlChange);
            this._eName.TextChanged += new EventHandler(EH_CtlChange);

            this.ResumeLayout();
        }
コード例 #6
0
        public CdlgSetupLogin() : base()
        {
            this.Size = new Size(this.Size.Width, this.Size.Height + 64);
            this.SuspendLayout();
            this.Name = "dlgSetupLogin";

            _ctlSetLogon          = new CheckBox();
            _ctlSetLogon.Name     = "ctlSetLogon";
            _ctlSetLogon.Location = new Point(LABEL_MARGIN, CustomAreaTop);
            _ctlSetLogon.Size     = new Size(CustomAreaWidth / 2, 24);

            _lName          = new Label();
            _lName.Name     = "lName";
            _lName.Location = new Point(LABEL_MARGIN, _ctlSetLogon.Top + _ctlSetLogon.Height + LABEL_MARGIN);
            _lName.Size     = new Size((this.CustomAreaWidth - LABEL_MARGIN) / 2, 14);

            _lPassword          = new Label();
            _lPassword.Name     = "lPassword";
            _lPassword.Location = new Point(LABEL_MARGIN * 2 + _lName.Width, _ctlSetLogon.Top + _ctlSetLogon.Height + LABEL_MARGIN);
            _lPassword.Size     = new Size((this.CustomAreaWidth - LABEL_MARGIN) / 2, 14);

            _eName          = new CExtendedTextBox();
            _eName.Location = new Point(LABEL_MARGIN, _lName.Location.Y + _lName.Height + LABEL_MARGIN / 2);
            _eName.Size     = _lName.Size;
            _eName.Name     = "eName";

            _ePassword              = new CExtendedTextBox();
            _ePassword.Location     = new Point(_lPassword.Location.X, _lName.Location.Y + _lName.Height + LABEL_MARGIN / 2);
            _ePassword.Size         = _lPassword.Size;
            _ePassword.Name         = "ePassword";
            _ePassword.Font         = RsViewEngine.PasswordFont;
            _ePassword.PasswordChar = '—';

            _ctlNoSave          = new RadioButton();
            _ctlNoSave.Location = new Point(LABEL_MARGIN * 3, _eName.Location.Y + _eName.Height + LABEL_MARGIN);
            _ctlNoSave.Name     = "ctlNoSave";
            _ctlNoSave.Size     = new Size(_lName.Width, 24);

            _ctlSaveForThisReport          = new RadioButton();
            _ctlSaveForThisReport.Location = new Point(LABEL_MARGIN * 3, _ctlNoSave.Location.Y + _ctlNoSave.Height);
            _ctlSaveForThisReport.Name     = "ctlSaveForThisReport";
            _ctlSaveForThisReport.Size     = new Size(_lName.Width, 24);

            _ctlSaveForDS          = new RadioButton();
            _ctlSaveForDS.Location = new Point(LABEL_MARGIN * 3, _ctlSaveForThisReport.Location.Y + _ctlSaveForThisReport.Height);
            _ctlSaveForDS.Name     = "ctlSaveForDS";
            _ctlSaveForDS.Size     = new Size(_lName.Width, 24);

            this.Controls.Add(_ctlSetLogon);
            this.Controls.Add(_lName);
            this.Controls.Add(_lPassword);
            this.Controls.Add(_eName);
            this.Controls.Add(_ePassword);
            this.Controls.Add(_ctlNoSave);
            this.Controls.Add(_ctlSaveForThisReport);
            this.Controls.Add(_ctlSaveForDS);


            this.Shown += new EventHandler(EH_Shown);
            this._ctlSetLogon.CheckStateChanged    += new EventHandler(EH_ChSetLogonState);
            this._ctlNoSave.CheckedChanged         += new EventHandler(EH_CtlChange);
            this._ctlSaveForDS.CheckedChanged      += new EventHandler(EH_CtlChange);
            this._ctlSaveForThisReport.TextChanged += new EventHandler(EH_CtlChange);
            this._ePassword.TextChanged            += new EventHandler(EH_CtlChange);
            this._eName.TextChanged += new EventHandler(EH_CtlChange);


            this.ResumeLayout();
        }