/// <summary>
 /// Initialize a new instance of the DataGridViewStyles class.
 /// </summary>
 /// <param name="dataGridView">Reference to owning control.</param>
 public DataGridViewStyles(KryptonDataGridView dataGridView)
 {
     Debug.Assert(dataGridView != null);
     _dataGridView = dataGridView;
     _gridStyle = DataGridViewStyle.List;
     _columnStyle = GridStyle.List;
     _rowStyle = GridStyle.List;
     _dataCellStyle = GridStyle.List;
     _backgroundStyle = PaletteBackStyle.GridBackgroundList;
 }
Beispiel #2
0
 /// <summary>
 /// Initialize a new instance of the DataGridViewStyles class.
 /// </summary>
 /// <param name="dataGridView">Reference to owning control.</param>
 public DataGridViewStyles(KryptonDataGridView dataGridView)
 {
     Debug.Assert(dataGridView != null);
     _dataGridView    = dataGridView;
     _gridStyle       = DataGridViewStyle.List;
     _columnStyle     = GridStyle.List;
     _rowStyle        = GridStyle.List;
     _dataCellStyle   = GridStyle.List;
     _backgroundStyle = PaletteBackStyle.GridBackgroundList;
 }
Beispiel #3
0
 public static void GridSelectionChanged(KryptonDataGridView view, KryptonTextBox txtbox, string type)
 {
     if (view.SelectedCells.Count > 0)
     {
         int             selectedrowindex = view.SelectedCells[0].RowIndex;
         DataGridViewRow selectedRow      = view.Rows[selectedrowindex];
         string          a = Convert.ToString(selectedRow.Cells[0].Value);
         txtbox.Text = DisplayDetails(a, type);
     }
 }
        public void dataGridStyle2(KryptonDataGridView dtgrid)
        {
            dtgrid.BackgroundColor = Color.White;

            //dtgrid.Dock = DockStyle.Fill;
            //dtgrid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            dtgrid.ReadOnly              = true;
            dtgrid.RowHeadersVisible     = false;
            dtgrid.SelectionMode         = DataGridViewSelectionMode.FullRowSelect;
            dtgrid.AllowUserToResizeRows = false;
        }
        /// <summary>
        /// 获取选中行
        /// </summary>
        /// <param name="dataGrid">DataGridView对象</param>
        /// <returns>若未有选中行则返回NULL</returns>
        /// 时间:2015-12-09 17:07
        /// 备注:
        public static DataGridViewRow SelectedRow(this KryptonDataGridView dataGrid)
        {
            DataGridViewSelectedRowCollection _selectedRows = dataGrid.SelectedRows;

            if (_selectedRows != null && _selectedRows.Count > 0)
            {
                return(_selectedRows[0]);
            }

            return(null);
        }
        /// <summary>
        ///根据cell内容调整其宽度
        /// </summary>
        /// <param name="girdview">KryptonDataGridView</param>
        public static void AutoCellWidth(this KryptonDataGridView girdview)
        {
            int _columnSumWidth = 0;

            for (int i = 0; i < girdview.Columns.Count; i++)
            {
                girdview.AutoResizeColumn(i, DataGridViewAutoSizeColumnMode.AllCells);
                _columnSumWidth += girdview.Columns[i].Width;
            }

            girdview.AutoSizeColumnsMode = _columnSumWidth > girdview.Size.Width ? DataGridViewAutoSizeColumnsMode.DisplayedCells : DataGridViewAutoSizeColumnsMode.Fill;
        }
Beispiel #7
0
        public CustomTooltip(KryptonDataGridView krpdgList)
        {
            this.krpdgList = krpdgList;
            this.form      = krpdgList.FindForm();


            this.krpdgList.ShowCellToolTips = false;
            this.krpdgList.CellMouseEnter  += this.krpdgList_CellMouseEnter;


            this.krpdgList.CellBeginEdit += this.krpdgList_CellBeginEdit;



            this.krpdgList.MouseMove += krpdgList_MouseMove;



            this._showTimer = new Timer()
            {
                Interval = 1000
            };


            this._showTimer.Tick += new EventHandler(this.OnTimerTick);

            this._customTooltip.UseAnimation = false;
            this._customTooltip.UseFading    = false;
            this._customTooltip.OwnerDraw    = true;
            this._customTooltip.Popup       += (sender, popupEventArgs) =>
            {
                // on popip set the size of tool tip
                Size size = TextRenderer.MeasureText(this._toolTipText.ToString(), Oybab.ServicePC.Pattern.PaletteBlue.GetSelf().currentResourceFont, new Size(this.form.Width, 0), TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.WordBreak | TextFormatFlags.NoPrefix);
                size.Height = size.Height + 2;
                size.Width  = size.Width + 2;

                popupEventArgs.ToolTipSize = size;
            };
            this._customTooltip.Draw += (sender, drawToolTipEventArgs) =>
            {
                Rectangle rect = new Rectangle(drawToolTipEventArgs.Bounds.X, drawToolTipEventArgs.Bounds.Y, drawToolTipEventArgs.Bounds.Width, drawToolTipEventArgs.Bounds.Height);


                LinearGradientBrush itemTracking       = new LinearGradientBrush(rect, Oybab.ServicePC.Pattern.PaletteBlue.GetSelf().GetBackColor1(PaletteBackStyle.ControlToolTip, PaletteState.Normal), Oybab.ServicePC.Pattern.PaletteBlue.GetSelf().GetBackColor2(PaletteBackStyle.ControlToolTip, PaletteState.Normal), Oybab.ServicePC.Pattern.PaletteBlue.GetSelf().GetBackColorAngle(PaletteBackStyle.ControlToolTip, PaletteState.Normal));
                LinearGradientBrush itemBorderSelected = new LinearGradientBrush(rect, Oybab.ServicePC.Pattern.PaletteBlue.GetSelf().GetBorderColor1(PaletteBorderStyle.ControlToolTip, PaletteState.Normal), Oybab.ServicePC.Pattern.PaletteBlue.GetSelf().GetBorderColor2(PaletteBorderStyle.ControlToolTip, PaletteState.Normal), Oybab.ServicePC.Pattern.PaletteBlue.GetSelf().GetBorderColorAngle(PaletteBorderStyle.ControlToolTip, PaletteState.Normal));
                drawToolTipEventArgs.Graphics.FillRectangle(itemTracking, rect.X, rect.Y, rect.Width - 1, rect.Height - 1);
                drawToolTipEventArgs.Graphics.DrawRectangle(new Pen(itemBorderSelected), rect.X, rect.Y, rect.Width - 1, rect.Height - 1);


                TextRenderer.DrawText(drawToolTipEventArgs.Graphics, drawToolTipEventArgs.ToolTipText, Oybab.ServicePC.Pattern.PaletteBlue.GetSelf().currentResourceFont, rect, Color.Black, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.WordBreak | TextFormatFlags.NoPrefix);
            };
        }
 /// <summary>
 ///  绘制行号
 /// </summary>
 /// <param name="dataGrid">DataGridView</param>
 public static void DrawSequenceNumber(this KryptonDataGridView dataGrid)
 {
     dataGrid.RowPostPaint += (sender, e) =>
     {
         KryptonDataGridView _dataGrid  = sender as KryptonDataGridView;
         Rectangle           _rectangle = new Rectangle(e.RowBounds.Location.X, e.RowBounds.Location.Y, _dataGrid.RowHeadersWidth, e.RowBounds.Height);
         TextRenderer.DrawText(e.Graphics, (e.RowIndex + 1).ToString(),
                               _dataGrid.RowHeadersDefaultCellStyle.Font,
                               _rectangle,
                               _dataGrid.RowHeadersDefaultCellStyle.ForeColor,
                               TextFormatFlags.VerticalCenter | TextFormatFlags.Right);
     };
 }
        /// <summary>
        /// This member overrides DataGridViewCell.GetPreferredSize.
        /// </summary>
        /// <param name="graphics">Graphics instance used for calculations.</param>
        /// <param name="cellStyle">Individual cell style to apply.</param>
        /// <param name="rowIndex">Row of column being processed.</param>
        /// <param name="constraintSize">Maximum allowed size.</param>
        /// <returns>Requested ideal size for the cell.</returns>
        protected override Size GetPreferredSize(Graphics graphics,
                                                 DataGridViewCellStyle cellStyle,
                                                 int rowIndex,
                                                 Size constraintSize)
        {
            try
            {
                KryptonDataGridView kDGV = (KryptonDataGridView)DataGridView;

                // Is this cell the currently active cell
                bool currentCell = (rowIndex == DataGridView.CurrentCellAddress.Y) &&
                                   (ColumnIndex == DataGridView.CurrentCellAddress.X);

                // Is this cell the same as the one with the mouse inside it
                Point mouseEnteredCellAddress = MouseEnteredCellAddressInternal;
                bool  mouseCell = (rowIndex == mouseEnteredCellAddress.Y) &&
                                  (ColumnIndex == mouseEnteredCellAddress.X);

                // Snoop tracking and pressed status from the base class implementation
                bool tracking = mouseCell && MouseInContentBoundsInternal;
                bool pressed  = currentCell && ((ButtonStateInternal & ButtonState.Pushed) == ButtonState.Pushed);

                // Find out the requested size of the check box drawing
                using (ViewLayoutContext viewContent = new ViewLayoutContext(kDGV, kDGV.Renderer))
                {
                    Size checkBoxSize = kDGV.Renderer.RenderGlyph.GetCheckBoxPreferredSize(viewContent,
                                                                                           kDGV.Redirector,
                                                                                           kDGV.Enabled,
                                                                                           CheckState.Unchecked,
                                                                                           tracking,
                                                                                           pressed);

                    // Add on the requested cell padding (plus add 1 to counter the -1 that occurs
                    // in the painting routine to prevent drawing over the bottom right border)
                    checkBoxSize.Width  += cellStyle.Padding.Horizontal + 1;
                    checkBoxSize.Height += cellStyle.Padding.Vertical + 1;

                    return(checkBoxSize);
                }
            }
            catch
            {
                return(Size.Empty);
            }
        }
