protected override object CreateControlCore() {
     _hyperlinkEdit = new HyperLinkEdit();
     _hyperlinkEdit.MaskBox.Mask.MaskType=MaskType.RegEx;
     var maskProperties = _hyperlinkEdit.MaskBox.Mask;
     maskProperties.EditMask = UrlEmailMask;
     return _hyperlinkEdit;
 }
示例#2
0
        private void AddFLWSDownloadItem(MDModel_Table_Column _tc, DataRow TableRecordData)
        {
            if (_tc.ColumnDefine.TableColumn.DisplayLength >= 2)
            {
                this.RightPanel.Visible = false;
                this.LeftPanel.Visible  = true;
                this.LeftPanel.Dock     = DockStyle.Fill;
                this.LeftLabel.Text     = _tc.ColumnTitle;
                this.LeftMemo.Visible   = false;
                this.LeftText.Visible   = false;

                HyperLinkEdit _link = new HyperLinkEdit();
                _link.Properties.AutoHeight = false;
                _link.Dock = DockStyle.Fill;
                _link.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
                _link.Properties.Appearance.Options.UseTextOptions = true;
                this.LeftPanel.Controls.Add(_link);
                _link.BringToFront();
                _link.Text        = "下载法律文书";
                _link.Tag         = TableRecordData[_tc.ColumnAlias] + "," + _tc.ColumnDefine.TableColumn.RefWordTableName;
                _link.Click      += new EventHandler(FLWSAttachmentDownload_Click);
                this._blankLength = 0;
            }
            else
            {
                if (this.BlankLength == 2)
                {
                    this.LeftLabel.Text   = _tc.ColumnTitle;
                    this.LeftMemo.Visible = false;
                    this.LeftText.Visible = false;
                    HyperLinkEdit _link = new HyperLinkEdit();
                    _link.Properties.AutoHeight = false;
                    _link.Dock = DockStyle.Fill;
                    _link.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
                    _link.Properties.Appearance.Options.UseTextOptions = true;
                    this.LeftPanel.Controls.Add(_link);
                    _link.BringToFront();
                    _link.Text        = "下载法律文书";
                    _link.Tag         = TableRecordData[_tc.ColumnAlias] + "," + _tc.ColumnDefine.TableColumn.RefWordTableName;
                    _link.Click      += new EventHandler(FLWSAttachmentDownload_Click);
                    this._blankLength = 1;
                }
                else
                {
                    this.RightLabel.Text   = _tc.ColumnTitle;
                    this.RightText.Visible = false;
                    HyperLinkEdit _link = new HyperLinkEdit();
                    _link.Properties.AutoHeight = false;
                    _link.Dock = DockStyle.Fill;
                    _link.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
                    _link.Properties.Appearance.Options.UseTextOptions = true;
                    this.RightPanel.Controls.Add(_link);
                    _link.BringToFront();
                    _link.Text        = "下载法律文书";
                    _link.Tag         = TableRecordData[_tc.ColumnAlias] + "," + _tc.ColumnDefine.TableColumn.RefWordTableName;
                    _link.Click      += new EventHandler(FLWSAttachmentDownload_Click);
                    this._blankLength = 0;
                }
            }
        }
        protected override object CreateControlCore()
        {
            _hyperlinkEdit = new HyperLinkEdit();
            _hyperlinkEdit.MaskBox.Mask.MaskType = MaskType.RegEx;
            var maskProperties = _hyperlinkEdit.MaskBox.Mask;

            maskProperties.EditMask = UrlEmailMask;
            return(_hyperlinkEdit);
        }
示例#4
0
        private void GridView_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            GridView    gv = (GridView)sender;
            GridHitInfo hi = gv.CalcHitInfo(new Point(e.X, e.Y));

            if (hi.InRowCell)
            {
                RepositoryItemHyperLinkEdit repositoryItemHyperLinkEdit = hi.Column.ColumnEdit as RepositoryItemHyperLinkEdit;
                if (repositoryItemHyperLinkEdit != null)
                {
                    HyperLinkEdit editor = (HyperLinkEdit)repositoryItemHyperLinkEdit.CreateEditor();
                    editor.ShowBrowser(WinHyperLinkStringPropertyEditor.GetResolvedUrl(gv.GetRowCellValue(hi.RowHandle, hi.Column)));
                }
            }
        }