Beispiel #10
0
            public override void DetachEditingControl()
            {
                ResetListBox();
                base.DetachEditingControl();
                KryptonDataGridViewTextBoxEditingControl Tb = (KryptonDataGridViewTextBoxEditingControl)DataGridView.EditingControl;
                ComTextColumn col = (ComTextColumn)OwningColumn;


                Tb.PreviewKeyDown -= this_KeyDown;
                Tb.KeyUp          -= this_KeyUp;

                this.editControl.GotFocus -= editControl_GotFocus;
                this.Values      = null;
                this.IsMultiple  = false;
                this.control     = null;
                this.editControl = null;
                this._listBox    = null;
                this.action      = null;
                InitialFinish    = false;
            }
Beispiel #11
0
 public static void SearchType(KryptonTextBox txtbox, KryptonDataGridView view, string type)
 {
     if (type == "monster")
     {
         DataView DV = new DataView(monsterTable);
         DV.RowFilter    = string.Format("Monsters LIKE '%{0}%'", txtbox.Text);
         view.DataSource = DV;
     }
     else if (type == "spell")
     {
         DataView DV = new DataView(spellTable);
         DV.RowFilter    = string.Format("Spells LIKE '%{0}%'", txtbox.Text);
         view.DataSource = DV;
     }
     else if (type == "item")
     {
         DataView DV = new DataView(itemTable);
         DV.RowFilter    = string.Format("Items LIKE '%{0}%'", txtbox.Text);
         view.DataSource = DV;
     }
 }
        /// <summary>
        /// KryptonDataGridView绑定
        /// </summary>
        /// <typeparam name="T">实体类</typeparam>
        /// <param name="dataGrid">DataGridView对象</param>
        /// <param name="source">数据源</param>
        public static void DynamicBind <T>(this KryptonDataGridView dataGrid, IList <T> source)
            where T : class
        {
            BindingSource _source = null;

            if (dataGrid.DataSource is BindingSource)
            {
                _source          = (BindingSource)dataGrid.DataSource;
                _source.AllowNew = true;

                foreach (T entity in source)
                {
                    _source.Add(entity);
                }
            }
            else
            {
                BindingList <T> _bindinglist = new BindingList <T>(source);
                _source             = new BindingSource(_bindinglist, null);
                dataGrid.DataSource = _source;
            }
        }
        /// <summary>
        /// KryptonDataGridView绑定
        /// </summary>
        /// <typeparam name="T">实体类</typeparam>
        /// <param name="dataGrid">KryptonDataGridView</param>
        /// <param name="item">数据对象</param>
        public static void DynamicBind <T>(this KryptonDataGridView dataGrid, T item)
            where T : class
        {
            BindingSource _bindingSource = null;

            if (dataGrid.DataSource is BindingSource)
            {
                _bindingSource          = (BindingSource)dataGrid.DataSource;
                _bindingSource.AllowNew = true;

                _bindingSource.Add(item);
            }
            else
            {
                List <T> _dataSource = new List <T>(1)
                {
                    item
                };
                BindingList <T> _bindinglist = new BindingList <T>(_dataSource);
                _bindingSource      = new BindingSource(_bindinglist, null);
                dataGrid.DataSource = _bindingSource;
            }
        }
Beispiel #14
0
 public KryptonDataGridViewProxy(KryptonDataGridView grid)
 {
     _grid = grid;
 }
Beispiel #15
0
 public ImageCollection(KryptonDataGridView viewer)
 {
     this.viewer = viewer;
     images      = new Dictionary <string, Image>();
 }
Beispiel #16
0
 private void InitializeComponent()
 {
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     this.tableLayoutPanel13       = new System.Windows.Forms.TableLayoutPanel();
     this.tableLayoutPanel29       = new System.Windows.Forms.TableLayoutPanel();
     this.btnnext                  = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.btnsave                  = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kryptonPanel28           = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonLabel1            = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kryptonLabel116          = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.dRTreatises              = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
     this.paperid                  = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.papername                = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.papertype                = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewComboBoxColumn();
     this.paperyear                = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewNumericUpDownColumn();
     this.paperpublish             = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
     this.paperref                 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewButtonColumn();
     this.paperorder               = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
     this.paperattachmentup        = new System.Windows.Forms.DataGridViewImageColumn();
     this.paperattachmentinfo      = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewLinkColumn();
     this.hiddenRTreatisesPDFOName = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.uploadfullpath           = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.reorder                  = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.paperup                  = new System.Windows.Forms.DataGridViewImageColumn();
     this.paperdown                = new System.Windows.Forms.DataGridViewImageColumn();
     this.paperdel                 = new System.Windows.Forms.DataGridViewImageColumn();
     this.tableLayoutPanel13.SuspendLayout();
     this.tableLayoutPanel29.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel28)).BeginInit();
     this.kryptonPanel28.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dRTreatises)).BeginInit();
     this.SuspendLayout();
     //
     // tableLayoutPanel13
     //
     this.tableLayoutPanel13.ColumnCount = 3;
     this.tableLayoutPanel13.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 50F));
     this.tableLayoutPanel13.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel13.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 50F));
     this.tableLayoutPanel13.Controls.Add(this.tableLayoutPanel29, 1, 3);
     this.tableLayoutPanel13.Controls.Add(this.kryptonPanel28, 1, 1);
     this.tableLayoutPanel13.Controls.Add(this.dRTreatises, 1, 2);
     this.tableLayoutPanel13.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel13.Location = new System.Drawing.Point(0, 0);
     this.tableLayoutPanel13.Name     = "tableLayoutPanel13";
     this.tableLayoutPanel13.RowCount = 5;
     this.tableLayoutPanel13.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableLayoutPanel13.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 80F));
     this.tableLayoutPanel13.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel13.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
     this.tableLayoutPanel13.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableLayoutPanel13.Size     = new System.Drawing.Size(1040, 512);
     this.tableLayoutPanel13.TabIndex = 2;
     //
     // tableLayoutPanel29
     //
     this.tableLayoutPanel29.ColumnCount = 3;
     this.tableLayoutPanel29.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel29.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 103F));
     this.tableLayoutPanel29.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 100F));
     this.tableLayoutPanel29.Controls.Add(this.btnnext, 2, 0);
     this.tableLayoutPanel29.Controls.Add(this.btnsave, 1, 0);
     this.tableLayoutPanel29.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel29.Location = new System.Drawing.Point(53, 455);
     this.tableLayoutPanel29.Name     = "tableLayoutPanel29";
     this.tableLayoutPanel29.RowCount = 1;
     this.tableLayoutPanel29.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel29.Size     = new System.Drawing.Size(934, 34);
     this.tableLayoutPanel29.TabIndex = 2;
     //
     // btnnext
     //
     this.btnnext.Location    = new System.Drawing.Point(837, 3);
     this.btnnext.Name        = "btnnext";
     this.btnnext.TabIndex    = 1;
     this.btnnext.Values.Text = "下一页";
     this.btnnext.Click      += new System.EventHandler(this.btnnext_Click);
     //
     // btnsave
     //
     this.btnsave.Location    = new System.Drawing.Point(734, 3);
     this.btnsave.Name        = "btnsave";
     this.btnsave.TabIndex    = 0;
     this.btnsave.Values.Text = "保存";
     this.btnsave.Click      += new System.EventHandler(this.btnsave_Click);
     //
     // kryptonPanel28
     //
     this.kryptonPanel28.Controls.Add(this.kryptonLabel1);
     this.kryptonPanel28.Controls.Add(this.kryptonLabel116);
     this.kryptonPanel28.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel28.Location = new System.Drawing.Point(50, 20);
     this.kryptonPanel28.Margin   = new System.Windows.Forms.Padding(0);
     this.kryptonPanel28.Name     = "kryptonPanel28";
     this.kryptonPanel28.Size     = new System.Drawing.Size(940, 80);
     this.kryptonPanel28.TabIndex = 0;
     //
     // kryptonLabel1
     //
     this.kryptonLabel1.Location = new System.Drawing.Point(3, 36);
     this.kryptonLabel1.Name     = "kryptonLabel1";
     this.kryptonLabel1.Size     = new System.Drawing.Size(755, 41);
     this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.kryptonLabel1.TabIndex    = 1;
     this.kryptonLabel1.Values.Text = "1.附件材料需为PDF或者JPG格式。\r\n2.提交纸质材料时,论文可打印首页和检索证明,其他类别代表性论著打印封面、目录和首页。";
     //
     // kryptonLabel116
     //
     this.kryptonLabel116.Location = new System.Drawing.Point(0, 10);
     this.kryptonLabel116.Name     = "kryptonLabel116";
     this.kryptonLabel116.Size     = new System.Drawing.Size(927, 27);
     this.kryptonLabel116.StateCommon.LongText.Font  = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.kryptonLabel116.StateCommon.ShortText.Font = new System.Drawing.Font("黑体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.kryptonLabel116.TabIndex         = 0;
     this.kryptonLabel116.Values.ExtraText = "(主要包括论文、著作、研究报告、重要学术会议邀请报告4类;10篇以内,并按照重要性排序)";
     this.kryptonLabel116.Values.Text      = "六、代表性论著\r\n";
     //
     // dRTreatises
     //
     this.dRTreatises.AllowUserToResizeColumns = false;
     this.dRTreatises.AllowUserToResizeRows    = false;
     this.dRTreatises.AutoSizeRowsMode         = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders;
     this.dRTreatises.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
         this.paperid,
         this.papername,
         this.papertype,
         this.paperyear,
         this.paperpublish,
         this.paperref,
         this.paperorder,
         this.paperattachmentup,
         this.paperattachmentinfo,
         this.hiddenRTreatisesPDFOName,
         this.uploadfullpath,
         this.reorder,
         this.paperup,
         this.paperdown,
         this.paperdel
     });
     this.dRTreatises.Dock                                   = System.Windows.Forms.DockStyle.Fill;
     this.dRTreatises.Location                               = new System.Drawing.Point(53, 103);
     this.dRTreatises.MultiSelect                            = false;
     this.dRTreatises.Name                                   = "dRTreatises";
     dataGridViewCellStyle1.Font                             = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     dataGridViewCellStyle1.WrapMode                         = System.Windows.Forms.DataGridViewTriState.True;
     this.dRTreatises.RowsDefaultCellStyle                   = dataGridViewCellStyle1;
     this.dRTreatises.RowTemplate.Height                     = 28;
     this.dRTreatises.Size                                   = new System.Drawing.Size(934, 346);
     this.dRTreatises.StateCommon.Background.Color1          = System.Drawing.Color.White;
     this.dRTreatises.StateCommon.BackStyle                  = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.GridBackgroundList;
     this.dRTreatises.StateCommon.HeaderColumn.Content.Font  = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.dRTreatises.StateCommon.HeaderColumn.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center;
     this.dRTreatises.TabIndex                               = 1;
     this.dRTreatises.CellContentClick                      += new System.Windows.Forms.DataGridViewCellEventHandler(this.dRTreatises_CellContentClick);
     this.dRTreatises.RowsAdded                             += new System.Windows.Forms.DataGridViewRowsAddedEventHandler(this.dRTreatises_RowsAdded);
     //
     // paperid
     //
     this.paperid.HeaderText = "序号";
     this.paperid.Name       = "paperid";
     this.paperid.SortMode   = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.paperid.Visible    = false;
     this.paperid.Width      = 40;
     //
     // papername
     //
     this.papername.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
     this.papername.HeaderText   = "题目";
     this.papername.MinimumWidth = 150;
     this.papername.Name         = "papername";
     this.papername.SortMode     = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     //
     // papertype
     //
     this.papertype.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.papertype.DropDownWidth = 150;
     this.papertype.HeaderText    = "类别";
     this.papertype.Items.AddRange(new string[] {
         "论文",
         "著作",
         "研究技术报告",
         "重要学术会议邀请报告"
     });
     this.papertype.Name  = "papertype";
     this.papertype.Width = 100;
     //
     // paperyear
     //
     this.paperyear.HeaderText = "年份";
     this.paperyear.Maximum    = new decimal(new int[] {
         9999,
         0,
         0,
         0
     });
     this.paperyear.Minimum = new decimal(new int[] {
         1990,
         0,
         0,
         0
     });
     this.paperyear.Name      = "paperyear";
     this.paperyear.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.paperyear.Width     = 80;
     //
     // paperpublish
     //
     this.paperpublish.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
     this.paperpublish.HeaderText   = "著作或机构名称";
     this.paperpublish.Name         = "paperpublish";
     this.paperpublish.SortMode     = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.paperpublish.Width        = 130;
     //
     // paperref
     //
     this.paperref.HeaderText = "收录情况";
     this.paperref.Name       = "paperref";
     this.paperref.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     this.paperref.Width      = 150;
     //
     // paperorder
     //
     this.paperorder.HeaderText = "排名";
     this.paperorder.Name       = "paperorder";
     this.paperorder.SortMode   = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.paperorder.Width      = 50;
     //
     // paperattachmentup
     //
     this.paperattachmentup.HeaderText = "附件";
     this.paperattachmentup.Name       = "paperattachmentup";
     this.paperattachmentup.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     this.paperattachmentup.Width      = 45;
     //
     // paperattachmentinfo
     //
     this.paperattachmentinfo.HeaderText = "附件信息";
     this.paperattachmentinfo.Name       = "paperattachmentinfo";
     this.paperattachmentinfo.ReadOnly   = true;
     this.paperattachmentinfo.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     this.paperattachmentinfo.Width      = 150;
     //
     // hiddenRTreatisesPDFOName
     //
     this.hiddenRTreatisesPDFOName.HeaderText = "存储名称";
     this.hiddenRTreatisesPDFOName.Name       = "hiddenRTreatisesPDFOName";
     this.hiddenRTreatisesPDFOName.SortMode   = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.hiddenRTreatisesPDFOName.Visible    = false;
     //
     // uploadfullpath
     //
     this.uploadfullpath.HeaderText = "上传路径";
     this.uploadfullpath.Name       = "uploadfullpath";
     this.uploadfullpath.SortMode   = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.uploadfullpath.Visible    = false;
     //
     // reorder
     //
     this.reorder.HeaderText = "排序";
     this.reorder.Name       = "reorder";
     this.reorder.SortMode   = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.reorder.Visible    = false;
     //
     // paperup
     //
     this.paperup.HeaderText = "上移";
     this.paperup.Name       = "paperup";
     this.paperup.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     this.paperup.Width      = 45;
     //
     // paperdown
     //
     this.paperdown.HeaderText = "下移";
     this.paperdown.Name       = "paperdown";
     this.paperdown.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     this.paperdown.Width      = 45;
     //
     // paperdel
     //
     this.paperdel.HeaderText = "删除";
     this.paperdel.Name       = "paperdel";
     this.paperdel.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     this.paperdel.Width      = 45;
     //
     // frmRTreatises
     //
     this.Controls.Add(this.tableLayoutPanel13);
     this.Name   = "frmRTreatises";
     this.Size   = new System.Drawing.Size(1040, 512);
     this.Leave += new System.EventHandler(this.frmRTreatises_Leave);
     this.tableLayoutPanel13.ResumeLayout(false);
     this.tableLayoutPanel29.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel28)).EndInit();
     this.kryptonPanel28.ResumeLayout(false);
     this.kryptonPanel28.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dRTreatises)).EndInit();
     this.ResumeLayout(false);
 }