示例#5
0
        public void PopulateVerbs()
        {
            DesignerVerbCollection verbs = GetVerbs();

            if (verbs == null)
            {
                return;
            }
            UnsubscribeEvents();
            HyperLinkEdit oldEditor = null;
            HyperLinkEdit editor    = null;

            Controls.Clear();

            foreach (DesignerVerb verb in verbs)
            {
                oldEditor = editor;
                editor    = new HyperLinkEdit();
                editor.Properties.Appearance.BackColor = Color.Transparent;
                editor.Properties.BorderStyle          = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
                editor.CustomDisplayText += editor_CustomDisplayText;
                editor.OpenLink          += editor_OpenLink;
                Controls.Add(editor);
                GraphicsInfo.Default.AddGraphics(null);
                SizeF calcTextSize = editor.Properties.Appearance.CalcTextSize(GraphicsInfo.Default.Cache, verb.Text, Width);
                GraphicsInfo.Default.ReleaseGraphics();
                editor.Width = calcTextSize.ToSize().Width + 10;
                if (oldEditor != null)
                {
                    if (editor.Width + oldEditor.Bounds.Right > Width)
                    {
                        editor.Location = new Point(0, oldEditor.Bottom);
                    }
                    else
                    {
                        editor.Location = new Point(oldEditor.Bounds.Right, oldEditor.Bounds.Y);
                    }
                }
                editor.EditValue = verb;
            }
        }