Beispiel #17
0
 protected virtual void CrearColumnas(KryptonDataGridView gridDetalle)
 {
 }
Beispiel #18
0
        public static void SetKDgvNum(KryptonDataGridView dgv, int columnIndex)
        {
            int f = dgv.AllowUserToAddRows ? dgv.Rows.Count - 1 : dgv.Rows.Count;

            for (int i = 0; i < f; i++)
            {
                dgv[columnIndex, i].Value = i + 1;
            }
        }
Beispiel #19
0
 private void InitializeComponent()
 {
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
     this.kryptonPanel1      = new Krypton.Toolkit.KryptonPanel();
     this.kbtnRestoreDefault = new Krypton.Toolkit.KryptonButton();
     this.kbtnRemove         = new Krypton.Toolkit.KryptonButton();
     this.kbtnAdd            = new Krypton.Toolkit.KryptonButton();
     this.panel1             = new System.Windows.Forms.Panel();
     this.kryptonPanel2      = new Krypton.Toolkit.KryptonPanel();
     this.kdgv          = new Krypton.Toolkit.KryptonDataGridView();
     this.kryptonLabel1 = new Krypton.Toolkit.KryptonLabel();
     this.dgv           = new System.Windows.Forms.DataGridView();
     this.cbModifiers   = new Krypton.Toolkit.KryptonDataGridViewComboBoxColumn();
     this.cbKey         = new Krypton.Toolkit.KryptonDataGridViewComboBoxColumn();
     this.kcolAction    = new Krypton.Toolkit.KryptonDataGridViewComboBoxColumn();
     this.colModifiers  = new System.Windows.Forms.DataGridViewComboBoxColumn();
     this.colKey        = new System.Windows.Forms.DataGridViewComboBoxColumn();
     this.colAction     = new System.Windows.Forms.DataGridViewComboBoxColumn();
     this.kgv           = new Krypton.Toolkit.Suite.Extended.Base.KryptonGrid();
     this.kcolModifiers = new Krypton.Toolkit.KryptonDataGridViewComboBoxColumn();
     this.kcolKey       = new Krypton.Toolkit.KryptonDataGridViewComboBoxColumn();
     this.kcolmnAction  = new Krypton.Toolkit.KryptonDataGridViewComboBoxColumn();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     this.kryptonPanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kdgv)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgv)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kgv)).BeginInit();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.kbtnRestoreDefault);
     this.kryptonPanel1.Controls.Add(this.kbtnRemove);
     this.kryptonPanel1.Controls.Add(this.kbtnAdd);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 416);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(691, 47);
     this.kryptonPanel1.TabIndex = 0;
     //
     // kbtnRestoreDefault
     //
     this.kbtnRestoreDefault.Location    = new System.Drawing.Point(204, 10);
     this.kbtnRestoreDefault.Name        = "kbtnRestoreDefault";
     this.kbtnRestoreDefault.Size        = new System.Drawing.Size(115, 25);
     this.kbtnRestoreDefault.TabIndex    = 5;
     this.kbtnRestoreDefault.Values.Text = "Restore &Default";
     this.kbtnRestoreDefault.Click      += new System.EventHandler(this.kbtnRestoreDefault_Click);
     //
     // kbtnRemove
     //
     this.kbtnRemove.Location    = new System.Drawing.Point(108, 10);
     this.kbtnRemove.Name        = "kbtnRemove";
     this.kbtnRemove.Size        = new System.Drawing.Size(90, 25);
     this.kbtnRemove.TabIndex    = 4;
     this.kbtnRemove.Values.Text = "R&emove";
     this.kbtnRemove.Click      += new System.EventHandler(this.kbtnRemove_Click);
     //
     // kbtnAdd
     //
     this.kbtnAdd.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.kbtnAdd.Location     = new System.Drawing.Point(12, 10);
     this.kbtnAdd.Name         = "kbtnAdd";
     this.kbtnAdd.Size         = new System.Drawing.Size(90, 25);
     this.kbtnAdd.TabIndex     = 3;
     this.kbtnAdd.Values.Text  = "&Add";
     this.kbtnAdd.Click       += new System.EventHandler(this.kbtnAdd_Click);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location  = new System.Drawing.Point(0, 413);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(691, 3);
     this.panel1.TabIndex  = 1;
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Controls.Add(this.dgv);
     this.kryptonPanel2.Controls.Add(this.kgv);
     this.kryptonPanel2.Controls.Add(this.kdgv);
     this.kryptonPanel2.Controls.Add(this.kryptonLabel1);
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(691, 413);
     this.kryptonPanel2.TabIndex = 2;
     //
     // kdgv
     //
     this.kdgv.AllowUserToAddRows       = false;
     this.kdgv.AllowUserToDeleteRows    = false;
     this.kdgv.AllowUserToResizeColumns = false;
     this.kdgv.AllowUserToResizeRows    = false;
     this.kdgv.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                               | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.kdgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.kdgv.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
         this.cbModifiers,
         this.cbKey,
         this.kcolAction
     });
     this.kdgv.Location                = new System.Drawing.Point(12, 39);
     this.kdgv.Name                    = "kdgv";
     this.kdgv.RowHeadersVisible       = false;
     this.kdgv.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
     this.kdgv.SelectionMode           = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.kdgv.Size                    = new System.Drawing.Size(667, 368);
     this.kdgv.TabIndex                = 4;
     this.kdgv.RowsAdded              += new System.Windows.Forms.DataGridViewRowsAddedEventHandler(this.kdgv_RowsAdded);
     //
     // kryptonLabel1
     //
     this.kryptonLabel1.Location = new System.Drawing.Point(12, 12);
     this.kryptonLabel1.Name     = "kryptonLabel1";
     this.kryptonLabel1.Size     = new System.Drawing.Size(135, 21);
     this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kryptonLabel1.TabIndex    = 3;
     this.kryptonLabel1.Values.Text = "Hotkeys Mapping";
     //
     // dgv
     //
     this.dgv.AllowUserToAddRows       = false;
     this.dgv.AllowUserToDeleteRows    = false;
     this.dgv.AllowUserToResizeColumns = false;
     this.dgv.AllowUserToResizeRows    = false;
     this.dgv.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                              | System.Windows.Forms.AnchorStyles.Left)
                                                             | System.Windows.Forms.AnchorStyles.Right)));
     this.dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgv.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
         this.colModifiers,
         this.colKey,
         this.colAction
     });
     this.dgv.Location = new System.Drawing.Point(12, 39);
     this.dgv.Name     = "dgv";
     this.dgv.RowHeadersBorderStyle   = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
     this.dgv.RowHeadersVisible       = false;
     this.dgv.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
     this.dgv.SelectionMode           = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgv.Size       = new System.Drawing.Size(667, 368);
     this.dgv.TabIndex   = 3;
     this.dgv.RowsAdded += new System.Windows.Forms.DataGridViewRowsAddedEventHandler(this.dgv_RowsAdded);
     //
     // cbModifiers
     //
     this.cbModifiers.DataSource    = null;
     this.cbModifiers.DropDownWidth = 121;
     this.cbModifiers.HeaderText    = "Modifiers";
     this.cbModifiers.Name          = "cbModifiers";
     this.cbModifiers.Width         = 100;
     //
     // cbKey
     //
     this.cbKey.DataSource    = null;
     this.cbKey.DropDownWidth = 121;
     this.cbKey.HeaderText    = "Key";
     this.cbKey.Name          = "cbKey";
     this.cbKey.Width         = 100;
     //
     // kcolAction
     //
     this.kcolAction.AutoSizeMode  = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
     this.kcolAction.DataSource    = null;
     this.kcolAction.DropDownWidth = 121;
     this.kcolAction.HeaderText    = "Action";
     this.kcolAction.Name          = "kcolAction";
     this.kcolAction.Width         = 466;
     //
     // colModifiers
     //
     this.colModifiers.HeaderText = "Modifiers";
     this.colModifiers.Name       = "colModifiers";
     this.colModifiers.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     //
     // colKey
     //
     this.colKey.HeaderText = "Key";
     this.colKey.Name       = "colKey";
     this.colKey.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     //
     // colAction
     //
     this.colAction.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
     this.colAction.HeaderText   = "Action";
     this.colAction.Name         = "colAction";
     //
     // kgv
     //
     this.kgv.AllowUserToAddRows              = false;
     this.kgv.AllowUserToDeleteRows           = false;
     this.kgv.AllowUserToResizeColumns        = false;
     this.kgv.AllowUserToResizeRows           = false;
     dataGridViewCellStyle3.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(232)))), ((int)(((byte)(246)))));
     this.kgv.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
     this.kgv.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                              | System.Windows.Forms.AnchorStyles.Left)
                                                             | System.Windows.Forms.AnchorStyles.Right)));
     this.kgv.BackgroundColor             = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(196)))), ((int)(((byte)(216)))));
     this.kgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.kgv.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
         this.kcolModifiers,
         this.kcolKey,
         this.kcolmnAction
     });
     dataGridViewCellStyle4.Alignment          = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle4.BackColor          = System.Drawing.SystemColors.Window;
     dataGridViewCellStyle4.Font               = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle4.ForeColor          = System.Drawing.SystemColors.ControlText;
     dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.Transparent;
     dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.Navy;
     dataGridViewCellStyle4.WrapMode           = System.Windows.Forms.DataGridViewTriState.False;
     this.kgv.DefaultCellStyle        = dataGridViewCellStyle4;
     this.kgv.Location                = new System.Drawing.Point(12, 39);
     this.kgv.Name                    = "kgv";
     this.kgv.RowHeadersBorderStyle   = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
     this.kgv.RowHeadersVisible       = false;
     this.kgv.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
     this.kgv.RowTemplate.DefaultCellStyle.SelectionBackColor = System.Drawing.Color.Transparent;
     this.kgv.RowTemplate.DefaultCellStyle.SelectionForeColor = System.Drawing.Color.Navy;
     this.kgv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.kgv.Size          = new System.Drawing.Size(667, 368);
     this.kgv.TabIndex      = 3;
     this.kgv.RowsAdded    += new System.Windows.Forms.DataGridViewRowsAddedEventHandler(this.kgv_RowsAdded);
     //
     // kcolModifiers
     //
     this.kcolModifiers.DataSource    = null;
     this.kcolModifiers.DropDownWidth = 121;
     this.kcolModifiers.HeaderText    = "Modifiers";
     this.kcolModifiers.Name          = "kcolModifiers";
     this.kcolModifiers.Width         = 100;
     //
     // kcolKey
     //
     this.kcolKey.DataSource    = null;
     this.kcolKey.DropDownWidth = 121;
     this.kcolKey.HeaderText    = "Key";
     this.kcolKey.Name          = "kcolKey";
     this.kcolKey.Width         = 100;
     //
     // kcolmnAction
     //
     this.kcolmnAction.AutoSizeMode  = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
     this.kcolmnAction.DataSource    = null;
     this.kcolmnAction.DropDownWidth = 121;
     this.kcolmnAction.HeaderText    = "Action";
     this.kcolmnAction.Name          = "kcolmnAction";
     this.kcolmnAction.Width         = 464;
     //
     // HotkeysEditorWindow
     //
     this.ClientSize = new System.Drawing.Size(691, 463);
     this.Controls.Add(this.kryptonPanel2);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kryptonPanel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "HotkeysEditorWindow";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.Text            = "Hotkey Editor";
     this.FormClosing    += new System.Windows.Forms.FormClosingEventHandler(this.HotkeysEditorWindow_FormClosing);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     this.kryptonPanel2.ResumeLayout(false);
     this.kryptonPanel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kdgv)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgv)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.kgv)).EndInit();
     this.ResumeLayout(false);
 }