示例#6
0
 private void InitializeComponent()
 {
     this.btnSave                    = new DevExpress.XtraEditors.SimpleButton();
     this.txtStyleName               = new DevExpress.XtraEditors.TextEdit();
     this.labelControl1              = new DevExpress.XtraEditors.LabelControl();
     this.panelControl1              = new DevExpress.XtraEditors.PanelControl();
     this.hlSelectImg                = new DevExpress.XtraEditors.HyperLinkEdit();
     this.picThumbnail               = new DevExpress.XtraEditors.PictureEdit();
     this.labelControl2              = new DevExpress.XtraEditors.LabelControl();
     this.panelControl2              = new DevExpress.XtraEditors.PanelControl();
     this.rgRenderType               = new DevExpress.XtraEditors.RadioGroup();
     this.labelControl3              = new DevExpress.XtraEditors.LabelControl();
     this.layoutViewCard1            = new DevExpress.XtraGrid.Views.Layout.LayoutViewCard();
     this.layoutViewField3           = new DevExpress.XtraGrid.Views.Layout.LayoutViewField();
     this.layoutViewField1           = new DevExpress.XtraGrid.Views.Layout.LayoutViewField();
     this.layoutViewField2           = new DevExpress.XtraGrid.Views.Layout.LayoutViewField();
     this.layoutViewField4           = new DevExpress.XtraGrid.Views.Layout.LayoutViewField();
     this.layoutViewColumn4          = new DevExpress.XtraGrid.Columns.LayoutViewColumn();
     this.btnCancel                  = new DevExpress.XtraEditors.SimpleButton();
     this.repositoryItemPictureEdit3 = new DevExpress.XtraEditors.Repository.RepositoryItemPictureEdit();
     this.layoutViewColumn3          = new DevExpress.XtraGrid.Columns.LayoutViewColumn();
     this.layoutViewColumn1          = new DevExpress.XtraGrid.Columns.LayoutViewColumn();
     this.layoutView1                = new DevExpress.XtraGrid.Views.Layout.LayoutView();
     this.layoutViewColumn2          = new DevExpress.XtraGrid.Columns.LayoutViewColumn();
     this.gridRenderInfo             = new DevExpress.XtraGrid.GridControl();
     this.txtSelRenderInfo           = new DevExpress.XtraEditors.LookUpEdit();
     this.cbxHeightParam             = new DevExpress.XtraEditors.ComboBoxEdit();
     this.labelControl5              = new DevExpress.XtraEditors.LabelControl();
     this.labelControl4              = new DevExpress.XtraEditors.LabelControl();
     this.panelControl3              = new DevExpress.XtraEditors.PanelControl();
     this.cbxHeightMode              = new DevExpress.XtraEditors.ComboBoxEdit();
     this.txtThick                   = new DevExpress.XtraEditors.SpinEdit();
     ((System.ComponentModel.ISupportInitialize)(this.txtStyleName.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
     this.panelControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.hlSelectImg.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.picThumbnail.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
     this.panelControl2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.rgRenderType.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutViewCard1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutViewField3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutViewField1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutViewField2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutViewField4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemPictureEdit3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridRenderInfo)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtSelRenderInfo.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.cbxHeightParam.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl3)).BeginInit();
     this.panelControl3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.cbxHeightMode.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtThick.Properties)).BeginInit();
     this.SuspendLayout();
     //
     // btnSave
     //
     this.btnSave.Location = new System.Drawing.Point(402, 272);
     this.btnSave.Name     = "btnSave";
     this.btnSave.Size     = new System.Drawing.Size(64, 22);
     this.btnSave.TabIndex = 28;
     this.btnSave.Text     = "创建";
     this.btnSave.Click   += new System.EventHandler(this.btnSave_Click);
     //
     // txtStyleName
     //
     this.txtStyleName.Location = new System.Drawing.Point(84, 9);
     this.txtStyleName.Name     = "txtStyleName";
     this.txtStyleName.Size     = new System.Drawing.Size(215, 22);
     this.txtStyleName.TabIndex = 1;
     //
     // labelControl1
     //
     this.labelControl1.Location = new System.Drawing.Point(16, 12);
     this.labelControl1.Name     = "labelControl1";
     this.labelControl1.Size     = new System.Drawing.Size(60, 14);
     this.labelControl1.TabIndex = 0;
     this.labelControl1.Text     = "风格名称:";
     //
     // panelControl1
     //
     this.panelControl1.Controls.Add(this.txtStyleName);
     this.panelControl1.Controls.Add(this.labelControl1);
     this.panelControl1.Location = new System.Drawing.Point(14, 9);
     this.panelControl1.Name     = "panelControl1";
     this.panelControl1.Size     = new System.Drawing.Size(315, 35);
     this.panelControl1.TabIndex = 26;
     //
     // hlSelectImg
     //
     this.hlSelectImg.EditValue = "选择";
     this.hlSelectImg.Location  = new System.Drawing.Point(47, 4);
     this.hlSelectImg.Name      = "hlSelectImg";
     this.hlSelectImg.Properties.Appearance.BackColor            = System.Drawing.Color.Transparent;
     this.hlSelectImg.Properties.Appearance.Options.UseBackColor = true;
     this.hlSelectImg.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.hlSelectImg.Size      = new System.Drawing.Size(36, 20);
     this.hlSelectImg.TabIndex  = 2;
     this.hlSelectImg.OpenLink += new DevExpress.XtraEditors.Controls.OpenLinkEventHandler(this.hlSelectImg_OpenLink);
     //
     // picThumbnail
     //
     this.picThumbnail.Location            = new System.Drawing.Point(8, 30);
     this.picThumbnail.Name                = "picThumbnail";
     this.picThumbnail.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Zoom;
     this.picThumbnail.Size                = new System.Drawing.Size(220, 220);
     this.picThumbnail.TabIndex            = 1;
     //
     // labelControl2
     //
     this.labelControl2.Location = new System.Drawing.Point(5, 5);
     this.labelControl2.Name     = "labelControl2";
     this.labelControl2.Size     = new System.Drawing.Size(36, 14);
     this.labelControl2.TabIndex = 0;
     this.labelControl2.Text     = "缩略图";
     //
     // panelControl2
     //
     this.panelControl2.Controls.Add(this.hlSelectImg);
     this.panelControl2.Controls.Add(this.picThumbnail);
     this.panelControl2.Controls.Add(this.labelControl2);
     this.panelControl2.Location = new System.Drawing.Point(335, 9);
     this.panelControl2.Name     = "panelControl2";
     this.panelControl2.Size     = new System.Drawing.Size(236, 257);
     this.panelControl2.TabIndex = 27;
     //
     // rgRenderType
     //
     this.rgRenderType.EditValue             = 1;
     this.rgRenderType.Location              = new System.Drawing.Point(75, 39);
     this.rgRenderType.Name                  = "rgRenderType";
     this.rgRenderType.Size                  = new System.Drawing.Size(106, 24);
     this.rgRenderType.TabIndex              = 2;
     this.rgRenderType.SelectedIndexChanged += new System.EventHandler(this.rgRenderType_SelectedIndexChanged);
     //
     // labelControl3
     //
     this.labelControl3.Location = new System.Drawing.Point(16, 44);
     this.labelControl3.Name     = "labelControl3";
     this.labelControl3.Size     = new System.Drawing.Size(60, 14);
     this.labelControl3.TabIndex = 1;
     this.labelControl3.Text     = "渲染方式:";
     //
     // layoutViewCard1
     //
     this.layoutViewCard1.CustomizationFormText       = "layoutViewTemplateCard";
     this.layoutViewCard1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.False;
     this.layoutViewCard1.ExpandButtonLocation        = DevExpress.Utils.GroupElementLocation.AfterText;
     this.layoutViewCard1.GroupBordersVisible         = false;
     this.layoutViewCard1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
         this.layoutViewField3,
         this.layoutViewField1,
         this.layoutViewField2
     });
     this.layoutViewCard1.Name = "layoutViewCard1";
     this.layoutViewCard1.OptionsItemText.TextToControlDistance = 5;
     this.layoutViewCard1.Text = "TemplateCard";
     //
     // layoutViewField3
     //
     this.layoutViewField3.EditorPreferredWidth = 96;
     this.layoutViewField3.Location             = new System.Drawing.Point(0, 18);
     this.layoutViewField3.MaxSize               = new System.Drawing.Size(98, 108);
     this.layoutViewField3.MinSize               = new System.Drawing.Size(98, 108);
     this.layoutViewField3.Name                  = "layoutViewField3";
     this.layoutViewField3.Padding               = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
     this.layoutViewField3.Size                  = new System.Drawing.Size(98, 108);
     this.layoutViewField3.SizeConstraintsType   = DevExpress.XtraLayout.SizeConstraintsType.Custom;
     this.layoutViewField3.TextSize              = new System.Drawing.Size(0, 0);
     this.layoutViewField3.TextToControlDistance = 0;
     this.layoutViewField3.TextVisible           = false;
     //
     // layoutViewField1
     //
     this.layoutViewField1.EditorPreferredWidth = 96;
     this.layoutViewField1.Location             = new System.Drawing.Point(0, 0);
     this.layoutViewField1.Name                  = "layoutViewField1";
     this.layoutViewField1.Padding               = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
     this.layoutViewField1.Size                  = new System.Drawing.Size(98, 18);
     this.layoutViewField1.TextLocation          = DevExpress.Utils.Locations.Top;
     this.layoutViewField1.TextSize              = new System.Drawing.Size(0, 0);
     this.layoutViewField1.TextToControlDistance = 0;
     this.layoutViewField1.TextVisible           = false;
     //
     // layoutViewField2
     //
     this.layoutViewField2.EditorPreferredWidth = 96;
     this.layoutViewField2.Location             = new System.Drawing.Point(0, 126);
     this.layoutViewField2.Name     = "layoutViewField2";
     this.layoutViewField2.Padding  = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
     this.layoutViewField2.Size     = new System.Drawing.Size(98, 18);
     this.layoutViewField2.TextSize = new System.Drawing.Size(0, 0);
     this.layoutViewField2.TextToControlDistance = 0;
     this.layoutViewField2.TextVisible           = false;
     //
     // layoutViewField4
     //
     this.layoutViewField4.EditorPreferredWidth = 20;
     this.layoutViewField4.Location             = new System.Drawing.Point(0, 0);
     this.layoutViewField4.Name     = "layoutViewField4";
     this.layoutViewField4.Padding  = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
     this.layoutViewField4.Size     = new System.Drawing.Size(99, 126);
     this.layoutViewField4.TextSize = new System.Drawing.Size(0, 0);
     this.layoutViewField4.TextToControlDistance = 0;
     this.layoutViewField4.TextVisible           = false;
     //
     // layoutViewColumn4
     //
     this.layoutViewColumn4.Caption         = "对象信息";
     this.layoutViewColumn4.FieldName       = "Info";
     this.layoutViewColumn4.LayoutViewField = this.layoutViewField4;
     this.layoutViewColumn4.Name            = "layoutViewColumn4";
     this.layoutViewColumn4.UnboundType     = DevExpress.Data.UnboundColumnType.String;
     //
     // btnCancel
     //
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location     = new System.Drawing.Point(499, 272);
     this.btnCancel.Name         = "btnCancel";
     this.btnCancel.Size         = new System.Drawing.Size(64, 22);
     this.btnCancel.TabIndex     = 29;
     this.btnCancel.Text         = "取消";
     this.btnCancel.Click       += new System.EventHandler(this.btnCancel_Click);
     //
     // repositoryItemPictureEdit3
     //
     this.repositoryItemPictureEdit3.Name     = "repositoryItemPictureEdit3";
     this.repositoryItemPictureEdit3.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Zoom;
     //
     // layoutViewColumn3
     //
     this.layoutViewColumn3.Caption         = "缩略图";
     this.layoutViewColumn3.ColumnEdit      = this.repositoryItemPictureEdit3;
     this.layoutViewColumn3.FieldName       = "Thumbnail";
     this.layoutViewColumn3.LayoutViewField = this.layoutViewField3;
     this.layoutViewColumn3.Name            = "layoutViewColumn3";
     //
     // layoutViewColumn1
     //
     this.layoutViewColumn1.Caption         = "名称";
     this.layoutViewColumn1.FieldName       = "Name";
     this.layoutViewColumn1.LayoutViewField = this.layoutViewField1;
     this.layoutViewColumn1.Name            = "layoutViewColumn1";
     //
     // layoutView1
     //
     this.layoutView1.Appearance.CardCaption.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
     this.layoutView1.Appearance.CardCaption.Options.UseFont = true;
     this.layoutView1.CardMinSize      = new System.Drawing.Size(100, 124);
     this.layoutView1.CardVertInterval = 1;
     this.layoutView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.LayoutViewColumn[] {
         this.layoutViewColumn1,
         this.layoutViewColumn3,
         this.layoutViewColumn2,
         this.layoutViewColumn4
     });
     this.layoutView1.GridControl = this.gridRenderInfo;
     this.layoutView1.HiddenItems.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
         this.layoutViewField4
     });
     this.layoutView1.Name = "layoutView1";
     this.layoutView1.OptionsBehavior.Editable                       = false;
     this.layoutView1.OptionsCustomization.AllowFilter               = false;
     this.layoutView1.OptionsCustomization.AllowSort                 = false;
     this.layoutView1.OptionsCustomization.ShowGroupLayout           = false;
     this.layoutView1.OptionsMultiRecordMode.StretchCardToViewHeight = true;
     this.layoutView1.OptionsMultiRecordMode.StretchCardToViewWidth  = true;
     this.layoutView1.OptionsView.ShowCardBorderIfCaptionHidden      = false;
     this.layoutView1.OptionsView.ShowCardCaption                    = false;
     this.layoutView1.OptionsView.ShowCardExpandButton               = false;
     this.layoutView1.OptionsView.ShowCardLines                      = false;
     this.layoutView1.OptionsView.ShowHeaderPanel                    = false;
     this.layoutView1.OptionsView.ViewMode = DevExpress.XtraGrid.Views.Layout.LayoutViewMode.Row;
     this.layoutView1.TemplateCard         = this.layoutViewCard1;
     this.layoutView1.Click += new System.EventHandler(this.layoutView1_Click);
     //
     // layoutViewColumn2
     //
     this.layoutViewColumn2.Caption         = "备注";
     this.layoutViewColumn2.FieldName       = "Comment";
     this.layoutViewColumn2.LayoutViewField = this.layoutViewField2;
     this.layoutViewColumn2.Name            = "layoutViewColumn2";
     //
     // gridRenderInfo
     //
     this.gridRenderInfo.Cursor   = System.Windows.Forms.Cursors.Default;
     this.gridRenderInfo.Location = new System.Drawing.Point(8, 75);
     this.gridRenderInfo.MainView = this.layoutView1;
     this.gridRenderInfo.Name     = "gridRenderInfo";
     this.gridRenderInfo.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
         this.repositoryItemPictureEdit3
     });
     this.gridRenderInfo.ShowOnlyPredefinedDetails = true;
     this.gridRenderInfo.Size     = new System.Drawing.Size(300, 134);
     this.gridRenderInfo.TabIndex = 7;
     this.gridRenderInfo.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
         this.layoutView1
     });
     //
     // txtSelRenderInfo
     //
     this.txtSelRenderInfo.EditValue = "";
     this.txtSelRenderInfo.Location  = new System.Drawing.Point(75, 147);
     this.txtSelRenderInfo.Name      = "txtSelRenderInfo";
     this.txtSelRenderInfo.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.txtSelRenderInfo.Properties.NullText      = "请选择颜色";
     this.txtSelRenderInfo.Properties.ShowHeader    = false;
     this.txtSelRenderInfo.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
     this.txtSelRenderInfo.Size              = new System.Drawing.Size(80, 22);
     this.txtSelRenderInfo.TabIndex          = 26;
     this.txtSelRenderInfo.Visible           = false;
     this.txtSelRenderInfo.EditValueChanged += new System.EventHandler(this.txtSelRenderInfo_EditValueChanged);
     this.txtSelRenderInfo.Leave            += new System.EventHandler(this.txtSelRenderInfo_Leave);
     //
     // cbxHeightParam
     //
     this.cbxHeightParam.EditValue = "";
     this.cbxHeightParam.Location  = new System.Drawing.Point(75, 11);
     this.cbxHeightParam.Name      = "cbxHeightParam";
     this.cbxHeightParam.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.cbxHeightParam.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
     this.cbxHeightParam.Size     = new System.Drawing.Size(138, 22);
     this.cbxHeightParam.TabIndex = 12;
     //
     // labelControl5
     //
     this.labelControl5.Location = new System.Drawing.Point(16, 17);
     this.labelControl5.Name     = "labelControl5";
     this.labelControl5.Size     = new System.Drawing.Size(60, 14);
     this.labelControl5.TabIndex = 11;
     this.labelControl5.Text     = "高程选项:";
     //
     // labelControl4
     //
     this.labelControl4.Location = new System.Drawing.Point(187, 44);
     this.labelControl4.Name     = "labelControl4";
     this.labelControl4.Size     = new System.Drawing.Size(52, 14);
     this.labelControl4.TabIndex = 8;
     this.labelControl4.Text     = "管壁厚度:";
     //
     // panelControl3
     //
     this.panelControl3.Controls.Add(this.txtSelRenderInfo);
     this.panelControl3.Controls.Add(this.cbxHeightParam);
     this.panelControl3.Controls.Add(this.labelControl5);
     this.panelControl3.Controls.Add(this.labelControl4);
     this.panelControl3.Controls.Add(this.gridRenderInfo);
     this.panelControl3.Controls.Add(this.rgRenderType);
     this.panelControl3.Controls.Add(this.labelControl3);
     this.panelControl3.Controls.Add(this.cbxHeightMode);
     this.panelControl3.Controls.Add(this.txtThick);
     this.panelControl3.Location = new System.Drawing.Point(14, 50);
     this.panelControl3.Name     = "panelControl3";
     this.panelControl3.Size     = new System.Drawing.Size(315, 216);
     this.panelControl3.TabIndex = 30;
     //
     // cbxHeightMode
     //
     this.cbxHeightMode.EditValue = "";
     this.cbxHeightMode.Location  = new System.Drawing.Point(219, 11);
     this.cbxHeightMode.Name      = "cbxHeightMode";
     this.cbxHeightMode.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.cbxHeightMode.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
     this.cbxHeightMode.Size     = new System.Drawing.Size(80, 22);
     this.cbxHeightMode.TabIndex = 10;
     //
     // txtThick
     //
     this.txtThick.EditValue = new decimal(new int[] {
         1,
         0,
         0,
         131072
     });
     this.txtThick.Location = new System.Drawing.Point(245, 42);
     this.txtThick.Name     = "txtThick";
     this.txtThick.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.txtThick.Properties.EditValueChangedFiringMode = DevExpress.XtraEditors.Controls.EditValueChangedFiringMode.Default;
     this.txtThick.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.None;
     this.txtThick.Size     = new System.Drawing.Size(54, 22);
     this.txtThick.TabIndex = 5;
     //
     // FrmPipeLineStyle
     //
     this.AcceptButton = this.btnSave;
     this.CancelButton = this.btnCancel;
     this.ClientSize   = new System.Drawing.Size(583, 304);
     this.Controls.Add(this.btnSave);
     this.Controls.Add(this.panelControl1);
     this.Controls.Add(this.panelControl2);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.panelControl3);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Name            = "FrmPipeLineStyle";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "创建—管线风格";
     this.Load           += new System.EventHandler(this.FrmPipeLineStyle_Load);
     ((System.ComponentModel.ISupportInitialize)(this.txtStyleName.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
     this.panelControl1.ResumeLayout(false);
     this.panelControl1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.hlSelectImg.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.picThumbnail.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
     this.panelControl2.ResumeLayout(false);
     this.panelControl2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.rgRenderType.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutViewCard1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutViewField3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutViewField1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutViewField2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutViewField4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.repositoryItemPictureEdit3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutView1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridRenderInfo)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtSelRenderInfo.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.cbxHeightParam.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl3)).EndInit();
     this.panelControl3.ResumeLayout(false);
     this.panelControl3.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.cbxHeightMode.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtThick.Properties)).EndInit();
     this.ResumeLayout(false);
 }
 protected override object CreateControlCore() {
     hyperlinkEditCore = new HyperLinkEdit();
     return hyperlinkEditCore;
 }
示例#8
0
 protected override object CreateControlCore()
 {
     _hyperlinkEditCore = new HyperLinkEdit();
     return(_hyperlinkEditCore);
 }
示例#9
0
        private void hyperLinkEdit2_MouseClick(object sender, MouseEventArgs e)
        {
            HyperLinkEdit editor = sender as HyperLinkEdit;

            editor.ShowBrowser("http://www.aldsoft.cc");
        }
示例#10
0
 public static void ChangeCaptionHyperLinkEdit(string parent_name, string language, HyperLinkEdit hyper_link_edit)
 {
     hyper_link_edit.Text = CaptionEngine.GetControlCaption(parent_name, hyper_link_edit.Name, BaseConstant.CONTROL_TEXT, language);
 }
示例#11
0
 private void InitializeComponent()
 {
     this.chkRotateZ     = new DevExpress.XtraEditors.CheckEdit();
     this.labelControl3  = new DevExpress.XtraEditors.LabelControl();
     this.hlSelectImg    = new DevExpress.XtraEditors.HyperLinkEdit();
     this.picThumbnail   = new DevExpress.XtraEditors.PictureEdit();
     this.labelControl2  = new DevExpress.XtraEditors.LabelControl();
     this.panelControl2  = new DevExpress.XtraEditors.PanelControl();
     this.txtStyleName   = new DevExpress.XtraEditors.TextEdit();
     this.labelControl1  = new DevExpress.XtraEditors.LabelControl();
     this.panelControl3  = new DevExpress.XtraEditors.PanelControl();
     this.chkStretchZ    = new DevExpress.XtraEditors.CheckEdit();
     this.chkBlendPipe   = new DevExpress.XtraEditors.CheckEdit();
     this.chkFollowDir   = new DevExpress.XtraEditors.CheckEdit();
     this.chkFollowSurfH = new DevExpress.XtraEditors.CheckEdit();
     this.txtModelId     = new DevExpress.XtraEditors.LookUpEdit();
     this.chkFollowDia   = new DevExpress.XtraEditors.CheckEdit();
     this.panelControl1  = new DevExpress.XtraEditors.PanelControl();
     this.btnSave        = new DevExpress.XtraEditors.SimpleButton();
     this.btnCancel      = new DevExpress.XtraEditors.SimpleButton();
     ((System.ComponentModel.ISupportInitialize)(this.chkRotateZ.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.hlSelectImg.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.picThumbnail.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
     this.panelControl2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.txtStyleName.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl3)).BeginInit();
     this.panelControl3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chkStretchZ.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.chkBlendPipe.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.chkFollowDir.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.chkFollowSurfH.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtModelId.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.chkFollowDia.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
     this.panelControl1.SuspendLayout();
     this.SuspendLayout();
     //
     // chkRotateZ
     //
     this.chkRotateZ.Location           = new System.Drawing.Point(184, 128);
     this.chkRotateZ.Name               = "chkRotateZ";
     this.chkRotateZ.Properties.Caption = "是否绕Z轴旋转";
     this.chkRotateZ.Size               = new System.Drawing.Size(115, 19);
     this.chkRotateZ.TabIndex           = 15;
     //
     // labelControl3
     //
     this.labelControl3.Location = new System.Drawing.Point(16, 21);
     this.labelControl3.Name     = "labelControl3";
     this.labelControl3.Size     = new System.Drawing.Size(60, 14);
     this.labelControl3.TabIndex = 14;
     this.labelControl3.Text     = "选择模型:";
     //
     // hlSelectImg
     //
     this.hlSelectImg.EditValue = "选择";
     this.hlSelectImg.Location  = new System.Drawing.Point(47, 5);
     this.hlSelectImg.Name      = "hlSelectImg";
     this.hlSelectImg.Properties.Appearance.BackColor            = System.Drawing.Color.Transparent;
     this.hlSelectImg.Properties.Appearance.Options.UseBackColor = true;
     this.hlSelectImg.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.hlSelectImg.Size      = new System.Drawing.Size(36, 20);
     this.hlSelectImg.TabIndex  = 2;
     this.hlSelectImg.OpenLink += new DevExpress.XtraEditors.Controls.OpenLinkEventHandler(this.hlSelectImg_OpenLink);
     //
     // picThumbnail
     //
     this.picThumbnail.Location            = new System.Drawing.Point(8, 28);
     this.picThumbnail.Name                = "picThumbnail";
     this.picThumbnail.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Zoom;
     this.picThumbnail.Size                = new System.Drawing.Size(177, 177);
     this.picThumbnail.TabIndex            = 1;
     //
     // labelControl2
     //
     this.labelControl2.Location = new System.Drawing.Point(5, 5);
     this.labelControl2.Name     = "labelControl2";
     this.labelControl2.Size     = new System.Drawing.Size(36, 14);
     this.labelControl2.TabIndex = 0;
     this.labelControl2.Text     = "缩略图";
     //
     // panelControl2
     //
     this.panelControl2.Controls.Add(this.hlSelectImg);
     this.panelControl2.Controls.Add(this.picThumbnail);
     this.panelControl2.Controls.Add(this.labelControl2);
     this.panelControl2.Location = new System.Drawing.Point(335, 12);
     this.panelControl2.Name     = "panelControl2";
     this.panelControl2.Size     = new System.Drawing.Size(194, 216);
     this.panelControl2.TabIndex = 17;
     //
     // txtStyleName
     //
     this.txtStyleName.Location = new System.Drawing.Point(84, 9);
     this.txtStyleName.Name     = "txtStyleName";
     this.txtStyleName.Size     = new System.Drawing.Size(215, 22);
     this.txtStyleName.TabIndex = 1;
     //
     // labelControl1
     //
     this.labelControl1.Location = new System.Drawing.Point(16, 12);
     this.labelControl1.Name     = "labelControl1";
     this.labelControl1.Size     = new System.Drawing.Size(60, 14);
     this.labelControl1.TabIndex = 0;
     this.labelControl1.Text     = "风格名称:";
     //
     // panelControl3
     //
     this.panelControl3.Controls.Add(this.chkRotateZ);
     this.panelControl3.Controls.Add(this.chkStretchZ);
     this.panelControl3.Controls.Add(this.labelControl3);
     this.panelControl3.Controls.Add(this.chkBlendPipe);
     this.panelControl3.Controls.Add(this.chkFollowDir);
     this.panelControl3.Controls.Add(this.chkFollowSurfH);
     this.panelControl3.Controls.Add(this.txtModelId);
     this.panelControl3.Controls.Add(this.chkFollowDia);
     this.panelControl3.Location = new System.Drawing.Point(14, 53);
     this.panelControl3.Name     = "panelControl3";
     this.panelControl3.Size     = new System.Drawing.Size(315, 175);
     this.panelControl3.TabIndex = 20;
     //
     // chkStretchZ
     //
     this.chkStretchZ.Location           = new System.Drawing.Point(184, 103);
     this.chkStretchZ.Name               = "chkStretchZ";
     this.chkStretchZ.Properties.Caption = "是否沿Z方向拉伸";
     this.chkStretchZ.Size               = new System.Drawing.Size(115, 19);
     this.chkStretchZ.TabIndex           = 10;
     //
     // chkBlendPipe
     //
     this.chkBlendPipe.Location           = new System.Drawing.Point(14, 128);
     this.chkBlendPipe.Name               = "chkBlendPipe";
     this.chkBlendPipe.Properties.Caption = "是否自动融合连接管线";
     this.chkBlendPipe.Size               = new System.Drawing.Size(173, 19);
     this.chkBlendPipe.TabIndex           = 11;
     //
     // chkFollowDir
     //
     this.chkFollowDir.Location           = new System.Drawing.Point(14, 103);
     this.chkFollowDir.Name               = "chkFollowDir";
     this.chkFollowDir.Properties.Caption = "是否跟随管线方向";
     this.chkFollowDir.Size               = new System.Drawing.Size(127, 19);
     this.chkFollowDir.TabIndex           = 9;
     //
     // chkFollowSurfH
     //
     this.chkFollowSurfH.Location           = new System.Drawing.Point(184, 78);
     this.chkFollowSurfH.Name               = "chkFollowSurfH";
     this.chkFollowSurfH.Properties.Caption = "是否贴地显示";
     this.chkFollowSurfH.Size               = new System.Drawing.Size(103, 19);
     this.chkFollowSurfH.TabIndex           = 8;
     //
     // txtModelId
     //
     this.txtModelId.EditValue = "";
     this.txtModelId.Location  = new System.Drawing.Point(84, 18);
     this.txtModelId.Name      = "txtModelId";
     this.txtModelId.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.txtModelId.Properties.ImmediatePopup = true;
     this.txtModelId.Properties.NullText       = "——请选择模型——";
     this.txtModelId.Properties.ShowHeader     = false;
     this.txtModelId.Properties.TextEditStyle  = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
     this.txtModelId.Size              = new System.Drawing.Size(215, 22);
     this.txtModelId.TabIndex          = 5;
     this.txtModelId.EditValueChanged += new System.EventHandler(this.txtModelId_EditValueChanged);
     //
     // chkFollowDia
     //
     this.chkFollowDia.Location           = new System.Drawing.Point(14, 78);
     this.chkFollowDia.Name               = "chkFollowDia";
     this.chkFollowDia.Properties.Caption = "是否跟随管径";
     this.chkFollowDia.Size               = new System.Drawing.Size(102, 19);
     this.chkFollowDia.TabIndex           = 7;
     //
     // panelControl1
     //
     this.panelControl1.Controls.Add(this.txtStyleName);
     this.panelControl1.Controls.Add(this.labelControl1);
     this.panelControl1.Location = new System.Drawing.Point(14, 12);
     this.panelControl1.Name     = "panelControl1";
     this.panelControl1.Size     = new System.Drawing.Size(315, 35);
     this.panelControl1.TabIndex = 16;
     //
     // btnSave
     //
     this.btnSave.Location = new System.Drawing.Point(359, 240);
     this.btnSave.Name     = "btnSave";
     this.btnSave.Size     = new System.Drawing.Size(64, 22);
     this.btnSave.TabIndex = 18;
     this.btnSave.Text     = "创建";
     this.btnSave.Click   += new System.EventHandler(this.btnSave_Click);
     //
     // btnCancel
     //
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location     = new System.Drawing.Point(456, 240);
     this.btnCancel.Name         = "btnCancel";
     this.btnCancel.Size         = new System.Drawing.Size(64, 22);
     this.btnCancel.TabIndex     = 19;
     this.btnCancel.Text         = "取消";
     this.btnCancel.Click       += new System.EventHandler(this.btnCancel_Click);
     //
     // FrmPipeNodeStyle
     //
     this.AcceptButton = this.btnSave;
     this.CancelButton = this.btnCancel;
     this.ClientSize   = new System.Drawing.Size(540, 274);
     this.Controls.Add(this.panelControl2);
     this.Controls.Add(this.panelControl3);
     this.Controls.Add(this.panelControl1);
     this.Controls.Add(this.btnSave);
     this.Controls.Add(this.btnCancel);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Name            = "FrmPipeNodeStyle";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "创建—管点风格";
     this.Load           += new System.EventHandler(this.FrmPipeNodeStyle_Load);
     ((System.ComponentModel.ISupportInitialize)(this.chkRotateZ.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.hlSelectImg.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.picThumbnail.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
     this.panelControl2.ResumeLayout(false);
     this.panelControl2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.txtStyleName.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl3)).EndInit();
     this.panelControl3.ResumeLayout(false);
     this.panelControl3.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chkStretchZ.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chkBlendPipe.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chkFollowDir.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chkFollowSurfH.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtModelId.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chkFollowDia.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
     this.panelControl1.ResumeLayout(false);
     this.panelControl1.PerformLayout();
     this.ResumeLayout(false);
 }
示例#12
0
 public static void ChangeCaptionHyperLinkEdit(string parent_name, string language, HyperLinkEdit[] hyper_link_edits)
 {
     foreach (HyperLinkEdit hyper_link_edit in hyper_link_edits)
         ChangeCaptionHyperLinkEdit(parent_name, language, hyper_link_edit);
 }
示例#13
0
 public static void ChangeCaptionHyperLinkEdit(string parent_name, string language, HyperLinkEdit hyper_link_edit)
 {
     hyper_link_edit.Text = CaptionEngine.GetControlCaption(parent_name, hyper_link_edit.Name, BaseConstant.CONTROL_TEXT, language);
 }