Beispiel #20
0
 private void InitializeComponent()
 {
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     this.tableLayoutPanel11   = new System.Windows.Forms.TableLayoutPanel();
     this.tableLayoutPanel1    = new System.Windows.Forms.TableLayoutPanel();
     this.btnnext              = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.btnsave              = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.dtalent              = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
     this.kryptonPanel26       = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonLabel114      = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.selpersonid          = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.selpersonidstartdate = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewNumericUpDownColumn();
     this.selpersonname        = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewButtonColumn();
     this.TalentsPlanRA        = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.selpersonfee         = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
     this.ctalOrder            = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.up     = new System.Windows.Forms.DataGridViewImageColumn();
     this.down   = new System.Windows.Forms.DataGridViewImageColumn();
     this.delete = new System.Windows.Forms.DataGridViewImageColumn();
     this.tableLayoutPanel11.SuspendLayout();
     this.tableLayoutPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dtalent)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel26)).BeginInit();
     this.kryptonPanel26.SuspendLayout();
     this.SuspendLayout();
     //
     // tableLayoutPanel11
     //
     this.tableLayoutPanel11.ColumnCount = 3;
     this.tableLayoutPanel11.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 50F));
     this.tableLayoutPanel11.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel11.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 50F));
     this.tableLayoutPanel11.Controls.Add(this.tableLayoutPanel1, 1, 3);
     this.tableLayoutPanel11.Controls.Add(this.dtalent, 1, 2);
     this.tableLayoutPanel11.Controls.Add(this.kryptonPanel26, 1, 1);
     this.tableLayoutPanel11.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel11.Location = new System.Drawing.Point(0, 0);
     this.tableLayoutPanel11.Name     = "tableLayoutPanel11";
     this.tableLayoutPanel11.RowCount = 5;
     this.tableLayoutPanel11.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableLayoutPanel11.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
     this.tableLayoutPanel11.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel11.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
     this.tableLayoutPanel11.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableLayoutPanel11.Size     = new System.Drawing.Size(1002, 594);
     this.tableLayoutPanel11.TabIndex = 2;
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.ColumnCount = 3;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 103F));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 100F));
     this.tableLayoutPanel1.Controls.Add(this.btnnext, 2, 0);
     this.tableLayoutPanel1.Controls.Add(this.btnsave, 1, 0);
     this.tableLayoutPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel1.Location = new System.Drawing.Point(53, 537);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 1;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel1.Size     = new System.Drawing.Size(896, 34);
     this.tableLayoutPanel1.TabIndex = 4;
     //
     // btnnext
     //
     this.btnnext.Location    = new System.Drawing.Point(799, 3);
     this.btnnext.Name        = "btnnext";
     this.btnnext.Size        = new System.Drawing.Size(90, 25);
     this.btnnext.TabIndex    = 1;
     this.btnnext.Values.Text = "下一页";
     this.btnnext.Click      += new System.EventHandler(this.btnnext_Click);
     //
     // btnsave
     //
     this.btnsave.Location    = new System.Drawing.Point(696, 3);
     this.btnsave.Name        = "btnsave";
     this.btnsave.Size        = new System.Drawing.Size(90, 25);
     this.btnsave.TabIndex    = 0;
     this.btnsave.Values.Text = "保存";
     this.btnsave.Click      += new System.EventHandler(this.btnsave_Click);
     //
     // dtalent
     //
     this.dtalent.AllowUserToResizeRows = false;
     this.dtalent.AutoSizeRowsMode      = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders;
     this.dtalent.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
         this.selpersonid,
         this.selpersonidstartdate,
         this.selpersonname,
         this.TalentsPlanRA,
         this.selpersonfee,
         this.ctalOrder,
         this.up,
         this.down,
         this.delete
     });
     this.dtalent.Dock                                   = System.Windows.Forms.DockStyle.Fill;
     this.dtalent.Location                               = new System.Drawing.Point(53, 63);
     this.dtalent.MultiSelect                            = false;
     this.dtalent.Name                                   = "dtalent";
     dataGridViewCellStyle1.Font                         = new System.Drawing.Font("仿宋_GB2312", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     dataGridViewCellStyle1.WrapMode                     = System.Windows.Forms.DataGridViewTriState.True;
     this.dtalent.RowsDefaultCellStyle                   = dataGridViewCellStyle1;
     this.dtalent.RowTemplate.Height                     = 28;
     this.dtalent.Size                                   = new System.Drawing.Size(896, 468);
     this.dtalent.StateCommon.Background.Color1          = System.Drawing.Color.White;
     this.dtalent.StateCommon.BackStyle                  = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.GridBackgroundList;
     this.dtalent.StateCommon.HeaderColumn.Content.Font  = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.dtalent.StateCommon.HeaderColumn.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center;
     this.dtalent.TabIndex                               = 2;
     this.dtalent.CellContentClick                      += new System.Windows.Forms.DataGridViewCellEventHandler(this.dtalent_CellContentClick);
     this.dtalent.EditingControlShowing                 += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dtalent_EditingControlShowing);
     this.dtalent.RowsAdded                             += new System.Windows.Forms.DataGridViewRowsAddedEventHandler(this.dtalent_RowsAdded);
     //
     // kryptonPanel26
     //
     this.kryptonPanel26.Controls.Add(this.kryptonLabel114);
     this.kryptonPanel26.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel26.Location = new System.Drawing.Point(50, 20);
     this.kryptonPanel26.Margin   = new System.Windows.Forms.Padding(0);
     this.kryptonPanel26.Name     = "kryptonPanel26";
     this.kryptonPanel26.Size     = new System.Drawing.Size(902, 40);
     this.kryptonPanel26.TabIndex = 1;
     //
     // kryptonLabel114
     //
     this.kryptonLabel114.Location = new System.Drawing.Point(3, 10);
     this.kryptonLabel114.Name     = "kryptonLabel114";
     this.kryptonLabel114.Size     = new System.Drawing.Size(577, 27);
     this.kryptonLabel114.StateCommon.LongText.Font  = new System.Drawing.Font("楷体_GB2312", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.kryptonLabel114.StateCommon.ShortText.Font = new System.Drawing.Font("黑体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.kryptonLabel114.TabIndex         = 0;
     this.kryptonLabel114.Values.ExtraText = "(按时间倒序填写入选国家和军队人才计划情况)";
     this.kryptonLabel114.Values.Text      = "四、入选人才计划情况";
     //
     // selpersonid
     //
     this.selpersonid.HeaderText = "id";
     this.selpersonid.Name       = "selpersonid";
     this.selpersonid.Visible    = false;
     //
     // selpersonidstartdate
     //
     this.selpersonidstartdate.HeaderText = "入选时间";
     this.selpersonidstartdate.Maximum    = new decimal(new int[] {
         9999,
         0,
         0,
         0
     });
     this.selpersonidstartdate.Minimum = new decimal(new int[] {
         1990,
         0,
         0,
         0
     });
     this.selpersonidstartdate.Name      = "selpersonidstartdate";
     this.selpersonidstartdate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.selpersonidstartdate.Width     = 100;
     //
     // selpersonname
     //
     this.selpersonname.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
     this.selpersonname.HeaderText   = "人才计划名称";
     this.selpersonname.Name         = "selpersonname";
     this.selpersonname.Resizable    = System.Windows.Forms.DataGridViewTriState.True;
     //
     // TalentsPlanRA
     //
     this.TalentsPlanRA.HeaderText = "研究方向";
     this.TalentsPlanRA.Name       = "TalentsPlanRA";
     this.TalentsPlanRA.SortMode   = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.TalentsPlanRA.Width      = 200;
     //
     // selpersonfee
     //
     this.selpersonfee.HeaderText = "资助经费(万)";
     this.selpersonfee.Name       = "selpersonfee";
     this.selpersonfee.SortMode   = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.selpersonfee.Width      = 110;
     //
     // ctalOrder
     //
     this.ctalOrder.HeaderText = "ctalOrder";
     this.ctalOrder.Name       = "ctalOrder";
     this.ctalOrder.Visible    = false;
     //
     // up
     //
     this.up.HeaderText = "上移";
     this.up.Name       = "up";
     this.up.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     this.up.Width      = 45;
     //
     // down
     //
     this.down.HeaderText = "下移";
     this.down.Name       = "down";
     this.down.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     this.down.Width      = 45;
     //
     // delete
     //
     this.delete.HeaderText = "删除";
     this.delete.Name       = "delete";
     this.delete.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     this.delete.Width      = 45;
     //
     // frmTalentsPlan
     //
     this.Controls.Add(this.tableLayoutPanel11);
     this.Name   = "frmTalentsPlan";
     this.Size   = new System.Drawing.Size(1002, 594);
     this.Leave += new System.EventHandler(this.frmTalentsPlan_Leave);
     this.tableLayoutPanel11.ResumeLayout(false);
     this.tableLayoutPanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dtalent)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel26)).EndInit();
     this.kryptonPanel26.ResumeLayout(false);
     this.kryptonPanel26.PerformLayout();
     this.ResumeLayout(false);
 }
Beispiel #21
0
 protected override void CrearColumnas(KryptonDataGridView gridDetalle)
 {
     base.CrearColumnas(gridDetalle);
     gridDetalle.Columns.Add("Col1", "Columna1");
 }
Beispiel #22
0
 internal void SetParent(KryptonDataGridView parent, Func <string, string> action = null)
 {
     this.parent = parent;
     this.action = action;
 }
Beispiel #23
0
 private void InitializeComponent()
 {
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     this.tableLayoutPanel14 = new System.Windows.Forms.TableLayoutPanel();
     this.tableLayoutPanel1  = new System.Windows.Forms.TableLayoutPanel();
     this.btnnext            = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.btnsave            = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kryptonPanel29     = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonLabel1      = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kryptonLabel117    = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.dTechnologyAwards  = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
     this.scienceid          = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.sciencename        = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.sciencelevel       = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewButtonColumn();
     this.sciencedate        = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewNumericUpDownColumn();
     this.scienceorder       = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
     this.scienceattup       = new System.Windows.Forms.DataGridViewImageColumn();
     this.scienceattainfo    = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewLinkColumn();
     this.hiddenStoreName    = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.UpLoadFullyName    = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.scienceup          = new System.Windows.Forms.DataGridViewImageColumn();
     this.sciencedown        = new System.Windows.Forms.DataGridViewImageColumn();
     this.sciencedelete      = new System.Windows.Forms.DataGridViewImageColumn();
     this.tecOrder           = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.tableLayoutPanel14.SuspendLayout();
     this.tableLayoutPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel29)).BeginInit();
     this.kryptonPanel29.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dTechnologyAwards)).BeginInit();
     this.SuspendLayout();
     //
     // tableLayoutPanel14
     //
     this.tableLayoutPanel14.ColumnCount = 3;
     this.tableLayoutPanel14.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 50F));
     this.tableLayoutPanel14.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel14.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 50F));
     this.tableLayoutPanel14.Controls.Add(this.tableLayoutPanel1, 1, 3);
     this.tableLayoutPanel14.Controls.Add(this.kryptonPanel29, 1, 1);
     this.tableLayoutPanel14.Controls.Add(this.dTechnologyAwards, 1, 2);
     this.tableLayoutPanel14.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel14.Location = new System.Drawing.Point(0, 0);
     this.tableLayoutPanel14.Name     = "tableLayoutPanel14";
     this.tableLayoutPanel14.RowCount = 5;
     this.tableLayoutPanel14.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableLayoutPanel14.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 80F));
     this.tableLayoutPanel14.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel14.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
     this.tableLayoutPanel14.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableLayoutPanel14.Size     = new System.Drawing.Size(1020, 603);
     this.tableLayoutPanel14.TabIndex = 2;
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.ColumnCount = 3;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 103F));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 100F));
     this.tableLayoutPanel1.Controls.Add(this.btnnext, 2, 0);
     this.tableLayoutPanel1.Controls.Add(this.btnsave, 1, 0);
     this.tableLayoutPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel1.Location = new System.Drawing.Point(53, 546);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 1;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel1.Size     = new System.Drawing.Size(914, 34);
     this.tableLayoutPanel1.TabIndex = 5;
     //
     // btnnext
     //
     this.btnnext.Location    = new System.Drawing.Point(817, 3);
     this.btnnext.Name        = "btnnext";
     this.btnnext.Size        = new System.Drawing.Size(90, 25);
     this.btnnext.TabIndex    = 1;
     this.btnnext.Values.Text = "下一页";
     this.btnnext.Click      += new System.EventHandler(this.btnnext_Click);
     //
     // btnsave
     //
     this.btnsave.Location    = new System.Drawing.Point(714, 3);
     this.btnsave.Name        = "btnsave";
     this.btnsave.Size        = new System.Drawing.Size(90, 25);
     this.btnsave.TabIndex    = 0;
     this.btnsave.Values.Text = "保存";
     this.btnsave.Click      += new System.EventHandler(this.btnsave_Click);
     //
     // kryptonPanel29
     //
     this.kryptonPanel29.Controls.Add(this.kryptonLabel1);
     this.kryptonPanel29.Controls.Add(this.kryptonLabel117);
     this.kryptonPanel29.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel29.Location = new System.Drawing.Point(50, 20);
     this.kryptonPanel29.Margin   = new System.Windows.Forms.Padding(0);
     this.kryptonPanel29.Name     = "kryptonPanel29";
     this.kryptonPanel29.Size     = new System.Drawing.Size(920, 80);
     this.kryptonPanel29.TabIndex = 0;
     //
     // kryptonLabel1
     //
     this.kryptonLabel1.Location = new System.Drawing.Point(3, 36);
     this.kryptonLabel1.Name     = "kryptonLabel1";
     this.kryptonLabel1.Size     = new System.Drawing.Size(308, 41);
     this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("仿宋_GB2312", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.kryptonLabel1.TabIndex    = 2;
     this.kryptonLabel1.Values.Text = "1.附件材料需为PDF或者JPG格式。\r\n2.提交纸质材料时,附件需要完整打印。";
     //
     // kryptonLabel117
     //
     this.kryptonLabel117.Location = new System.Drawing.Point(0, 10);
     this.kryptonLabel117.Name     = "kryptonLabel117";
     this.kryptonLabel117.Size     = new System.Drawing.Size(610, 27);
     this.kryptonLabel117.StateCommon.LongText.Font  = new System.Drawing.Font("楷体_GB2312", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.kryptonLabel117.StateCommon.ShortText.Font = new System.Drawing.Font("黑体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.kryptonLabel117.TabIndex         = 0;
     this.kryptonLabel117.Values.ExtraText = "(10项以内,主要包括国家、省部级或军队科技奖励)";
     this.kryptonLabel117.Values.Text      = "七、重要科技奖项情况\r\n";
     //
     // dTechnologyAwards
     //
     this.dTechnologyAwards.AllowUserToResizeRows = false;
     this.dTechnologyAwards.AutoSizeRowsMode      = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders;
     this.dTechnologyAwards.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
         this.scienceid,
         this.sciencename,
         this.sciencelevel,
         this.sciencedate,
         this.scienceorder,
         this.scienceattup,
         this.scienceattainfo,
         this.hiddenStoreName,
         this.UpLoadFullyName,
         this.scienceup,
         this.sciencedown,
         this.sciencedelete,
         this.tecOrder
     });
     this.dTechnologyAwards.Dock                                   = System.Windows.Forms.DockStyle.Fill;
     this.dTechnologyAwards.Location                               = new System.Drawing.Point(53, 103);
     this.dTechnologyAwards.MultiSelect                            = false;
     this.dTechnologyAwards.Name                                   = "dTechnologyAwards";
     dataGridViewCellStyle1.Font                                   = new System.Drawing.Font("仿宋_GB2312", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     dataGridViewCellStyle1.WrapMode                               = System.Windows.Forms.DataGridViewTriState.True;
     this.dTechnologyAwards.RowsDefaultCellStyle                   = dataGridViewCellStyle1;
     this.dTechnologyAwards.RowTemplate.Height                     = 28;
     this.dTechnologyAwards.Size                                   = new System.Drawing.Size(914, 437);
     this.dTechnologyAwards.StateCommon.Background.Color1          = System.Drawing.Color.White;
     this.dTechnologyAwards.StateCommon.BackStyle                  = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.GridBackgroundList;
     this.dTechnologyAwards.StateCommon.HeaderColumn.Content.Font  = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.dTechnologyAwards.StateCommon.HeaderColumn.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center;
     this.dTechnologyAwards.TabIndex                               = 1;
     this.dTechnologyAwards.CellContentClick                      += new System.Windows.Forms.DataGridViewCellEventHandler(this.dTechnologyAwards_CellContentClick);
     this.dTechnologyAwards.RowsAdded                             += new System.Windows.Forms.DataGridViewRowsAddedEventHandler(this.dTechnologyAwards_RowsAdded);
     //
     // scienceid
     //
     this.scienceid.HeaderText = "序号";
     this.scienceid.Name       = "scienceid";
     this.scienceid.SortMode   = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.scienceid.Visible    = false;
     this.scienceid.Width      = 40;
     //
     // sciencename
     //
     this.sciencename.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
     this.sciencename.HeaderText   = "项目名称";
     this.sciencename.MinimumWidth = 100;
     this.sciencename.Name         = "sciencename";
     this.sciencename.SortMode     = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     //
     // sciencelevel
     //
     this.sciencelevel.HeaderText = "奖励类别及等级";
     this.sciencelevel.Name       = "sciencelevel";
     this.sciencelevel.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     this.sciencelevel.Width      = 130;
     //
     // sciencedate
     //
     this.sciencedate.HeaderText = "获奖时间";
     this.sciencedate.Maximum    = new decimal(new int[] {
         9999,
         0,
         0,
         0
     });
     this.sciencedate.Minimum = new decimal(new int[] {
         1990,
         0,
         0,
         0
     });
     this.sciencedate.Name      = "sciencedate";
     this.sciencedate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.sciencedate.Width     = 100;
     //
     // scienceorder
     //
     this.scienceorder.HeaderText = "排名";
     this.scienceorder.Name       = "scienceorder";
     this.scienceorder.SortMode   = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.scienceorder.Width      = 50;
     //
     // scienceattup
     //
     this.scienceattup.HeaderText = "附件";
     this.scienceattup.Name       = "scienceattup";
     this.scienceattup.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     this.scienceattup.Width      = 45;
     //
     // scienceattainfo
     //
     this.scienceattainfo.HeaderText = "附件信息";
     this.scienceattainfo.Name       = "scienceattainfo";
     this.scienceattainfo.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     this.scienceattainfo.Width      = 150;
     //
     // hiddenStoreName
     //
     this.hiddenStoreName.HeaderText = "存储名称";
     this.hiddenStoreName.Name       = "hiddenStoreName";
     this.hiddenStoreName.SortMode   = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.hiddenStoreName.Visible    = false;
     //
     // UpLoadFullyName
     //
     this.UpLoadFullyName.HeaderText = "上传路径";
     this.UpLoadFullyName.Name       = "UpLoadFullyName";
     this.UpLoadFullyName.SortMode   = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.UpLoadFullyName.Visible    = false;
     //
     // scienceup
     //
     this.scienceup.HeaderText = "上移";
     this.scienceup.Name       = "scienceup";
     this.scienceup.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     this.scienceup.Width      = 45;
     //
     // sciencedown
     //
     this.sciencedown.HeaderText = "下移";
     this.sciencedown.Name       = "sciencedown";
     this.sciencedown.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     this.sciencedown.Width      = 45;
     //
     // sciencedelete
     //
     this.sciencedelete.HeaderText = "删除";
     this.sciencedelete.Name       = "sciencedelete";
     this.sciencedelete.Resizable  = System.Windows.Forms.DataGridViewTriState.True;
     this.sciencedelete.Width      = 45;
     //
     // tecOrder
     //
     this.tecOrder.HeaderText = "排序";
     this.tecOrder.Name       = "tecOrder";
     this.tecOrder.SortMode   = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
     this.tecOrder.Visible    = false;
     //
     // frmTechnologyAwards
     //
     this.Controls.Add(this.tableLayoutPanel14);
     this.Name   = "frmTechnologyAwards";
     this.Size   = new System.Drawing.Size(1020, 603);
     this.Leave += new System.EventHandler(this.frmTechnologyAwards_Leave);
     this.tableLayoutPanel14.ResumeLayout(false);
     this.tableLayoutPanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel29)).EndInit();
     this.kryptonPanel29.ResumeLayout(false);
     this.kryptonPanel29.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dTechnologyAwards)).EndInit();
     this.ResumeLayout(false);
 }
Beispiel #24
0
 public KryptonDataGridViewProxy(KryptonDataGridView grid)
 {
     _grid = grid;
 }
Beispiel #25
0
 private void InitializeComponent()
 {
     this.kryptonPanel1     = new Krypton.Toolkit.KryptonPanel();
     this.kbtnScan          = new Krypton.Toolkit.KryptonButton();
     this.ktxtWorkGroupName = new Krypton.Toolkit.KryptonTextBox();
     this.kryptonLabel1     = new Krypton.Toolkit.KryptonLabel();
     this.kryptonPanel2     = new Krypton.Toolkit.KryptonPanel();
     this.kdgvNodes         = new Krypton.Toolkit.KryptonDataGridView();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     this.kryptonPanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kdgvNodes)).BeginInit();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.kbtnScan);
     this.kryptonPanel1.Controls.Add(this.ktxtWorkGroupName);
     this.kryptonPanel1.Controls.Add(this.kryptonLabel1);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(585, 44);
     this.kryptonPanel1.TabIndex = 0;
     //
     // kbtnScan
     //
     this.kbtnScan.Enabled     = false;
     this.kbtnScan.Location    = new System.Drawing.Point(472, 12);
     this.kbtnScan.Name        = "kbtnScan";
     this.kbtnScan.Size        = new System.Drawing.Size(101, 25);
     this.kbtnScan.TabIndex    = 2;
     this.kbtnScan.Values.Text = "St&art Scan";
     this.kbtnScan.Click      += new System.EventHandler(this.kbtnScan_Click);
     //
     // ktxtWorkGroupName
     //
     this.ktxtWorkGroupName.Hint     = "Type a domain or workgroup name here...";
     this.ktxtWorkGroupName.Location = new System.Drawing.Point(178, 12);
     this.ktxtWorkGroupName.Name     = "ktxtWorkGroupName";
     this.ktxtWorkGroupName.Size     = new System.Drawing.Size(287, 23);
     this.ktxtWorkGroupName.TabIndex = 1;
     //
     // kryptonLabel1
     //
     this.kryptonLabel1.Location    = new System.Drawing.Point(12, 12);
     this.kryptonLabel1.Name        = "kryptonLabel1";
     this.kryptonLabel1.Size        = new System.Drawing.Size(159, 20);
     this.kryptonLabel1.TabIndex    = 0;
     this.kryptonLabel1.Values.Text = "Domain/Workgroup Name:";
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Controls.Add(this.kdgvNodes);
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 44);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(585, 394);
     this.kryptonPanel2.TabIndex = 0;
     //
     // kdgvNodes
     //
     this.kdgvNodes.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kdgvNodes.Location = new System.Drawing.Point(0, 0);
     this.kdgvNodes.Name     = "kdgvNodes";
     this.kdgvNodes.Size     = new System.Drawing.Size(585, 394);
     this.kdgvNodes.TabIndex = 1;
     //
     // NetworkScannerWindow
     //
     this.ClientSize = new System.Drawing.Size(585, 438);
     this.Controls.Add(this.kryptonPanel2);
     this.Controls.Add(this.kryptonPanel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "NetworkScannerWindow";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text            = "Scan Network";
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     this.kryptonPanel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     this.kryptonPanel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kdgvNodes)).EndInit();
     this.ResumeLayout(false);
 }