コード例 #1
0
 /// <summary>
 /// Конструктор.
 /// </summary>
 /// <param name="formName">Имя формы с котрой вызывается поиск</param>
 /// <param name="GridDG"></param>
 /// <param name="GridSG"></param>
 public FormSearch(string formName, FBA.DataGridViewFBA GridDG, FBA.GridFBA GridSG)
 {
     InitializeComponent();
     this.DG       = (FBA.DataGridViewFBA)GridDG;
     this.SG       = (FBA.GridFBA)GridSG;
     this.DG       = GridDG;
     this.SG       = GridSG;
     this.FormName = formName;
 }
コード例 #2
0
ファイル: sysArray.cs プロジェクト: ewgeny911/FBA
 /// <summary>
 /// Сохранение DataTable в двумерный массив строк.
 /// </summary>
 /// <param name="dg">FBA.DataGridViewFB</param>
 /// <param name="ar">Выходной массив</param>
 /// <returns>Если успешно, то true</returns>
 public static bool DataGridViewToArray(FBA.DataGridViewFBA dg, out string[,] ar)
 {
     ar = new string[dg.Rows.Count, dg.Columns.Count];
     for (int i = 0; i < dg.Rows.Count; i++)
     {
         for (int j = 0; j < dg.Columns.Count; j++)
         {
             ar[i, j] = dg.Rows[i].Cells[j].Value.ToString();
         }
     }
     return(true);
 }
コード例 #3
0
        /// <summary>
        /// Метод СТАТИЧЕСКИЙ для вызова данной формы.
        /// </summary>
        /// <param name="formName">Имя формы</param>
        /// <param name="gridDG">Можно искать по гриду FBA.DataGridViewFBA</param>
        /// <param name="gridSG">Можно искать по гриду FBA.GridFBA</param>
        /// <returns></returns>
        public static FormSearch FormSearchShow(string formName, FBA.DataGridViewFBA gridDG, FBA.GridFBA gridSG)
        {
            if (Var.FormSearchParam.Contains(formName + ";"))
            {
                return(null);
            }
            Var.FormSearchParam = Var.FormSearchParam + formName + ";";
            var F1 = new FormSearch(formName, gridDG, gridSG);

            //История поиска.
            GetHistorySearch(F1.EditFBA1.comboBox);

            int GridLeft = 0; //Чтобы высчитать координаты появления формы поиска на экране относительно грида.
            int GridTop  = 0; //Чтобы высчитать координаты появления формы поиска на экране относительно грида.

            //Установка местоположения появления формы.
            if (gridDG != null)
            {
                GridLeft = gridDG.Left;
                GridTop  = gridDG.Top;
            }
            if (gridSG != null)
            {
                GridLeft = gridSG.Left;
                GridTop  = gridSG.Top;
            }

            var   p1 = new Point(GridLeft, GridTop);
            Point p2 = F1.PointToScreen(p1);

            F1.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
            F1.Left          = p2.X + 70;
            F1.Top           = p2.Y - 20;
            F1.Show();
            return(F1);
        }
コード例 #4
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormGrant));
     this.tabControlMain = new System.Windows.Forms.TabControl();
     this.tbUser         = new System.Windows.Forms.TabPage();
     this.dgvUser        = new FBA.DataGridViewFBA();
     this.toolStripUser  = new System.Windows.Forms.ToolStrip();
     this.tbUser4        = new System.Windows.Forms.ToolStripButton();
     this.tbUser1        = new System.Windows.Forms.ToolStripButton();
     this.tbUser2        = new System.Windows.Forms.ToolStripButton();
     this.tbUser3        = new System.Windows.Forms.ToolStripButton();
     this.tbUser5        = new System.Windows.Forms.ToolStripButton();
     this.tbUser6        = new System.Windows.Forms.ToolStripButton();
     this.tbRole         = new System.Windows.Forms.TabPage();
     this.dgvRole        = new FBA.DataGridViewFBA();
     this.toolStripRole  = new System.Windows.Forms.ToolStrip();
     this.tbRole4        = new System.Windows.Forms.ToolStripButton();
     this.tbRole1        = new System.Windows.Forms.ToolStripButton();
     this.tbRole3        = new System.Windows.Forms.ToolStripButton();
     this.tbRole2        = new System.Windows.Forms.ToolStripButton();
     this.tbRight        = new System.Windows.Forms.TabPage();
     this.dgvRight       = new FBA.DataGridViewFBA();
     this.toolStripRight = new System.Windows.Forms.ToolStrip();
     this.tbRight4       = new System.Windows.Forms.ToolStripButton();
     this.tbRight1       = new System.Windows.Forms.ToolStripButton();
     this.tbRight3       = new System.Windows.Forms.ToolStripButton();
     this.tbRight2       = new System.Windows.Forms.ToolStripButton();
     this.tbUserHist     = new System.Windows.Forms.TabPage();
     this.sgHist         = new FBA.GridFBA();
     this.toolStripHist  = new System.Windows.Forms.ToolStrip();
     this.tbHist1        = new System.Windows.Forms.ToolStripButton();
     this.imageList1     = new System.Windows.Forms.ImageList(this.components);
     this.tabControlMain.SuspendLayout();
     this.tbUser.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvUser)).BeginInit();
     this.toolStripUser.SuspendLayout();
     this.tbRole.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvRole)).BeginInit();
     this.toolStripRole.SuspendLayout();
     this.tbRight.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvRight)).BeginInit();
     this.toolStripRight.SuspendLayout();
     this.tbUserHist.SuspendLayout();
     this.toolStripHist.SuspendLayout();
     this.SuspendLayout();
     //
     // tabControlMain
     //
     this.tabControlMain.Controls.Add(this.tbUser);
     this.tabControlMain.Controls.Add(this.tbRole);
     this.tabControlMain.Controls.Add(this.tbRight);
     this.tabControlMain.Controls.Add(this.tbUserHist);
     this.tabControlMain.Dock                  = System.Windows.Forms.DockStyle.Fill;
     this.tabControlMain.Font                  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tabControlMain.ImageList             = this.imageList1;
     this.tabControlMain.Location              = new System.Drawing.Point(0, 0);
     this.tabControlMain.Name                  = "tabControlMain";
     this.tabControlMain.SelectedIndex         = 0;
     this.tabControlMain.Size                  = new System.Drawing.Size(512, 354);
     this.tabControlMain.TabIndex              = 49;
     this.tabControlMain.SelectedIndexChanged += new System.EventHandler(this.TabControlMainSelectedIndexChanged);
     //
     // tbUser
     //
     this.tbUser.Controls.Add(this.dgvUser);
     this.tbUser.Controls.Add(this.toolStripUser);
     this.tbUser.ImageIndex = 0;
     this.tbUser.Location   = new System.Drawing.Point(4, 26);
     this.tbUser.Name       = "tbUser";
     this.tbUser.Padding    = new System.Windows.Forms.Padding(3);
     this.tbUser.Size       = new System.Drawing.Size(504, 324);
     this.tbUser.TabIndex   = 6;
     this.tbUser.Text       = "User";
     this.tbUser.UseVisualStyleBackColor = true;
     //
     // dgvUser
     //
     this.dgvUser.AllowUserToAddRows              = false;
     this.dgvUser.AllowUserToDeleteRows           = false;
     this.dgvUser.AllowUserToOrderColumns         = true;
     this.dgvUser.AllowUserToResizeRows           = false;
     dataGridViewCellStyle1.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
     this.dgvUser.AutoSizeRowsMode            = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
     this.dgvUser.BackgroundColor             = System.Drawing.SystemColors.GradientInactiveCaption;
     this.dgvUser.ClipboardCopyMode           = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
     this.dgvUser.ColumnHeadersBorderStyle    = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
     this.dgvUser.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvUser.CommandAdd           = false;
     this.dgvUser.CommandDel           = false;
     this.dgvUser.CommandEdit          = false;
     this.dgvUser.CommandExportToExcel = false;
     this.dgvUser.CommandFilter        = false;
     this.dgvUser.CommandRefresh       = false;
     this.dgvUser.CommandSaveASCSV     = false;
     this.dgvUser.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.dgvUser.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
     this.dgvUser.EnableHeadersVisualStyles = false;
     this.dgvUser.GroupEnabled          = null;
     this.dgvUser.Location              = new System.Drawing.Point(3, 28);
     this.dgvUser.Margin                = new System.Windows.Forms.Padding(1);
     this.dgvUser.MultiSelect           = false;
     this.dgvUser.Name                  = "dgvUser";
     this.dgvUser.Obj                   = null;
     this.dgvUser.PassedSec             = null;
     this.dgvUser.ReadOnly              = true;
     this.dgvUser.RowHeadersVisible     = false;
     this.dgvUser.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvUser.SelectionMode         = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvUser.Size                  = new System.Drawing.Size(498, 293);
     this.dgvUser.TabIndex              = 2;
     this.dgvUser.DoubleClick          += new System.EventHandler(this.DgvUserDoubleClick);
     //
     // toolStripUser
     //
     this.toolStripUser.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tbUser4,
         this.tbUser1,
         this.tbUser2,
         this.tbUser3,
         this.tbUser5,
         this.tbUser6
     });
     this.toolStripUser.Location = new System.Drawing.Point(3, 3);
     this.toolStripUser.Name     = "toolStripUser";
     this.toolStripUser.Size     = new System.Drawing.Size(498, 25);
     this.toolStripUser.TabIndex = 12;
     this.toolStripUser.Text     = "toolStrip4";
     //
     // tbUser4
     //
     this.tbUser4.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbUser4.Image = global::FBA.Resource.Refresh_16;
     this.tbUser4.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbUser4.Name   = "tbUser4";
     this.tbUser4.Size   = new System.Drawing.Size(80, 22);
     this.tbUser4.Text   = "Refresh";
     this.tbUser4.Click += new System.EventHandler(this.TbUser1Click);
     //
     // tbUser1
     //
     this.tbUser1.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbUser1.Image = global::FBA.Resource.Add_16;
     this.tbUser1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbUser1.Name   = "tbUser1";
     this.tbUser1.Size   = new System.Drawing.Size(53, 22);
     this.tbUser1.Text   = "Add";
     this.tbUser1.Click += new System.EventHandler(this.TbUser1Click);
     //
     // tbUser2
     //
     this.tbUser2.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbUser2.Image = global::FBA.Resource.Del_16;
     this.tbUser2.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbUser2.Name   = "tbUser2";
     this.tbUser2.Size   = new System.Drawing.Size(50, 22);
     this.tbUser2.Text   = "Del";
     this.tbUser2.Click += new System.EventHandler(this.TbUser1Click);
     //
     // tbUser3
     //
     this.tbUser3.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbUser3.Image = global::FBA.Resource.Edit_16;
     this.tbUser3.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbUser3.Name   = "tbUser3";
     this.tbUser3.Size   = new System.Drawing.Size(53, 22);
     this.tbUser3.Text   = "Edit";
     this.tbUser3.Click += new System.EventHandler(this.TbUser1Click);
     //
     // tbUser5
     //
     this.tbUser5.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbUser5.Image = global::FBA.Resource.block_16;
     this.tbUser5.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbUser5.Name   = "tbUser5";
     this.tbUser5.Size   = new System.Drawing.Size(64, 22);
     this.tbUser5.Text   = "Block";
     this.tbUser5.Click += new System.EventHandler(this.TbUser1Click);
     //
     // tbUser6
     //
     this.tbUser6.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbUser6.Image = global::FBA.Resource.unblock_16;
     this.tbUser6.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbUser6.Name   = "tbUser6";
     this.tbUser6.Size   = new System.Drawing.Size(80, 22);
     this.tbUser6.Text   = "Unblock";
     this.tbUser6.Click += new System.EventHandler(this.TbUser1Click);
     //
     // tbRole
     //
     this.tbRole.Controls.Add(this.dgvRole);
     this.tbRole.Controls.Add(this.toolStripRole);
     this.tbRole.ImageIndex = 1;
     this.tbRole.Location   = new System.Drawing.Point(4, 26);
     this.tbRole.Name       = "tbRole";
     this.tbRole.Padding    = new System.Windows.Forms.Padding(3);
     this.tbRole.Size       = new System.Drawing.Size(504, 324);
     this.tbRole.TabIndex   = 7;
     this.tbRole.Text       = "Role";
     this.tbRole.UseVisualStyleBackColor = true;
     //
     // dgvRole
     //
     this.dgvRole.AllowUserToAddRows              = false;
     this.dgvRole.AllowUserToDeleteRows           = false;
     this.dgvRole.AllowUserToOrderColumns         = true;
     this.dgvRole.AllowUserToResizeRows           = false;
     dataGridViewCellStyle2.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.dgvRole.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle2;
     this.dgvRole.AutoSizeRowsMode            = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
     this.dgvRole.BackgroundColor             = System.Drawing.SystemColors.GradientInactiveCaption;
     this.dgvRole.ClipboardCopyMode           = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
     this.dgvRole.ColumnHeadersBorderStyle    = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
     this.dgvRole.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvRole.CommandAdd           = false;
     this.dgvRole.CommandDel           = false;
     this.dgvRole.CommandEdit          = false;
     this.dgvRole.CommandExportToExcel = false;
     this.dgvRole.CommandFilter        = false;
     this.dgvRole.CommandRefresh       = false;
     this.dgvRole.CommandSaveASCSV     = false;
     this.dgvRole.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.dgvRole.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
     this.dgvRole.EnableHeadersVisualStyles = false;
     this.dgvRole.GroupEnabled          = null;
     this.dgvRole.Location              = new System.Drawing.Point(3, 28);
     this.dgvRole.Margin                = new System.Windows.Forms.Padding(1);
     this.dgvRole.MultiSelect           = false;
     this.dgvRole.Name                  = "dgvRole";
     this.dgvRole.Obj                   = null;
     this.dgvRole.PassedSec             = null;
     this.dgvRole.ReadOnly              = true;
     this.dgvRole.RowHeadersVisible     = false;
     this.dgvRole.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvRole.SelectionMode         = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvRole.Size                  = new System.Drawing.Size(498, 293);
     this.dgvRole.TabIndex              = 5;
     this.dgvRole.DoubleClick          += new System.EventHandler(this.DgvRoleDoubleClick);
     //
     // toolStripRole
     //
     this.toolStripRole.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tbRole4,
         this.tbRole1,
         this.tbRole3,
         this.tbRole2
     });
     this.toolStripRole.Location = new System.Drawing.Point(3, 3);
     this.toolStripRole.Name     = "toolStripRole";
     this.toolStripRole.Size     = new System.Drawing.Size(498, 25);
     this.toolStripRole.TabIndex = 12;
     this.toolStripRole.Text     = "toolStrip5";
     //
     // tbRole4
     //
     this.tbRole4.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbRole4.Image = global::FBA.Resource.Refresh_16;
     this.tbRole4.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbRole4.Name   = "tbRole4";
     this.tbRole4.Size   = new System.Drawing.Size(80, 22);
     this.tbRole4.Text   = "Refresh";
     this.tbRole4.Click += new System.EventHandler(this.TbRole1Click);
     //
     // tbRole1
     //
     this.tbRole1.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbRole1.Image = global::FBA.Resource.Add_16;
     this.tbRole1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbRole1.Name   = "tbRole1";
     this.tbRole1.Size   = new System.Drawing.Size(53, 22);
     this.tbRole1.Text   = "Add";
     this.tbRole1.Click += new System.EventHandler(this.TbRole1Click);
     //
     // tbRole3
     //
     this.tbRole3.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbRole3.Image = global::FBA.Resource.Edit_16;
     this.tbRole3.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbRole3.Name   = "tbRole3";
     this.tbRole3.Size   = new System.Drawing.Size(53, 22);
     this.tbRole3.Text   = "Edit";
     this.tbRole3.Click += new System.EventHandler(this.TbRole1Click);
     //
     // tbRole2
     //
     this.tbRole2.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbRole2.Image = global::FBA.Resource.Del_16;
     this.tbRole2.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbRole2.Name   = "tbRole2";
     this.tbRole2.Size   = new System.Drawing.Size(50, 22);
     this.tbRole2.Text   = "Del";
     this.tbRole2.Click += new System.EventHandler(this.TbRole1Click);
     //
     // tbRight
     //
     this.tbRight.Controls.Add(this.dgvRight);
     this.tbRight.Controls.Add(this.toolStripRight);
     this.tbRight.ImageIndex = 2;
     this.tbRight.Location   = new System.Drawing.Point(4, 26);
     this.tbRight.Name       = "tbRight";
     this.tbRight.Padding    = new System.Windows.Forms.Padding(3);
     this.tbRight.Size       = new System.Drawing.Size(504, 324);
     this.tbRight.TabIndex   = 8;
     this.tbRight.Text       = "Right";
     this.tbRight.UseVisualStyleBackColor = true;
     //
     // dgvRight
     //
     this.dgvRight.AllowUserToAddRows              = false;
     this.dgvRight.AllowUserToDeleteRows           = false;
     this.dgvRight.AllowUserToOrderColumns         = true;
     this.dgvRight.AllowUserToResizeRows           = false;
     dataGridViewCellStyle3.BackColor              = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.dgvRight.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
     this.dgvRight.AutoSizeRowsMode            = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
     this.dgvRight.BackgroundColor             = System.Drawing.SystemColors.GradientInactiveCaption;
     this.dgvRight.ClipboardCopyMode           = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
     this.dgvRight.ColumnHeadersBorderStyle    = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
     this.dgvRight.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvRight.CommandAdd           = false;
     this.dgvRight.CommandDel           = false;
     this.dgvRight.CommandEdit          = false;
     this.dgvRight.CommandExportToExcel = false;
     this.dgvRight.CommandFilter        = false;
     this.dgvRight.CommandRefresh       = false;
     this.dgvRight.CommandSaveASCSV     = false;
     this.dgvRight.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.dgvRight.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
     this.dgvRight.EnableHeadersVisualStyles = false;
     this.dgvRight.GroupEnabled          = null;
     this.dgvRight.Location              = new System.Drawing.Point(3, 28);
     this.dgvRight.Margin                = new System.Windows.Forms.Padding(1);
     this.dgvRight.MultiSelect           = false;
     this.dgvRight.Name                  = "dgvRight";
     this.dgvRight.Obj                   = null;
     this.dgvRight.PassedSec             = null;
     this.dgvRight.ReadOnly              = true;
     this.dgvRight.RowHeadersVisible     = false;
     this.dgvRight.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvRight.SelectionMode         = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvRight.Size                  = new System.Drawing.Size(498, 293);
     this.dgvRight.TabIndex              = 14;
     this.dgvRight.DoubleClick          += new System.EventHandler(this.DgvRightDoubleClick);
     //
     // toolStripRight
     //
     this.toolStripRight.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tbRight4,
         this.tbRight1,
         this.tbRight3,
         this.tbRight2
     });
     this.toolStripRight.Location = new System.Drawing.Point(3, 3);
     this.toolStripRight.Name     = "toolStripRight";
     this.toolStripRight.Size     = new System.Drawing.Size(498, 25);
     this.toolStripRight.TabIndex = 13;
     this.toolStripRight.Text     = "toolStrip4";
     //
     // tbRight4
     //
     this.tbRight4.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbRight4.Image = global::FBA.Resource.Refresh_16;
     this.tbRight4.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbRight4.Name   = "tbRight4";
     this.tbRight4.Size   = new System.Drawing.Size(80, 22);
     this.tbRight4.Text   = "Refresh";
     this.tbRight4.Click += new System.EventHandler(this.TbRight1Click);
     //
     // tbRight1
     //
     this.tbRight1.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbRight1.Image = global::FBA.Resource.Add_16;
     this.tbRight1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbRight1.Name   = "tbRight1";
     this.tbRight1.Size   = new System.Drawing.Size(53, 22);
     this.tbRight1.Text   = "Add";
     this.tbRight1.Click += new System.EventHandler(this.TbRight1Click);
     //
     // tbRight3
     //
     this.tbRight3.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbRight3.Image = global::FBA.Resource.Edit_16;
     this.tbRight3.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbRight3.Name   = "tbRight3";
     this.tbRight3.Size   = new System.Drawing.Size(53, 22);
     this.tbRight3.Text   = "Edit";
     this.tbRight3.Click += new System.EventHandler(this.TbRight1Click);
     //
     // tbRight2
     //
     this.tbRight2.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbRight2.Image = global::FBA.Resource.Del_16;
     this.tbRight2.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbRight2.Name   = "tbRight2";
     this.tbRight2.Size   = new System.Drawing.Size(50, 22);
     this.tbRight2.Text   = "Del";
     this.tbRight2.Click += new System.EventHandler(this.TbRight1Click);
     //
     // tbUserHist
     //
     this.tbUserHist.BackColor = System.Drawing.Color.WhiteSmoke;
     this.tbUserHist.Controls.Add(this.sgHist);
     this.tbUserHist.Controls.Add(this.toolStripHist);
     this.tbUserHist.ImageIndex = 3;
     this.tbUserHist.Location   = new System.Drawing.Point(4, 26);
     this.tbUserHist.Name       = "tbUserHist";
     this.tbUserHist.Padding    = new System.Windows.Forms.Padding(3);
     this.tbUserHist.Size       = new System.Drawing.Size(504, 324);
     this.tbUserHist.TabIndex   = 9;
     this.tbUserHist.Text       = "Logons history";
     //
     // sgHist
     //
     this.sgHist.BorderStyle           = System.Windows.Forms.BorderStyle.FixedSingle;
     this.sgHist.DefaultWidth          = 20;
     this.sgHist.DeleteQuestionMessage = "Are you sure to delete all the selected rows?";
     this.sgHist.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.sgHist.EnableSort    = false;
     this.sgHist.FixedRows     = 1;
     this.sgHist.Location      = new System.Drawing.Point(3, 28);
     this.sgHist.Name          = "sgHist";
     this.sgHist.SelectionMode = SourceGrid.GridSelectionMode.Cell;
     this.sgHist.Size          = new System.Drawing.Size(498, 293);
     this.sgHist.TabIndex      = 15;
     this.sgHist.TabStop       = true;
     this.sgHist.ToolTipText   = "";
     //
     // toolStripHist
     //
     this.toolStripHist.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tbHist1
     });
     this.toolStripHist.Location = new System.Drawing.Point(3, 3);
     this.toolStripHist.Name     = "toolStripHist";
     this.toolStripHist.Size     = new System.Drawing.Size(498, 25);
     this.toolStripHist.TabIndex = 14;
     this.toolStripHist.Text     = "toolStrip4";
     //
     // tbHist1
     //
     this.tbHist1.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbHist1.Image = global::FBA.Resource.Refresh_16;
     this.tbHist1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbHist1.Name   = "tbHist1";
     this.tbHist1.Size   = new System.Drawing.Size(80, 22);
     this.tbHist1.Text   = "Refresh";
     this.tbHist1.Click += new System.EventHandler(this.TbHist1Click);
     //
     // imageList1
     //
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "user_16.png");
     this.imageList1.Images.SetKeyName(1, "role_16.png");
     this.imageList1.Images.SetKeyName(2, "right_16.png");
     this.imageList1.Images.SetKeyName(3, "hist_16.png");
     //
     // FormGrant
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     this.ClientSize    = new System.Drawing.Size(512, 354);
     this.Controls.Add(this.tabControlMain);
     this.DoubleBuffered = true;
     this.Name           = "FormGrant";
     this.StartPosition  = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text           = "Grant";
     this.Load          += new System.EventHandler(this.FormGrantLoad);
     this.tabControlMain.ResumeLayout(false);
     this.tbUser.ResumeLayout(false);
     this.tbUser.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvUser)).EndInit();
     this.toolStripUser.ResumeLayout(false);
     this.toolStripUser.PerformLayout();
     this.tbRole.ResumeLayout(false);
     this.tbRole.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvRole)).EndInit();
     this.toolStripRole.ResumeLayout(false);
     this.toolStripRole.PerformLayout();
     this.tbRight.ResumeLayout(false);
     this.tbRight.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvRight)).EndInit();
     this.toolStripRight.ResumeLayout(false);
     this.toolStripRight.PerformLayout();
     this.tbUserHist.ResumeLayout(false);
     this.tbUserHist.PerformLayout();
     this.toolStripHist.ResumeLayout(false);
     this.toolStripHist.PerformLayout();
     this.ResumeLayout(false);
 }
コード例 #5
0
ファイル: FormParam.Designer.cs プロジェクト: ewgeny911/FBA
 private void InitializeComponent()
 {
     this.components      = new System.ComponentModel.Container();
     this.tbGlobal        = new System.Windows.Forms.TabPage();
     this.tbUser          = new System.Windows.Forms.TabPage();
     this.dgvUser         = new FBA.DataGridViewFBA();
     this.cmUser          = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.tbUserN1        = new System.Windows.Forms.ToolStripMenuItem();
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.panel2          = new System.Windows.Forms.Panel();
     this.label1          = new FBA.LabelFBA();
     this.dgvParam        = new FBA.DataGridViewFBA();
     this.cmParam         = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.tbParamN1       = new System.Windows.Forms.ToolStripMenuItem();
     this.tbParamN2       = new System.Windows.Forms.ToolStripMenuItem();
     this.tbParamN3       = new System.Windows.Forms.ToolStripMenuItem();
     this.tbParamN4       = new System.Windows.Forms.ToolStripMenuItem();
     this.tbParamN5       = new System.Windows.Forms.ToolStripMenuItem();
     this.panel3          = new System.Windows.Forms.Panel();
     this.cbParamFilter   = new System.Windows.Forms.CheckBox();
     this.label2          = new FBA.LabelFBA();
     ((System.ComponentModel.ISupportInitialize)(this.dgvUser)).BeginInit();
     this.cmUser.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvParam)).BeginInit();
     this.cmParam.SuspendLayout();
     this.panel3.SuspendLayout();
     this.SuspendLayout();
     //
     // tbGlobal
     //
     this.tbGlobal.Location = new System.Drawing.Point(4, 27);
     this.tbGlobal.Name     = "tbGlobal";
     this.tbGlobal.Padding  = new System.Windows.Forms.Padding(3);
     this.tbGlobal.Size     = new System.Drawing.Size(466, 343);
     this.tbGlobal.TabIndex = 0;
     this.tbGlobal.Text     = "Global";
     this.tbGlobal.UseVisualStyleBackColor = true;
     //
     // tbUser
     //
     this.tbUser.Location = new System.Drawing.Point(4, 27);
     this.tbUser.Name     = "tbUser";
     this.tbUser.Padding  = new System.Windows.Forms.Padding(3);
     this.tbUser.Size     = new System.Drawing.Size(237, 169);
     this.tbUser.TabIndex = 1;
     this.tbUser.Text     = "User";
     this.tbUser.UseVisualStyleBackColor = true;
     //
     // dgvUser
     //
     this.dgvUser.AllowUserToAddRows          = false;
     this.dgvUser.AllowUserToDeleteRows       = false;
     this.dgvUser.AllowUserToOrderColumns     = true;
     this.dgvUser.AllowUserToResizeRows       = false;
     this.dgvUser.AutoSizeRowsMode            = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
     this.dgvUser.BackgroundColor             = System.Drawing.SystemColors.ActiveBorder;
     this.dgvUser.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvUser.CommandAdd           = false;
     this.dgvUser.CommandDel           = false;
     this.dgvUser.CommandEdit          = false;
     this.dgvUser.CommandExportToExcel = false;
     this.dgvUser.CommandFilter        = false;
     this.dgvUser.CommandRefresh       = false;
     this.dgvUser.CommandSaveASCSV     = false;
     this.dgvUser.ContextMenuStrip     = this.cmUser;
     this.dgvUser.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.dgvUser.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
     this.dgvUser.EnableHeadersVisualStyles = false;
     this.dgvUser.GroupEnabled          = null;
     this.dgvUser.Location              = new System.Drawing.Point(0, 25);
     this.dgvUser.Margin                = new System.Windows.Forms.Padding(1);
     this.dgvUser.MultiSelect           = false;
     this.dgvUser.Name                  = "dgvUser";
     this.dgvUser.Obj                   = null;
     this.dgvUser.PassedSec             = null;
     this.dgvUser.ReadOnly              = true;
     this.dgvUser.RowHeadersVisible     = false;
     this.dgvUser.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvUser.SelectionMode         = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvUser.Size                  = new System.Drawing.Size(196, 417);
     this.dgvUser.TabIndex              = 17;
     this.dgvUser.DoubleClick          += new System.EventHandler(this.tbParamN1_Click);
     //
     // cmUser
     //
     this.cmUser.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tbUserN1
     });
     this.cmUser.Name = "cmUser";
     this.cmUser.Size = new System.Drawing.Size(128, 26);
     //
     // tbUserN1
     //
     this.tbUserN1.Font   = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbUserN1.Image  = global::FBA.Resource.Refresh_16;
     this.tbUserN1.Name   = "tbUserN1";
     this.tbUserN1.Size   = new System.Drawing.Size(127, 22);
     this.tbUserN1.Text   = "Refresh";
     this.tbUserN1.Click += new System.EventHandler(this.tbParamN1_Click);
     //
     // splitContainer1
     //
     this.splitContainer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.Location = new System.Drawing.Point(0, 0);
     this.splitContainer1.Margin   = new System.Windows.Forms.Padding(4);
     this.splitContainer1.Name     = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.dgvUser);
     this.splitContainer1.Panel1.Controls.Add(this.panel2);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.dgvParam);
     this.splitContainer1.Panel2.Controls.Add(this.panel3);
     this.splitContainer1.Size             = new System.Drawing.Size(1011, 442);
     this.splitContainer1.SplitterDistance = 196;
     this.splitContainer1.SplitterWidth    = 5;
     this.splitContainer1.TabIndex         = 18;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.label1);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel2.Location = new System.Drawing.Point(0, 0);
     this.panel2.Margin   = new System.Windows.Forms.Padding(16, 11, 16, 11);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(196, 25);
     this.panel2.TabIndex = 19;
     //
     // label1
     //
     this.label1.Font        = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label1.Location    = new System.Drawing.Point(0, 3);
     this.label1.Margin      = new System.Windows.Forms.Padding(16, 0, 16, 0);
     this.label1.Name        = "label1";
     this.label1.Size        = new System.Drawing.Size(42, 18);
     this.label1.StarColor   = System.Drawing.Color.Crimson;
     this.label1.StarFont    = new System.Drawing.Font("Arial", 20F);
     this.label1.StarOffsetX = 2;
     this.label1.StarOffsetY = 0;
     this.label1.StarShow    = false;
     this.label1.StarText    = "*";
     this.label1.TabIndex    = 0;
     this.label1.Text        = "User";
     //
     // dgvParam
     //
     this.dgvParam.AllowUserToAddRows          = false;
     this.dgvParam.AllowUserToDeleteRows       = false;
     this.dgvParam.AllowUserToOrderColumns     = true;
     this.dgvParam.AllowUserToResizeRows       = false;
     this.dgvParam.AutoSizeRowsMode            = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
     this.dgvParam.BackgroundColor             = System.Drawing.SystemColors.ActiveBorder;
     this.dgvParam.ClipboardCopyMode           = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
     this.dgvParam.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvParam.CommandAdd           = false;
     this.dgvParam.CommandDel           = false;
     this.dgvParam.CommandEdit          = false;
     this.dgvParam.CommandExportToExcel = false;
     this.dgvParam.CommandFilter        = false;
     this.dgvParam.CommandRefresh       = false;
     this.dgvParam.CommandSaveASCSV     = false;
     this.dgvParam.ContextMenuStrip     = this.cmParam;
     this.dgvParam.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.dgvParam.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
     this.dgvParam.EnableHeadersVisualStyles = false;
     this.dgvParam.GroupEnabled          = null;
     this.dgvParam.Location              = new System.Drawing.Point(0, 26);
     this.dgvParam.Margin                = new System.Windows.Forms.Padding(1);
     this.dgvParam.MultiSelect           = false;
     this.dgvParam.Name                  = "dgvParam";
     this.dgvParam.Obj                   = null;
     this.dgvParam.PassedSec             = null;
     this.dgvParam.ReadOnly              = true;
     this.dgvParam.RowHeadersVisible     = false;
     this.dgvParam.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvParam.SelectionMode         = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvParam.Size                  = new System.Drawing.Size(810, 416);
     this.dgvParam.TabIndex              = 19;
     //
     // cmParam
     //
     this.cmParam.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.cmParam.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tbParamN1,
         this.tbParamN2,
         this.tbParamN3,
         this.tbParamN4,
         this.tbParamN5
     });
     this.cmParam.Name = "cmParam";
     this.cmParam.Size = new System.Drawing.Size(129, 114);
     //
     // tbParamN1
     //
     this.tbParamN1.Image  = global::FBA.Resource.Add_16;
     this.tbParamN1.Name   = "tbParamN1";
     this.tbParamN1.Size   = new System.Drawing.Size(128, 22);
     this.tbParamN1.Text   = "Add";
     this.tbParamN1.Click += new System.EventHandler(this.tbParamN1_Click);
     //
     // tbParamN2
     //
     this.tbParamN2.Image  = global::FBA.Resource.Edit_16;
     this.tbParamN2.Name   = "tbParamN2";
     this.tbParamN2.Size   = new System.Drawing.Size(128, 22);
     this.tbParamN2.Text   = "Edit";
     this.tbParamN2.Click += new System.EventHandler(this.tbParamN1_Click);
     //
     // tbParamN3
     //
     this.tbParamN3.Image  = global::FBA.Resource.Del_16;
     this.tbParamN3.Name   = "tbParamN3";
     this.tbParamN3.Size   = new System.Drawing.Size(128, 22);
     this.tbParamN3.Text   = "Del";
     this.tbParamN3.Click += new System.EventHandler(this.tbParamN1_Click);
     //
     // tbParamN4
     //
     this.tbParamN4.Image  = global::FBA.Resource.Search_16;
     this.tbParamN4.Name   = "tbParamN4";
     this.tbParamN4.Size   = new System.Drawing.Size(128, 22);
     this.tbParamN4.Text   = "Find";
     this.tbParamN4.Click += new System.EventHandler(this.tbParamN1_Click);
     //
     // tbParamN5
     //
     this.tbParamN5.Image  = global::FBA.Resource.Refresh_16;
     this.tbParamN5.Name   = "tbParamN5";
     this.tbParamN5.Size   = new System.Drawing.Size(128, 22);
     this.tbParamN5.Text   = "Refresh";
     this.tbParamN5.Click += new System.EventHandler(this.tbParamN1_Click);
     //
     // panel3
     //
     this.panel3.Controls.Add(this.cbParamFilter);
     this.panel3.Controls.Add(this.label2);
     this.panel3.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel3.Location = new System.Drawing.Point(0, 0);
     this.panel3.Margin   = new System.Windows.Forms.Padding(16, 11, 16, 11);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(810, 26);
     this.panel3.TabIndex = 20;
     //
     // cbParamFilter
     //
     this.cbParamFilter.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.cbParamFilter.Font     = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.cbParamFilter.Location = new System.Drawing.Point(720, 2);
     this.cbParamFilter.Margin   = new System.Windows.Forms.Padding(16, 11, 16, 11);
     this.cbParamFilter.Name     = "cbParamFilter";
     this.cbParamFilter.Size     = new System.Drawing.Size(74, 20);
     this.cbParamFilter.TabIndex = 1;
     this.cbParamFilter.Text     = "Filter";
     this.cbParamFilter.UseVisualStyleBackColor = true;
     this.cbParamFilter.CheckedChanged         += new System.EventHandler(this.cbParamFilter_CheckedChanged);
     //
     // label2
     //
     this.label2.Font        = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label2.Location    = new System.Drawing.Point(0, 3);
     this.label2.Margin      = new System.Windows.Forms.Padding(16, 0, 16, 0);
     this.label2.Name        = "label2";
     this.label2.Size        = new System.Drawing.Size(64, 18);
     this.label2.StarColor   = System.Drawing.Color.Crimson;
     this.label2.StarFont    = new System.Drawing.Font("Arial", 20F);
     this.label2.StarOffsetX = 2;
     this.label2.StarOffsetY = 0;
     this.label2.StarShow    = false;
     this.label2.StarText    = "*";
     this.label2.TabIndex    = 0;
     this.label2.Text        = "Param";
     //
     // FormParam
     //
     //this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
     //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(1011, 442);
     this.Controls.Add(this.splitContainer1);
     this.Margin = new System.Windows.Forms.Padding(4);
     this.Name   = "FormParam";
     this.Text   = "Param";
     ((System.ComponentModel.ISupportInitialize)(this.dgvUser)).EndInit();
     this.cmUser.ResumeLayout(false);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dgvParam)).EndInit();
     this.cmParam.ResumeLayout(false);
     this.panel3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
コード例 #6
0
 private void InitializeComponent()
 {
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     this.dgv1      = new FBA.DataGridViewFBA();
     this.panel2    = new System.Windows.Forms.Panel();
     this.lbCapText = new FBA.LabelFBA();
     ((System.ComponentModel.ISupportInitialize)(this.dgv1)).BeginInit();
     this.panel2.SuspendLayout();
     this.SuspendLayout();
     //
     // dgv1
     //
     this.dgv1.AllowUserToAddRows              = false;
     this.dgv1.AllowUserToDeleteRows           = false;
     this.dgv1.AllowUserToOrderColumns         = true;
     dataGridViewCellStyle1.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.dgv1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
     this.dgv1.ColumnHeadersHeightSizeMode     = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgv1.CommandAdd           = false;
     this.dgv1.CommandDel           = false;
     this.dgv1.CommandEdit          = false;
     this.dgv1.CommandExportToExcel = false;
     this.dgv1.CommandFilter        = false;
     this.dgv1.CommandRefresh       = false;
     this.dgv1.CommandSaveASCSV     = false;
     this.dgv1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.dgv1.EnableHeadersVisualStyles = false;
     this.dgv1.GroupEnabled      = null;
     this.dgv1.Location          = new System.Drawing.Point(0, 25);
     this.dgv1.Margin            = new System.Windows.Forms.Padding(4);
     this.dgv1.Name              = "dgv1";
     this.dgv1.Obj               = null;
     this.dgv1.PassedSec         = null;
     this.dgv1.ReadOnly          = true;
     this.dgv1.RowHeadersVisible = false;
     this.dgv1.SelectionMode     = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgv1.ShowEditingIcon   = false;
     this.dgv1.Size              = new System.Drawing.Size(436, 267);
     this.dgv1.TabIndex          = 0;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.lbCapText);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel2.Location = new System.Drawing.Point(0, 0);
     this.panel2.Margin   = new System.Windows.Forms.Padding(4);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(436, 25);
     this.panel2.TabIndex = 7;
     //
     // lbCapText
     //
     this.lbCapText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.lbCapText.Font        = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.lbCapText.Location    = new System.Drawing.Point(5, 2);
     this.lbCapText.Margin      = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.lbCapText.Name        = "lbCapText";
     this.lbCapText.Size        = new System.Drawing.Size(419, 14);
     this.lbCapText.StarColor   = System.Drawing.Color.Crimson;
     this.lbCapText.StarFont    = new System.Drawing.Font("Arial", 20F);
     this.lbCapText.StarOffsetX = 2;
     this.lbCapText.StarOffsetY = 0;
     this.lbCapText.StarShow    = false;
     this.lbCapText.StarText    = "*";
     this.lbCapText.TabIndex    = 0;
     this.lbCapText.Text        = "Comment";
     //
     // FormViewTable
     //
     //this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
     //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(436, 292);
     this.Controls.Add(this.dgv1);
     this.Controls.Add(this.panel2);
     this.Margin = new System.Windows.Forms.Padding(4);
     this.Name   = "FormViewTable";
     this.Text   = "View table";
     ((System.ComponentModel.ISupportInitialize)(this.dgv1)).EndInit();
     this.panel2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
コード例 #7
0
ファイル: FormImage.Designer.cs プロジェクト: ewgeny911/FBA
 private void InitializeComponent()
 {
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     this.toolStrip1       = new System.Windows.Forms.ToolStrip();
     this.tbImageRefresh   = new System.Windows.Forms.ToolStripButton();
     this.tbImageAddFile   = new System.Windows.Forms.ToolStripButton();
     this.tbImageAddDir    = new System.Windows.Forms.ToolStripButton();
     this.tbImageDel       = new System.Windows.Forms.ToolStripButton();
     this.splitContainer1  = new System.Windows.Forms.SplitContainer();
     this.panelAutoScroll  = new System.Windows.Forms.Panel();
     this.pictureBox1      = new FBA.PictureBoxFBA();
     this.panel1           = new System.Windows.Forms.Panel();
     this.checkBoxSize     = new System.Windows.Forms.CheckBox();
     this.btnImagePath     = new System.Windows.Forms.Button();
     this.tbFormat         = new System.Windows.Forms.TextBox();
     this.tbSize           = new System.Windows.Forms.TextBox();
     this.tbFileNameFull   = new System.Windows.Forms.TextBox();
     this.tbFileName       = new System.Windows.Forms.TextBox();
     this.tbID             = new System.Windows.Forms.TextBox();
     this.dgvImage         = new FBA.DataGridViewFBA();
     this.dataGridViewFBA1 = new FBA.DataGridViewFBA();
     this.lbFormat         = new FBA.LabelFBA();
     this.lbSize           = new FBA.LabelFBA();
     this.lbFileNameFull   = new FBA.LabelFBA();
     this.lbFileName       = new FBA.LabelFBA();
     this.lbID             = new FBA.LabelFBA();
     this.toolStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.panelAutoScroll.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvImage)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridViewFBA1)).BeginInit();
     this.SuspendLayout();
     //
     // toolStrip1
     //
     this.toolStrip1.Font = new System.Drawing.Font("Arial", 11.25F);
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tbImageRefresh,
         this.tbImageAddFile,
         this.tbImageAddDir,
         this.tbImageDel
     });
     this.toolStrip1.Location = new System.Drawing.Point(0, 0);
     this.toolStrip1.Name     = "toolStrip1";
     this.toolStrip1.Size     = new System.Drawing.Size(701, 25);
     this.toolStrip1.TabIndex = 15;
     this.toolStrip1.Text     = "toolStrip5";
     //
     // tbImageRefresh
     //
     this.tbImageRefresh.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbImageRefresh.Image = global::FBA.Resource.Refresh_16;
     this.tbImageRefresh.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbImageRefresh.Name   = "tbImageRefresh";
     this.tbImageRefresh.Size   = new System.Drawing.Size(80, 22);
     this.tbImageRefresh.Text   = "Refresh";
     this.tbImageRefresh.Click += new System.EventHandler(this.tbImageRefresh_Click);
     //
     // tbImageAddFile
     //
     this.tbImageAddFile.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbImageAddFile.Image = global::FBA.Resource.Add_16;
     this.tbImageAddFile.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbImageAddFile.Name   = "tbImageAddFile";
     this.tbImageAddFile.Size   = new System.Drawing.Size(75, 22);
     this.tbImageAddFile.Text   = "Add file";
     this.tbImageAddFile.Click += new System.EventHandler(this.tbImageRefresh_Click);
     //
     // tbImageAddDir
     //
     this.tbImageAddDir.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbImageAddDir.Image = global::FBA.Resource.folder_add_16;
     this.tbImageAddDir.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbImageAddDir.Name   = "tbImageAddDir";
     this.tbImageAddDir.Size   = new System.Drawing.Size(73, 22);
     this.tbImageAddDir.Text   = "Add dir";
     this.tbImageAddDir.Click += new System.EventHandler(this.tbImageRefresh_Click);
     //
     // tbImageDel
     //
     this.tbImageDel.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbImageDel.Image = global::FBA.Resource.Del_16;
     this.tbImageDel.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbImageDel.Name   = "tbImageDel";
     this.tbImageDel.Size   = new System.Drawing.Size(70, 22);
     this.tbImageDel.Text   = "Delete";
     this.tbImageDel.Click += new System.EventHandler(this.tbImageRefresh_Click);
     //
     // splitContainer1
     //
     this.splitContainer1.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.ForeColor = System.Drawing.SystemColors.ControlText;
     this.splitContainer1.Location  = new System.Drawing.Point(0, 25);
     this.splitContainer1.Margin    = new System.Windows.Forms.Padding(4);
     this.splitContainer1.Name      = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.dgvImage);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.panelAutoScroll);
     this.splitContainer1.Panel2.Controls.Add(this.panel1);
     this.splitContainer1.Size             = new System.Drawing.Size(701, 399);
     this.splitContainer1.SplitterDistance = 230;
     this.splitContainer1.SplitterWidth    = 5;
     this.splitContainer1.TabIndex         = 16;
     //
     // panelAutoScroll
     //
     this.panelAutoScroll.AutoScroll = true;
     this.panelAutoScroll.AutoSize   = true;
     this.panelAutoScroll.Controls.Add(this.pictureBox1);
     this.panelAutoScroll.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panelAutoScroll.Location = new System.Drawing.Point(0, 135);
     this.panelAutoScroll.Name     = "panelAutoScroll";
     this.panelAutoScroll.Size     = new System.Drawing.Size(466, 264);
     this.panelAutoScroll.TabIndex = 2;
     //
     // pictureBox1
     //
     this.pictureBox1.BackColor   = System.Drawing.SystemColors.GradientInactiveCaption;
     this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.pictureBox1.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.pictureBox1.Image       = global::FBA.Resource.no_foto_1;
     this.pictureBox1.Location    = new System.Drawing.Point(0, 0);
     this.pictureBox1.Margin      = new System.Windows.Forms.Padding(4);
     this.pictureBox1.Name        = "pictureBox1";
     this.pictureBox1.Size        = new System.Drawing.Size(466, 264);
     this.pictureBox1.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     this.pictureBox1.TabIndex    = 0;
     this.pictureBox1.TabStop     = false;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.dataGridViewFBA1);
     this.panel1.Controls.Add(this.checkBoxSize);
     this.panel1.Controls.Add(this.btnImagePath);
     this.panel1.Controls.Add(this.tbFormat);
     this.panel1.Controls.Add(this.lbFormat);
     this.panel1.Controls.Add(this.tbSize);
     this.panel1.Controls.Add(this.lbSize);
     this.panel1.Controls.Add(this.tbFileNameFull);
     this.panel1.Controls.Add(this.lbFileNameFull);
     this.panel1.Controls.Add(this.tbFileName);
     this.panel1.Controls.Add(this.lbFileName);
     this.panel1.Controls.Add(this.tbID);
     this.panel1.Controls.Add(this.lbID);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Margin   = new System.Windows.Forms.Padding(4);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(466, 135);
     this.panel1.TabIndex = 1;
     //
     // checkBoxSize
     //
     this.checkBoxSize.Location = new System.Drawing.Point(5, 102);
     this.checkBoxSize.Name     = "checkBoxSize";
     this.checkBoxSize.Size     = new System.Drawing.Size(192, 24);
     this.checkBoxSize.TabIndex = 11;
     this.checkBoxSize.Text     = "Show full size image";
     this.checkBoxSize.UseVisualStyleBackColor = true;
     this.checkBoxSize.CheckedChanged         += new System.EventHandler(this.checkBoxSize_CheckedChanged);
     //
     // btnImagePath
     //
     this.btnImagePath.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnImagePath.Image      = global::FBA.Resource.Folder_24;
     this.btnImagePath.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.btnImagePath.Location   = new System.Drawing.Point(300, 98);
     this.btnImagePath.Name       = "btnImagePath";
     this.btnImagePath.Size       = new System.Drawing.Size(157, 33);
     this.btnImagePath.TabIndex   = 10;
     this.btnImagePath.Text       = "Open image path";
     this.btnImagePath.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
     this.btnImagePath.UseVisualStyleBackColor = true;
     this.btnImagePath.Click += new System.EventHandler(this.tbImageRefresh_Click);
     //
     // tbFormat
     //
     this.tbFormat.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.tbFormat.BackColor = System.Drawing.SystemColors.Info;
     this.tbFormat.Location  = new System.Drawing.Point(405, 4);
     this.tbFormat.Margin    = new System.Windows.Forms.Padding(4);
     this.tbFormat.Name      = "tbFormat";
     this.tbFormat.Size      = new System.Drawing.Size(52, 25);
     this.tbFormat.TabIndex  = 9;
     //
     // tbSize
     //
     this.tbSize.BackColor = System.Drawing.SystemColors.Info;
     this.tbSize.Location  = new System.Drawing.Point(225, 4);
     this.tbSize.Margin    = new System.Windows.Forms.Padding(4);
     this.tbSize.Name      = "tbSize";
     this.tbSize.Size      = new System.Drawing.Size(110, 25);
     this.tbSize.TabIndex  = 7;
     //
     // tbFileNameFull
     //
     this.tbFileNameFull.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.tbFileNameFull.BackColor = System.Drawing.SystemColors.Info;
     this.tbFileNameFull.Location  = new System.Drawing.Point(117, 66);
     this.tbFileNameFull.Margin    = new System.Windows.Forms.Padding(4);
     this.tbFileNameFull.Name      = "tbFileNameFull";
     this.tbFileNameFull.Size      = new System.Drawing.Size(340, 25);
     this.tbFileNameFull.TabIndex  = 5;
     //
     // tbFileName
     //
     this.tbFileName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.tbFileName.BackColor = System.Drawing.SystemColors.Info;
     this.tbFileName.Location  = new System.Drawing.Point(117, 35);
     this.tbFileName.Margin    = new System.Windows.Forms.Padding(4);
     this.tbFileName.Name      = "tbFileName";
     this.tbFileName.Size      = new System.Drawing.Size(340, 25);
     this.tbFileName.TabIndex  = 3;
     //
     // tbID
     //
     this.tbID.BackColor = System.Drawing.SystemColors.Info;
     this.tbID.Location  = new System.Drawing.Point(117, 5);
     this.tbID.Margin    = new System.Windows.Forms.Padding(4);
     this.tbID.Name      = "tbID";
     this.tbID.Size      = new System.Drawing.Size(61, 25);
     this.tbID.TabIndex  = 1;
     //
     // dgvImage
     //
     this.dgvImage.AllowUserToAddRows              = false;
     this.dgvImage.AllowUserToDeleteRows           = false;
     this.dgvImage.AllowUserToOrderColumns         = true;
     this.dgvImage.AllowUserToResizeRows           = false;
     dataGridViewCellStyle1.BackColor              = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.dgvImage.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
     this.dgvImage.AutoSizeRowsMode            = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
     this.dgvImage.ClipboardCopyMode           = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
     this.dgvImage.ColumnHeadersBorderStyle    = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
     this.dgvImage.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvImage.CommandAdd           = false;
     this.dgvImage.CommandDel           = false;
     this.dgvImage.CommandEdit          = false;
     this.dgvImage.CommandExportToExcel = false;
     this.dgvImage.CommandFilter        = false;
     this.dgvImage.CommandRefresh       = false;
     this.dgvImage.CommandSaveASCSV     = false;
     this.dgvImage.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.dgvImage.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
     this.dgvImage.EnableHeadersVisualStyles = false;
     this.dgvImage.GroupEnabled          = null;
     this.dgvImage.Location              = new System.Drawing.Point(0, 0);
     this.dgvImage.Margin                = new System.Windows.Forms.Padding(1);
     this.dgvImage.MultiSelect           = false;
     this.dgvImage.Name                  = "dgvImage";
     this.dgvImage.Obj                   = null;
     this.dgvImage.PassedSec             = null;
     this.dgvImage.ReadOnly              = true;
     this.dgvImage.RowHeadersVisible     = false;
     this.dgvImage.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvImage.SelectionMode         = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvImage.Size                  = new System.Drawing.Size(230, 399);
     this.dgvImage.TabIndex              = 15;
     this.dgvImage.CellClick            += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvImage_CellClick);
     //
     // dataGridViewFBA1
     //
     this.dataGridViewFBA1.AllowUserToAddRows          = false;
     this.dataGridViewFBA1.AllowUserToDeleteRows       = false;
     this.dataGridViewFBA1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridViewFBA1.CommandAdd                = false;
     this.dataGridViewFBA1.CommandDel                = false;
     this.dataGridViewFBA1.CommandEdit               = false;
     this.dataGridViewFBA1.CommandExportToExcel      = false;
     this.dataGridViewFBA1.CommandFilter             = false;
     this.dataGridViewFBA1.CommandRefresh            = false;
     this.dataGridViewFBA1.CommandSaveASCSV          = false;
     this.dataGridViewFBA1.EnableHeadersVisualStyles = false;
     this.dataGridViewFBA1.GroupEnabled              = null;
     this.dataGridViewFBA1.Location      = new System.Drawing.Point(142, 135);
     this.dataGridViewFBA1.Name          = "dataGridViewFBA1";
     this.dataGridViewFBA1.Obj           = null;
     this.dataGridViewFBA1.PassedSec     = null;
     this.dataGridViewFBA1.ReadOnly      = true;
     this.dataGridViewFBA1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dataGridViewFBA1.Size          = new System.Drawing.Size(240, 113);
     this.dataGridViewFBA1.TabIndex      = 12;
     //
     // lbFormat
     //
     this.lbFormat.Font        = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.lbFormat.Location    = new System.Drawing.Point(340, 7);
     this.lbFormat.Margin      = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.lbFormat.Name        = "lbFormat";
     this.lbFormat.Size        = new System.Drawing.Size(55, 19);
     this.lbFormat.StarColor   = System.Drawing.Color.Crimson;
     this.lbFormat.StarFont    = new System.Drawing.Font("Arial", 20F);
     this.lbFormat.StarOffsetX = 2;
     this.lbFormat.StarOffsetY = 0;
     this.lbFormat.StarShow    = false;
     this.lbFormat.StarText    = "*";
     this.lbFormat.TabIndex    = 8;
     this.lbFormat.Text        = "Format:";
     //
     // lbSize
     //
     this.lbSize.Font        = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.lbSize.Location    = new System.Drawing.Point(186, 8);
     this.lbSize.Margin      = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.lbSize.Name        = "lbSize";
     this.lbSize.Size        = new System.Drawing.Size(46, 19);
     this.lbSize.StarColor   = System.Drawing.Color.Crimson;
     this.lbSize.StarFont    = new System.Drawing.Font("Arial", 20F);
     this.lbSize.StarOffsetX = 2;
     this.lbSize.StarOffsetY = 0;
     this.lbSize.StarShow    = false;
     this.lbSize.StarText    = "*";
     this.lbSize.TabIndex    = 6;
     this.lbSize.Text        = "Size:";
     //
     // lbFileNameFull
     //
     this.lbFileNameFull.Font        = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.lbFileNameFull.Location    = new System.Drawing.Point(5, 69);
     this.lbFileNameFull.Margin      = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.lbFileNameFull.Name        = "lbFileNameFull";
     this.lbFileNameFull.Size        = new System.Drawing.Size(104, 19);
     this.lbFileNameFull.StarColor   = System.Drawing.Color.Crimson;
     this.lbFileNameFull.StarFont    = new System.Drawing.Font("Arial", 20F);
     this.lbFileNameFull.StarOffsetX = 2;
     this.lbFileNameFull.StarOffsetY = 0;
     this.lbFileNameFull.StarShow    = false;
     this.lbFileNameFull.StarText    = "*";
     this.lbFileNameFull.TabIndex    = 4;
     this.lbFileNameFull.Text        = "FileNameFull:";
     //
     // lbFileName
     //
     this.lbFileName.Font        = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.lbFileName.Location    = new System.Drawing.Point(5, 38);
     this.lbFileName.Margin      = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.lbFileName.Name        = "lbFileName";
     this.lbFileName.Size        = new System.Drawing.Size(85, 19);
     this.lbFileName.StarColor   = System.Drawing.Color.Crimson;
     this.lbFileName.StarFont    = new System.Drawing.Font("Arial", 20F);
     this.lbFileName.StarOffsetX = 2;
     this.lbFileName.StarOffsetY = 0;
     this.lbFileName.StarShow    = false;
     this.lbFileName.StarText    = "*";
     this.lbFileName.TabIndex    = 2;
     this.lbFileName.Text        = "FileName:";
     //
     // lbID
     //
     this.lbID.Font        = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.lbID.Location    = new System.Drawing.Point(5, 8);
     this.lbID.Margin      = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.lbID.Name        = "lbID";
     this.lbID.Size        = new System.Drawing.Size(35, 19);
     this.lbID.StarColor   = System.Drawing.Color.Crimson;
     this.lbID.StarFont    = new System.Drawing.Font("Arial", 20F);
     this.lbID.StarOffsetX = 2;
     this.lbID.StarOffsetY = 0;
     this.lbID.StarShow    = false;
     this.lbID.StarText    = "*";
     this.lbID.TabIndex    = 0;
     this.lbID.Text        = "ID:";
     //
     // FormImage
     //
     //this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
     //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(701, 424);
     this.Controls.Add(this.splitContainer1);
     this.Controls.Add(this.toolStrip1);
     this.Font          = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.Margin        = new System.Windows.Forms.Padding(4);
     this.Name          = "FormImage";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text          = "Image";
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.Panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     this.panelAutoScroll.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvImage)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridViewFBA1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #8
0
ファイル: FormUniEdit.Designer.cs プロジェクト: ewgeny911/FBA
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     this.tabControl1     = new System.Windows.Forms.TabControl();
     this.tabPage1        = new System.Windows.Forms.TabPage();
     this.grid            = new SourceGrid.Grid();
     this.tbField         = new System.Windows.Forms.TabPage();
     this.pnlField        = new FBA.CustomFlowLayoutPanel();
     this.tbHist          = new System.Windows.Forms.TabPage();
     this.dgvHistAttr     = new FBA.DataGridViewFBA();
     this.tbLink          = new System.Windows.Forms.TabPage();
     this.pnlLink         = new System.Windows.Forms.FlowLayoutPanel();
     this.tbUniLink       = new System.Windows.Forms.TabPage();
     this.pnlUniLink      = new System.Windows.Forms.FlowLayoutPanel();
     this.splitContainer2 = new System.Windows.Forms.SplitContainer();
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.dgvStateDate    = new FBA.DataGridViewFBA();
     this.panel1          = new System.Windows.Forms.Panel();
     this.label4          = new System.Windows.Forms.Label();
     this.tbValue         = new System.Windows.Forms.TextBox();
     this.panelButton     = new System.Windows.Forms.Panel();
     this.textBox1        = new System.Windows.Forms.TextBox();
     this.button2         = new System.Windows.Forms.Button();
     this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
     this.button1         = new System.Windows.Forms.Button();
     this.btnCancel       = new System.Windows.Forms.Button();
     this.btnOk           = new System.Windows.Forms.Button();
     this.timer1          = new System.Windows.Forms.Timer(this.components);
     this.tabControl1.SuspendLayout();
     this.tabPage1.SuspendLayout();
     this.tbField.SuspendLayout();
     this.tbHist.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvHistAttr)).BeginInit();
     this.tbLink.SuspendLayout();
     this.tbUniLink.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
     this.splitContainer2.Panel1.SuspendLayout();
     this.splitContainer2.Panel2.SuspendLayout();
     this.splitContainer2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvStateDate)).BeginInit();
     this.panel1.SuspendLayout();
     this.panelButton.SuspendLayout();
     this.SuspendLayout();
     //
     // tabControl1
     //
     this.tabControl1.Controls.Add(this.tabPage1);
     this.tabControl1.Controls.Add(this.tbField);
     this.tabControl1.Controls.Add(this.tbHist);
     this.tabControl1.Controls.Add(this.tbLink);
     this.tabControl1.Controls.Add(this.tbUniLink);
     this.tabControl1.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.tabControl1.Location      = new System.Drawing.Point(0, 0);
     this.tabControl1.Margin        = new System.Windows.Forms.Padding(0);
     this.tabControl1.Name          = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size          = new System.Drawing.Size(987, 488);
     this.tabControl1.TabIndex      = 0;
     this.tabControl1.Selecting    += new System.Windows.Forms.TabControlCancelEventHandler(this.tabControl1_Selecting);
     //
     // tabPage1
     //
     this.tabPage1.Controls.Add(this.grid);
     this.tabPage1.Location = new System.Drawing.Point(4, 26);
     this.tabPage1.Name     = "tabPage1";
     this.tabPage1.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPage1.Size     = new System.Drawing.Size(979, 458);
     this.tabPage1.TabIndex = 6;
     this.tabPage1.Text     = "tabPage1";
     this.tabPage1.UseVisualStyleBackColor = true;
     //
     // grid
     //
     this.grid.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.grid.BorderStyle   = System.Windows.Forms.BorderStyle.FixedSingle;
     this.grid.EnableSort    = true;
     this.grid.Location      = new System.Drawing.Point(33, 20);
     this.grid.Name          = "grid";
     this.grid.OptimizeMode  = SourceGrid.CellOptimizeMode.ForRows;
     this.grid.SelectionMode = SourceGrid.GridSelectionMode.Cell;
     this.grid.Size          = new System.Drawing.Size(595, 392);
     this.grid.TabIndex      = 1;
     this.grid.TabStop       = true;
     this.grid.ToolTipText   = "";
     //
     // tbField
     //
     this.tbField.Controls.Add(this.pnlField);
     this.tbField.Location = new System.Drawing.Point(4, 26);
     this.tbField.Margin   = new System.Windows.Forms.Padding(0);
     this.tbField.Name     = "tbField";
     this.tbField.Size     = new System.Drawing.Size(979, 458);
     this.tbField.TabIndex = 1;
     this.tbField.Text     = "Fields";
     //
     // pnlField
     //
     this.pnlField.AutoScroll   = true;
     this.pnlField.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.pnlField.BackColor    = System.Drawing.Color.Gainsboro;
     this.pnlField.BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     this.pnlField.Dock         = System.Windows.Forms.DockStyle.Fill;
     this.pnlField.Location     = new System.Drawing.Point(0, 0);
     this.pnlField.Name         = "pnlField";
     this.pnlField.Size         = new System.Drawing.Size(979, 458);
     this.pnlField.TabIndex     = 1;
     //
     // tbHist
     //
     this.tbHist.Controls.Add(this.dgvHistAttr);
     this.tbHist.Location = new System.Drawing.Point(4, 26);
     this.tbHist.Name     = "tbHist";
     this.tbHist.Size     = new System.Drawing.Size(979, 458);
     this.tbHist.TabIndex = 5;
     this.tbHist.Text     = "History";
     this.tbHist.UseVisualStyleBackColor = true;
     //
     // dgvHistAttr
     //
     this.dgvHistAttr.AllowUserToAddRows              = false;
     this.dgvHistAttr.AllowUserToDeleteRows           = false;
     this.dgvHistAttr.AllowUserToOrderColumns         = true;
     this.dgvHistAttr.AllowUserToResizeRows           = false;
     dataGridViewCellStyle1.BackColor                 = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.dgvHistAttr.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
     this.dgvHistAttr.AutoSizeRowsMode                = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
     this.dgvHistAttr.BackgroundColor                 = System.Drawing.Color.Gainsboro;
     this.dgvHistAttr.ClipboardCopyMode               = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
     this.dgvHistAttr.ColumnHeadersBorderStyle        = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
     this.dgvHistAttr.ColumnHeadersHeightSizeMode     = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvHistAttr.CommandAdd           = false;
     this.dgvHistAttr.CommandDel           = false;
     this.dgvHistAttr.CommandEdit          = false;
     this.dgvHistAttr.CommandExportToExcel = false;
     this.dgvHistAttr.CommandFilter        = false;
     this.dgvHistAttr.CommandRefresh       = false;
     this.dgvHistAttr.CommandSaveASCSV     = false;
     this.dgvHistAttr.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.dgvHistAttr.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
     this.dgvHistAttr.EnableHeadersVisualStyles = false;
     this.dgvHistAttr.GroupEnabled          = null;
     this.dgvHistAttr.Location              = new System.Drawing.Point(0, 0);
     this.dgvHistAttr.Margin                = new System.Windows.Forms.Padding(1);
     this.dgvHistAttr.Name                  = "dgvHistAttr";
     this.dgvHistAttr.ReadOnly              = true;
     this.dgvHistAttr.RowHeadersVisible     = false;
     this.dgvHistAttr.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvHistAttr.SelectionMode         = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvHistAttr.Size                  = new System.Drawing.Size(979, 458);
     this.dgvHistAttr.TabIndex              = 16;
     //
     // tbLink
     //
     this.tbLink.Controls.Add(this.pnlLink);
     this.tbLink.Location = new System.Drawing.Point(4, 26);
     this.tbLink.Name     = "tbLink";
     this.tbLink.Size     = new System.Drawing.Size(979, 458);
     this.tbLink.TabIndex = 2;
     this.tbLink.Text     = "Links";
     this.tbLink.UseVisualStyleBackColor = true;
     //
     // pnlLink
     //
     this.pnlLink.AutoScroll        = true;
     this.pnlLink.AutoScrollMinSize = new System.Drawing.Size(1, 1);
     this.pnlLink.BackColor         = System.Drawing.Color.Gainsboro;
     this.pnlLink.BorderStyle       = System.Windows.Forms.BorderStyle.FixedSingle;
     this.pnlLink.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnlLink.Location = new System.Drawing.Point(0, 0);
     this.pnlLink.Name     = "pnlLink";
     this.pnlLink.Size     = new System.Drawing.Size(979, 458);
     this.pnlLink.TabIndex = 2;
     //
     // tbUniLink
     //
     this.tbUniLink.Controls.Add(this.pnlUniLink);
     this.tbUniLink.Location = new System.Drawing.Point(4, 26);
     this.tbUniLink.Name     = "tbUniLink";
     this.tbUniLink.Size     = new System.Drawing.Size(979, 458);
     this.tbUniLink.TabIndex = 3;
     this.tbUniLink.Text     = "Universal Links";
     this.tbUniLink.UseVisualStyleBackColor = true;
     //
     // pnlUniLink
     //
     this.pnlUniLink.AutoScroll       = true;
     this.pnlUniLink.AutoScrollMargin = new System.Drawing.Size(40, 0);
     this.pnlUniLink.BackColor        = System.Drawing.Color.Gainsboro;
     this.pnlUniLink.BorderStyle      = System.Windows.Forms.BorderStyle.FixedSingle;
     this.pnlUniLink.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.pnlUniLink.Location         = new System.Drawing.Point(0, 0);
     this.pnlUniLink.Name             = "pnlUniLink";
     this.pnlUniLink.Size             = new System.Drawing.Size(979, 458);
     this.pnlUniLink.TabIndex         = 3;
     //
     // splitContainer2
     //
     this.splitContainer2.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer2.FixedPanel  = System.Windows.Forms.FixedPanel.Panel2;
     this.splitContainer2.Location    = new System.Drawing.Point(0, 0);
     this.splitContainer2.Margin      = new System.Windows.Forms.Padding(0);
     this.splitContainer2.Name        = "splitContainer2";
     this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer2.Panel1
     //
     this.splitContainer2.Panel1.Controls.Add(this.splitContainer1);
     //
     // splitContainer2.Panel2
     //
     this.splitContainer2.Panel2.Controls.Add(this.tbValue);
     this.splitContainer2.Size             = new System.Drawing.Size(1111, 559);
     this.splitContainer2.SplitterDistance = 488;
     this.splitContainer2.TabIndex         = 3;
     //
     // splitContainer1
     //
     this.splitContainer1.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
     this.splitContainer1.Location   = new System.Drawing.Point(0, 0);
     this.splitContainer1.Margin     = new System.Windows.Forms.Padding(0);
     this.splitContainer1.Name       = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.dgvStateDate);
     this.splitContainer1.Panel1.Controls.Add(this.panel1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.tabControl1);
     this.splitContainer1.Size             = new System.Drawing.Size(1111, 488);
     this.splitContainer1.SplitterDistance = 120;
     this.splitContainer1.TabIndex         = 2;
     //
     // dgvStateDate
     //
     this.dgvStateDate.AllowUserToAddRows              = false;
     this.dgvStateDate.AllowUserToDeleteRows           = false;
     this.dgvStateDate.AllowUserToOrderColumns         = true;
     this.dgvStateDate.AllowUserToResizeRows           = false;
     dataGridViewCellStyle2.BackColor                  = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.dgvStateDate.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle2;
     this.dgvStateDate.AutoSizeRowsMode                = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
     this.dgvStateDate.BackgroundColor                 = System.Drawing.Color.Gainsboro;
     this.dgvStateDate.ClipboardCopyMode               = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
     this.dgvStateDate.ColumnHeadersBorderStyle        = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
     this.dgvStateDate.ColumnHeadersHeightSizeMode     = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvStateDate.ColumnHeadersVisible            = false;
     this.dgvStateDate.CommandAdd           = false;
     this.dgvStateDate.CommandDel           = false;
     this.dgvStateDate.CommandEdit          = false;
     this.dgvStateDate.CommandExportToExcel = false;
     this.dgvStateDate.CommandFilter        = false;
     this.dgvStateDate.CommandRefresh       = false;
     this.dgvStateDate.CommandSaveASCSV     = false;
     this.dgvStateDate.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.dgvStateDate.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
     this.dgvStateDate.EnableHeadersVisualStyles = false;
     this.dgvStateDate.GroupEnabled          = null;
     this.dgvStateDate.Location              = new System.Drawing.Point(0, 27);
     this.dgvStateDate.Margin                = new System.Windows.Forms.Padding(1);
     this.dgvStateDate.MultiSelect           = false;
     this.dgvStateDate.Name                  = "dgvStateDate";
     this.dgvStateDate.ReadOnly              = true;
     this.dgvStateDate.RowHeadersVisible     = false;
     this.dgvStateDate.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvStateDate.SelectionMode         = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvStateDate.Size                  = new System.Drawing.Size(120, 461);
     this.dgvStateDate.TabIndex              = 17;
     this.dgvStateDate.CellMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvStateDate_CellMouseDoubleClick);
     this.dgvStateDate.DoubleClick          += new System.EventHandler(this.dgvStateDate_DoubleClick);
     //
     // panel1
     //
     this.panel1.Controls.Add(this.label4);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(120, 27);
     this.panel1.TabIndex = 2;
     //
     // label4
     //
     this.label4.Font     = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label4.Location = new System.Drawing.Point(5, 5);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(100, 18);
     this.label4.TabIndex = 1;
     this.label4.Text     = "StateDate";
     //
     // tbValue
     //
     this.tbValue.BackColor  = System.Drawing.SystemColors.Info;
     this.tbValue.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.tbValue.Location   = new System.Drawing.Point(0, 0);
     this.tbValue.Multiline  = true;
     this.tbValue.Name       = "tbValue";
     this.tbValue.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.tbValue.Size       = new System.Drawing.Size(1111, 67);
     this.tbValue.TabIndex   = 1;
     //
     // panelButton
     //
     this.panelButton.Controls.Add(this.textBox1);
     this.panelButton.Controls.Add(this.button2);
     this.panelButton.Controls.Add(this.dateTimePicker1);
     this.panelButton.Controls.Add(this.button1);
     this.panelButton.Controls.Add(this.btnCancel);
     this.panelButton.Controls.Add(this.btnOk);
     this.panelButton.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panelButton.Font     = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.panelButton.Location = new System.Drawing.Point(0, 559);
     this.panelButton.Margin   = new System.Windows.Forms.Padding(4);
     this.panelButton.Name     = "panelButton";
     this.panelButton.Size     = new System.Drawing.Size(1111, 41);
     this.panelButton.TabIndex = 3;
     //
     // textBox1
     //
     this.textBox1.Location = new System.Drawing.Point(545, 7);
     this.textBox1.Name     = "textBox1";
     this.textBox1.Size     = new System.Drawing.Size(100, 25);
     this.textBox1.TabIndex = 6;
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(167, 6);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(75, 23);
     this.button2.TabIndex = 5;
     this.button2.Text     = "button2";
     this.button2.UseVisualStyleBackColor = true;
     this.button2.Click += new System.EventHandler(this.button2_Click);
     //
     // dateTimePicker1
     //
     this.dateTimePicker1.Location = new System.Drawing.Point(275, 7);
     this.dateTimePicker1.Name     = "dateTimePicker1";
     this.dateTimePicker1.Size     = new System.Drawing.Size(200, 25);
     this.dateTimePicker1.TabIndex = 4;
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(13, 7);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(115, 29);
     this.button1.TabIndex = 3;
     this.button1.Text     = "button1";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // btnCancel
     //
     this.btnCancel.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.Font       = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.btnCancel.Image      = global::FBA.Resource.Cancel_24;
     this.btnCancel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.btnCancel.Location   = new System.Drawing.Point(875, 4);
     this.btnCancel.Margin     = new System.Windows.Forms.Padding(4);
     this.btnCancel.Name       = "btnCancel";
     this.btnCancel.Size       = new System.Drawing.Size(112, 33);
     this.btnCancel.TabIndex   = 2;
     this.btnCancel.Text       = "    Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // btnOk
     //
     this.btnOk.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnOk.Font       = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.btnOk.Image      = global::FBA.Resource.Save_24;
     this.btnOk.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.btnOk.Location   = new System.Drawing.Point(991, 4);
     this.btnOk.Margin     = new System.Windows.Forms.Padding(4);
     this.btnOk.Name       = "btnOk";
     this.btnOk.Size       = new System.Drawing.Size(112, 33);
     this.btnOk.TabIndex   = 0;
     this.btnOk.Text       = "   Save";
     this.btnOk.UseVisualStyleBackColor = true;
     this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
     //
     // FormUniEdit
     //
     //this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
     //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(1111, 600);
     this.Controls.Add(this.splitContainer2);
     this.Controls.Add(this.panelButton);
     this.Margin = new System.Windows.Forms.Padding(4);
     this.Name   = "FormUniEdit";
     this.Text   = "Universal object editing";
     this.Load  += new System.EventHandler(this.FormUniEdit_Load);
     this.tabControl1.ResumeLayout(false);
     this.tabPage1.ResumeLayout(false);
     this.tbField.ResumeLayout(false);
     this.tbHist.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dgvHistAttr)).EndInit();
     this.tbLink.ResumeLayout(false);
     this.tbUniLink.ResumeLayout(false);
     this.splitContainer2.Panel1.ResumeLayout(false);
     this.splitContainer2.Panel2.ResumeLayout(false);
     this.splitContainer2.Panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
     this.splitContainer2.ResumeLayout(false);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dgvStateDate)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panelButton.ResumeLayout(false);
     this.panelButton.PerformLayout();
     this.ResumeLayout(false);
 }
コード例 #9
0
ファイル: FormSearch.Designer.cs プロジェクト: ewgeny911/FBA
 private void InitializeComponent()
 {
     this.panelButton       = new System.Windows.Forms.Panel();
     this.btnResult         = new System.Windows.Forms.Button();
     this.btnCancel         = new System.Windows.Forms.Button();
     this.btnOk             = new System.Windows.Forms.Button();
     this.cbHighlight       = new System.Windows.Forms.CheckBox();
     this.lbResultCount     = new System.Windows.Forms.Label();
     this.lbSerachText      = new System.Windows.Forms.Label();
     this.DGResult          = new FBA.DataGridViewFBA();
     this.cbCaseSensitivity = new System.Windows.Forms.CheckBox();
     this.rbPart1           = new System.Windows.Forms.RadioButton();
     this.gpPosition        = new System.Windows.Forms.GroupBox();
     this.rbPart4           = new System.Windows.Forms.RadioButton();
     this.rbPart3           = new System.Windows.Forms.RadioButton();
     this.rbPart2           = new System.Windows.Forms.RadioButton();
     this.cbOnlyColumns     = new System.Windows.Forms.CheckBox();
     this.rbDown            = new System.Windows.Forms.RadioButton();
     this.rbUp        = new System.Windows.Forms.RadioButton();
     this.gpSettings  = new System.Windows.Forms.GroupBox();
     this.cbOnlyArea  = new System.Windows.Forms.CheckBox();
     this.cbOnlyRows  = new System.Windows.Forms.CheckBox();
     this.gbDirection = new System.Windows.Forms.GroupBox();
     this.rbAll       = new System.Windows.Forms.RadioButton();
     this.EditFBA1    = new FBA.EditFBA();
     this.panelButton.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.DGResult)).BeginInit();
     this.gpPosition.SuspendLayout();
     this.gpSettings.SuspendLayout();
     this.gbDirection.SuspendLayout();
     this.SuspendLayout();
     //
     // panelButton
     //
     this.panelButton.Controls.Add(this.btnResult);
     this.panelButton.Controls.Add(this.btnCancel);
     this.panelButton.Controls.Add(this.btnOk);
     this.panelButton.Controls.Add(this.cbHighlight);
     this.panelButton.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panelButton.Font     = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.panelButton.Location = new System.Drawing.Point(0, 324);
     this.panelButton.Name     = "panelButton";
     this.panelButton.Size     = new System.Drawing.Size(531, 41);
     this.panelButton.TabIndex = 5;
     //
     // btnResult
     //
     this.btnResult.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnResult.Image      = global::FBA.Resource.Expand2_24;
     this.btnResult.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.btnResult.Location   = new System.Drawing.Point(167, 3);
     this.btnResult.Margin     = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.btnResult.Name       = "btnResult";
     this.btnResult.Size       = new System.Drawing.Size(148, 33);
     this.btnResult.TabIndex   = 28;
     this.btnResult.Text       = "Show the results";
     this.btnResult.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
     this.btnResult.UseVisualStyleBackColor = true;
     this.btnResult.Visible = false;
     this.btnResult.Click  += new System.EventHandler(this.btnOk_Click);
     //
     // btnCancel
     //
     this.btnCancel.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.Font       = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.btnCancel.Image      = global::FBA.Resource.Cancel_24;
     this.btnCancel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.btnCancel.Location   = new System.Drawing.Point(322, 3);
     this.btnCancel.Name       = "btnCancel";
     this.btnCancel.Size       = new System.Drawing.Size(99, 33);
     this.btnCancel.TabIndex   = 2;
     this.btnCancel.Text       = "    Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click += new System.EventHandler(this.btnOk_Click);
     //
     // btnOk
     //
     this.btnOk.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnOk.Font       = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.btnOk.Image      = global::FBA.Resource.OK_24;
     this.btnOk.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.btnOk.Location   = new System.Drawing.Point(425, 3);
     this.btnOk.Name       = "btnOk";
     this.btnOk.Size       = new System.Drawing.Size(99, 33);
     this.btnOk.TabIndex   = 0;
     this.btnOk.Text       = "   Search";
     this.btnOk.UseVisualStyleBackColor = true;
     this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
     //
     // cbHighlight
     //
     this.cbHighlight.Checked    = true;
     this.cbHighlight.CheckState = System.Windows.Forms.CheckState.Checked;
     this.cbHighlight.Font       = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.cbHighlight.Location   = new System.Drawing.Point(11, 9);
     this.cbHighlight.Margin     = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.cbHighlight.Name       = "cbHighlight";
     this.cbHighlight.Size       = new System.Drawing.Size(181, 22);
     this.cbHighlight.TabIndex   = 22;
     this.cbHighlight.Text       = "Select found strings";
     this.cbHighlight.UseVisualStyleBackColor = true;
     this.cbHighlight.Visible = false;
     //
     // lbResultCount
     //
     this.lbResultCount.AutoEllipsis = true;
     this.lbResultCount.AutoSize     = true;
     this.lbResultCount.Font         = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.lbResultCount.ForeColor    = System.Drawing.Color.MediumBlue;
     this.lbResultCount.Location     = new System.Drawing.Point(6, 160);
     this.lbResultCount.Margin       = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.lbResultCount.Name         = "lbResultCount";
     this.lbResultCount.Size         = new System.Drawing.Size(100, 18);
     this.lbResultCount.TabIndex     = 28;
     this.lbResultCount.Text         = "Found values:";
     this.lbResultCount.TextAlign    = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lbSerachText
     //
     this.lbSerachText.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.lbSerachText.Location = new System.Drawing.Point(9, 2);
     this.lbSerachText.Margin   = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.lbSerachText.Name     = "lbSerachText";
     this.lbSerachText.Size     = new System.Drawing.Size(96, 18);
     this.lbSerachText.TabIndex = 6;
     this.lbSerachText.Text     = "Value search:";
     //
     // DGResult
     //
     this.DGResult.AllowUserToAddRows    = false;
     this.DGResult.AllowUserToDeleteRows = false;
     this.DGResult.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.DGResult.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.DGResult.CommandAdd                = false;
     this.DGResult.CommandDel                = false;
     this.DGResult.CommandEdit               = false;
     this.DGResult.CommandExportToExcel      = false;
     this.DGResult.CommandFilter             = false;
     this.DGResult.CommandRefresh            = false;
     this.DGResult.CommandSaveASCSV          = false;
     this.DGResult.EnableHeadersVisualStyles = false;
     this.DGResult.GroupEnabled              = null;
     this.DGResult.Location      = new System.Drawing.Point(9, 180);
     this.DGResult.Margin        = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.DGResult.Name          = "DGResult";
     this.DGResult.Obj           = null;
     this.DGResult.PassedSec     = null;
     this.DGResult.ReadOnly      = true;
     this.DGResult.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.DGResult.Size          = new System.Drawing.Size(512, 139);
     this.DGResult.TabIndex      = 16;
     this.DGResult.CellEnter    += new System.Windows.Forms.DataGridViewCellEventHandler(this.DGResult_CellEnter);
     //
     // cbCaseSensitivity
     //
     this.cbCaseSensitivity.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.cbCaseSensitivity.Location = new System.Drawing.Point(11, 24);
     this.cbCaseSensitivity.Margin   = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.cbCaseSensitivity.Name     = "cbCaseSensitivity";
     this.cbCaseSensitivity.Size     = new System.Drawing.Size(180, 22);
     this.cbCaseSensitivity.TabIndex = 17;
     this.cbCaseSensitivity.Text     = "Case sensitivity";
     this.cbCaseSensitivity.UseVisualStyleBackColor = true;
     //
     // rbPart1
     //
     this.rbPart1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.rbPart1.Location = new System.Drawing.Point(11, 22);
     this.rbPart1.Margin   = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.rbPart1.Name     = "rbPart1";
     this.rbPart1.Size     = new System.Drawing.Size(66, 20);
     this.rbPart1.TabIndex = 19;
     this.rbPart1.Text     = "Exact match";
     this.rbPart1.UseVisualStyleBackColor = true;
     //
     // gpPosition
     //
     this.gpPosition.Controls.Add(this.rbPart4);
     this.gpPosition.Controls.Add(this.rbPart3);
     this.gpPosition.Controls.Add(this.rbPart2);
     this.gpPosition.Controls.Add(this.rbPart1);
     this.gpPosition.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.gpPosition.Location = new System.Drawing.Point(8, 49);
     this.gpPosition.Margin   = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.gpPosition.Name     = "gpPosition";
     this.gpPosition.Padding  = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.gpPosition.Size     = new System.Drawing.Size(109, 108);
     this.gpPosition.TabIndex = 20;
     this.gpPosition.TabStop  = false;
     this.gpPosition.Text     = " Position ";
     //
     // rbPart4
     //
     this.rbPart4.Checked  = true;
     this.rbPart4.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.rbPart4.Location = new System.Drawing.Point(11, 79);
     this.rbPart4.Margin   = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.rbPart4.Name     = "rbPart4";
     this.rbPart4.Size     = new System.Drawing.Size(83, 20);
     this.rbPart4.TabIndex = 22;
     this.rbPart4.TabStop  = true;
     this.rbPart4.Text     = "Contain text";
     this.rbPart4.UseVisualStyleBackColor = true;
     //
     // rbPart3
     //
     this.rbPart3.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.rbPart3.Location = new System.Drawing.Point(11, 60);
     this.rbPart3.Margin   = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.rbPart3.Name     = "rbPart3";
     this.rbPart3.Size     = new System.Drawing.Size(91, 20);
     this.rbPart3.TabIndex = 21;
     this.rbPart3.Text     = "Ends with text";
     this.rbPart3.UseVisualStyleBackColor = true;
     //
     // rbPart2
     //
     this.rbPart2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.rbPart2.Location = new System.Drawing.Point(11, 41);
     this.rbPart2.Margin   = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.rbPart2.Name     = "rbPart2";
     this.rbPart2.Size     = new System.Drawing.Size(96, 20);
     this.rbPart2.TabIndex = 20;
     this.rbPart2.Text     = "Starts with text";
     this.rbPart2.UseVisualStyleBackColor = true;
     //
     // cbOnlyColumns
     //
     this.cbOnlyColumns.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.cbOnlyColumns.Location = new System.Drawing.Point(11, 43);
     this.cbOnlyColumns.Margin   = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.cbOnlyColumns.Name     = "cbOnlyColumns";
     this.cbOnlyColumns.Size     = new System.Drawing.Size(212, 22);
     this.cbOnlyColumns.TabIndex = 23;
     this.cbOnlyColumns.Text     = "Search in selected column";
     this.cbOnlyColumns.UseVisualStyleBackColor = true;
     //
     // rbDown
     //
     this.rbDown.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.rbDown.Location = new System.Drawing.Point(11, 41);
     this.rbDown.Margin   = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.rbDown.Name     = "rbDown";
     this.rbDown.Size     = new System.Drawing.Size(116, 22);
     this.rbDown.TabIndex = 24;
     this.rbDown.Text     = "Search Down";
     this.rbDown.UseVisualStyleBackColor = true;
     //
     // rbUp
     //
     this.rbUp.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.rbUp.Location = new System.Drawing.Point(11, 61);
     this.rbUp.Margin   = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.rbUp.Name     = "rbUp";
     this.rbUp.Size     = new System.Drawing.Size(101, 22);
     this.rbUp.TabIndex = 25;
     this.rbUp.Text     = "Search Up";
     this.rbUp.UseVisualStyleBackColor = true;
     //
     // gpSettings
     //
     this.gpSettings.Controls.Add(this.cbOnlyArea);
     this.gpSettings.Controls.Add(this.cbOnlyRows);
     this.gpSettings.Controls.Add(this.cbCaseSensitivity);
     this.gpSettings.Controls.Add(this.cbOnlyColumns);
     this.gpSettings.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.gpSettings.Location = new System.Drawing.Point(121, 49);
     this.gpSettings.Margin   = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.gpSettings.Name     = "gpSettings";
     this.gpSettings.Padding  = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.gpSettings.Size     = new System.Drawing.Size(224, 108);
     this.gpSettings.TabIndex = 26;
     this.gpSettings.TabStop  = false;
     this.gpSettings.Text     = "Settings ";
     //
     // cbOnlyArea
     //
     this.cbOnlyArea.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.cbOnlyArea.Location = new System.Drawing.Point(11, 81);
     this.cbOnlyArea.Margin   = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.cbOnlyArea.Name     = "cbOnlyArea";
     this.cbOnlyArea.Size     = new System.Drawing.Size(212, 22);
     this.cbOnlyArea.TabIndex = 25;
     this.cbOnlyArea.Text     = "Search only in selected area";
     this.cbOnlyArea.UseVisualStyleBackColor = true;
     //
     // cbOnlyRows
     //
     this.cbOnlyRows.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.cbOnlyRows.Location = new System.Drawing.Point(11, 62);
     this.cbOnlyRows.Margin   = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.cbOnlyRows.Name     = "cbOnlyRows";
     this.cbOnlyRows.Size     = new System.Drawing.Size(212, 22);
     this.cbOnlyRows.TabIndex = 24;
     this.cbOnlyRows.Text     = "Search in selected rows";
     this.cbOnlyRows.UseVisualStyleBackColor = true;
     //
     // gbDirection
     //
     this.gbDirection.Controls.Add(this.rbAll);
     this.gbDirection.Controls.Add(this.rbUp);
     this.gbDirection.Controls.Add(this.rbDown);
     this.gbDirection.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.gbDirection.Location = new System.Drawing.Point(349, 49);
     this.gbDirection.Margin   = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.gbDirection.Name     = "gbDirection";
     this.gbDirection.Padding  = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.gbDirection.Size     = new System.Drawing.Size(129, 107);
     this.gbDirection.TabIndex = 27;
     this.gbDirection.TabStop  = false;
     this.gbDirection.Text     = "Direction";
     //
     // rbAll
     //
     this.rbAll.Checked  = true;
     this.rbAll.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.rbAll.Location = new System.Drawing.Point(11, 22);
     this.rbAll.Margin   = new System.Windows.Forms.Padding(2, 3, 2, 3);
     this.rbAll.Name     = "rbAll";
     this.rbAll.Size     = new System.Drawing.Size(101, 22);
     this.rbAll.TabIndex = 26;
     this.rbAll.TabStop  = true;
     this.rbAll.Text     = "Search All";
     this.rbAll.UseVisualStyleBackColor = true;
     //
     // EditFBA1
     //
     this.EditFBA1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.EditFBA1.AttrBrief           = "Main1.СтрахПродукт.Наим";
     this.EditFBA1.AutoCompleteMode    = System.Windows.Forms.AutoCompleteMode.None;
     this.EditFBA1.AutoCompleteSource  = System.Windows.Forms.AutoCompleteSource.None;
     this.EditFBA1.ButtonDeleteVisible = true;
     this.EditFBA1.ButtonEditVisible   = false;
     this.EditFBA1.ContextMenuEnabled  = false;
     this.EditFBA1.DataSource          = null;
     this.EditFBA1.DisplayMember       = "";
     this.EditFBA1.DockStyle           = System.Windows.Forms.DockStyle.None;
     this.EditFBA1.DrawMode            = System.Windows.Forms.DrawMode.Normal;
     this.EditFBA1.DropDownHeight      = 106;
     this.EditFBA1.DropDownStyle       = System.Windows.Forms.ComboBoxStyle.DropDown;
     this.EditFBA1.DropDownWidth       = 315;
     this.EditFBA1.DroppedDown         = false;
     this.EditFBA1.EditFormName        = null;
     this.EditFBA1.EntityBrief         = "";
     this.EditFBA1.ErrorIfNull         = null;
     this.EditFBA1.FlatStyle           = System.Windows.Forms.FlatStyle.Standard;
     this.EditFBA1.FormatInfo          = null;
     this.EditFBA1.FormatString        = "";
     this.EditFBA1.FormattingEnabled   = true;
     this.EditFBA1.GroupEnabled        = null;
     this.EditFBA1.IntegralHeight      = true;
     this.EditFBA1.ItemHeight          = 18;
     this.EditFBA1.Location            = new System.Drawing.Point(9, 22);
     this.EditFBA1.Margin           = new System.Windows.Forms.Padding(5);
     this.EditFBA1.MaxDropDownItems = 50;
     this.EditFBA1.MaxLength        = 0;
     this.EditFBA1.MSQL             = "";
     this.EditFBA1.Name             = "EditFBA1";
     this.EditFBA1.ObjectID         = null;
     this.EditFBA1.ObjectMaxCount   = 5;
     this.EditFBA1.ObjectOrderBy    = null;
     this.EditFBA1.ObjRef           = null;
     this.EditFBA1.OuterWHERE       = null;
     this.EditFBA1.ReadOnly         = false;
     this.EditFBA1.SaveParam        = false;
     this.EditFBA1.SaveType         = null;
     this.EditFBA1.SelectedItem     = null;
     this.EditFBA1.SelectedText     = "";
     this.EditFBA1.SelectedValue    = null;
     this.EditFBA1.SelectionLength  = 0;
     this.EditFBA1.SelectionStart   = 0;
     this.EditFBA1.Size             = new System.Drawing.Size(513, 26);
     this.EditFBA1.Sorted           = false;
     this.EditFBA1.SQL                 = "";
     this.EditFBA1.TabIndex            = 31;
     this.EditFBA1.TextAdditional      = null;
     this.EditFBA1.ValueHistoryInItems = false;
     this.EditFBA1.ValueMember         = "";
     this.EditFBA1.СustomQuery         = null;
     this.EditFBA1.DeleteClick        += new System.EventHandler(this.EditFBA1_DeleteClick);
     //
     // FormSearch
     //
     this.ClientSize = new System.Drawing.Size(531, 365);
     this.Controls.Add(this.EditFBA1);
     this.Controls.Add(this.lbResultCount);
     this.Controls.Add(this.gbDirection);
     this.Controls.Add(this.gpSettings);
     this.Controls.Add(this.gpPosition);
     this.Controls.Add(this.lbSerachText);
     this.Controls.Add(this.panelButton);
     this.Controls.Add(this.DGResult);
     this.Name          = "FormSearch";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Search in the table";
     this.TopMost       = true;
     this.FormClosing  += new System.Windows.Forms.FormClosingEventHandler(this.FormSearch_FormClosing);
     this.panelButton.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.DGResult)).EndInit();
     this.gpPosition.ResumeLayout(false);
     this.gpSettings.ResumeLayout(false);
     this.gbDirection.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #10
0
ファイル: FormMethod.Designer.cs プロジェクト: ewgeny911/FBA
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.toolStrip1 = new System.Windows.Forms.ToolStrip();
     this.tbRefresh  = new System.Windows.Forms.ToolStripButton();
     this.tbAdd      = new System.Windows.Forms.ToolStripButton();
     this.tbEdit     = new System.Windows.Forms.ToolStripButton();
     this.tbDelete   = new System.Windows.Forms.ToolStripButton();
     this.dgvMethod  = new FBA.DataGridViewFBA();
     this.toolStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvMethod)).BeginInit();
     this.SuspendLayout();
     //
     // toolStrip1
     //
     this.toolStrip1.Font = new System.Drawing.Font("Arial", 11.25F);
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tbRefresh,
         this.tbAdd,
         this.tbEdit,
         this.tbDelete
     });
     this.toolStrip1.Location = new System.Drawing.Point(0, 0);
     this.toolStrip1.Name     = "toolStrip1";
     this.toolStrip1.Size     = new System.Drawing.Size(507, 25);
     this.toolStrip1.TabIndex = 20;
     this.toolStrip1.Text     = "toolStrip5";
     //
     // tbRefresh
     //
     this.tbRefresh.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbRefresh.Image = global::FBA.Resource.Refresh_16;
     this.tbRefresh.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbRefresh.Name   = "tbRefresh";
     this.tbRefresh.Size   = new System.Drawing.Size(80, 22);
     this.tbRefresh.Text   = "Refresh";
     this.tbRefresh.Click += new System.EventHandler(this.TbRefreshClick);
     //
     // tbAdd
     //
     this.tbAdd.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbAdd.Image = global::FBA.Resource.Add_16;
     this.tbAdd.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbAdd.Name   = "tbAdd";
     this.tbAdd.Size   = new System.Drawing.Size(53, 22);
     this.tbAdd.Text   = "Add";
     this.tbAdd.Click += new System.EventHandler(this.TbRefreshClick);
     //
     // tbEdit
     //
     this.tbEdit.Image = global::FBA.Resource.Edit_16;
     this.tbEdit.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbEdit.Name   = "tbEdit";
     this.tbEdit.Size   = new System.Drawing.Size(53, 22);
     this.tbEdit.Text   = "Edit";
     this.tbEdit.Click += new System.EventHandler(this.TbRefreshClick);
     //
     // tbDelete
     //
     this.tbDelete.Font  = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbDelete.Image = global::FBA.Resource.Del_16;
     this.tbDelete.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tbDelete.Name   = "tbDelete";
     this.tbDelete.Size   = new System.Drawing.Size(70, 22);
     this.tbDelete.Text   = "Delete";
     this.tbDelete.Click += new System.EventHandler(this.TbRefreshClick);
     //
     // dgvMethod
     //
     this.dgvMethod.AllowUserToAddRows          = false;
     this.dgvMethod.AllowUserToDeleteRows       = false;
     this.dgvMethod.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvMethod.CommandAdd           = false;
     this.dgvMethod.CommandDel           = false;
     this.dgvMethod.CommandEdit          = false;
     this.dgvMethod.CommandExportToExcel = false;
     this.dgvMethod.CommandFilter        = false;
     this.dgvMethod.CommandRefresh       = false;
     this.dgvMethod.CommandSaveASCSV     = false;
     this.dgvMethod.Dock = System.Windows.Forms.DockStyle.Fill;
     this.dgvMethod.EnableHeadersVisualStyles = false;
     this.dgvMethod.GroupEnabled  = null;
     this.dgvMethod.Location      = new System.Drawing.Point(0, 25);
     this.dgvMethod.Name          = "dgvMethod";
     this.dgvMethod.Obj           = null;
     this.dgvMethod.PassedSec     = null;
     this.dgvMethod.ReadOnly      = true;
     this.dgvMethod.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvMethod.Size          = new System.Drawing.Size(507, 289);
     this.dgvMethod.TabIndex      = 21;
     //
     // FormMethod
     //
     //this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(507, 314);
     this.Controls.Add(this.dgvMethod);
     this.Controls.Add(this.toolStrip1);
     this.Name = "FormMethod";
     this.Text = "FormMethod";
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvMethod)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #11
0
 private void InitializeComponent()
 {
     this.components        = new System.ComponentModel.Container();
     this.toolStrip1        = new System.Windows.Forms.ToolStrip();
     this.tsN1              = new System.Windows.Forms.ToolStripButton();
     this.tsN2              = new System.Windows.Forms.ToolStripButton();
     this.tsN3              = new System.Windows.Forms.ToolStripButton();
     this.tsN5              = new System.Windows.Forms.ToolStripButton();
     this.tsN4              = new System.Windows.Forms.ToolStripButton();
     this.statusStrip1      = new System.Windows.Forms.StatusStrip();
     this.DGV1              = new FBA.DataGridViewFBA();
     this.toolStrip2        = new System.Windows.Forms.ToolStrip();
     this.tb_N1             = new System.Windows.Forms.ToolStripButton();
     this.tb_N2             = new System.Windows.Forms.ToolStripButton();
     this.tb_N3             = new System.Windows.Forms.ToolStripButton();
     this.tb_N4             = new System.Windows.Forms.ToolStripButton();
     this.tb_N5             = new System.Windows.Forms.ToolStripButton();
     this.tb_N6             = new System.Windows.Forms.ToolStripButton();
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.cm_N1             = new System.Windows.Forms.ToolStripMenuItem();
     this.cm_N2             = new System.Windows.Forms.ToolStripMenuItem();
     this.cm_N3             = new System.Windows.Forms.ToolStripMenuItem();
     this.cm_N4             = new System.Windows.Forms.ToolStripMenuItem();
     this.cm_N5             = new System.Windows.Forms.ToolStripMenuItem();
     this.cm_N6             = new System.Windows.Forms.ToolStripMenuItem();
     this.cm_N7             = new System.Windows.Forms.ToolStripMenuItem();
     this.cm_N8             = new System.Windows.Forms.ToolStripMenuItem();
     this.cm_N9             = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.DGV1)).BeginInit();
     this.toolStrip2.SuspendLayout();
     this.contextMenuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // toolStrip1
     //
     this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None;
     this.toolStrip1.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tsN1,
         this.tsN2,
         this.tsN3,
         this.tsN5,
         this.tsN4
     });
     this.toolStrip1.Location = new System.Drawing.Point(137, 72);
     this.toolStrip1.Name     = "toolStrip1";
     this.toolStrip1.Size     = new System.Drawing.Size(127, 25);
     this.toolStrip1.TabIndex = 19;
     this.toolStrip1.Text     = "toolStrip2";
     this.toolStrip1.Visible  = false;
     //
     // tsN1
     //
     this.tsN1.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsN1.Image                 = global::FBA.Resource.Filter_16;
     this.tsN1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsN1.Name = "tsN1";
     this.tsN1.Size = new System.Drawing.Size(23, 22);
     this.tsN1.Text = "toolStripButton1";
     //
     // tsN2
     //
     this.tsN2.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsN2.Image                 = global::FBA.Resource.Refresh_16;
     this.tsN2.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsN2.Name = "tsN2";
     this.tsN2.Size = new System.Drawing.Size(23, 22);
     this.tsN2.Text = "toolStripButton1";
     //
     // tsN3
     //
     this.tsN3.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsN3.Image                 = global::FBA.Resource.Add_16;
     this.tsN3.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsN3.Name = "tsN3";
     this.tsN3.Size = new System.Drawing.Size(23, 22);
     this.tsN3.Text = "toolStripButton2";
     //
     // tsN5
     //
     this.tsN5.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsN5.Image                 = global::FBA.Resource.Edit_16;
     this.tsN5.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsN5.Name = "tsN5";
     this.tsN5.Size = new System.Drawing.Size(23, 22);
     this.tsN5.Text = "toolStripButton4";
     //
     // tsN4
     //
     this.tsN4.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tsN4.Image                 = global::FBA.Resource.Del_16;
     this.tsN4.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsN4.Name = "tsN4";
     this.tsN4.Size = new System.Drawing.Size(23, 22);
     this.tsN4.Text = "toolStripButton3";
     //
     // statusStrip1
     //
     this.statusStrip1.Location = new System.Drawing.Point(0, 360);
     this.statusStrip1.Name     = "statusStrip1";
     this.statusStrip1.Size     = new System.Drawing.Size(591, 22);
     this.statusStrip1.TabIndex = 20;
     this.statusStrip1.Text     = "statusStrip1";
     //
     // DGV1
     //
     this.DGV1.AllowUserToAddRows          = false;
     this.DGV1.AllowUserToDeleteRows       = false;
     this.DGV1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.DGV1.CommandAdd           = false;
     this.DGV1.CommandDel           = false;
     this.DGV1.CommandEdit          = false;
     this.DGV1.CommandExportToExcel = false;
     this.DGV1.CommandFilter        = false;
     this.DGV1.CommandRefresh       = false;
     this.DGV1.CommandSaveASCSV     = false;
     this.DGV1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.DGV1.EnableHeadersVisualStyles = false;
     this.DGV1.GroupEnabled  = null;
     this.DGV1.Location      = new System.Drawing.Point(0, 31);
     this.DGV1.Name          = "DGV1";
     this.DGV1.ReadOnly      = true;
     this.DGV1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.DGV1.Size          = new System.Drawing.Size(591, 329);
     this.DGV1.TabIndex      = 21;
     //
     // toolStrip2
     //
     this.toolStrip2.ImageScalingSize = new System.Drawing.Size(24, 24);
     this.toolStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tb_N1,
         this.tb_N2,
         this.tb_N3,
         this.tb_N4,
         this.tb_N5,
         this.tb_N6
     });
     this.toolStrip2.Location = new System.Drawing.Point(0, 0);
     this.toolStrip2.Name     = "toolStrip2";
     this.toolStrip2.Size     = new System.Drawing.Size(591, 31);
     this.toolStrip2.TabIndex = 22;
     this.toolStrip2.Text     = "toolStrip2";
     //
     // tb_N1
     //
     this.tb_N1.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tb_N1.Image                 = global::FBA.Resource.Filter_24;
     this.tb_N1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tb_N1.Name   = "tb_N1";
     this.tb_N1.Size   = new System.Drawing.Size(28, 28);
     this.tb_N1.Text   = "toolStripButton1";
     this.tb_N1.Click += new System.EventHandler(this.tb_N1_Click);
     //
     // tb_N2
     //
     this.tb_N2.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tb_N2.Image                 = global::FBA.Resource.Refresh_24;
     this.tb_N2.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tb_N2.Name = "tb_N2";
     this.tb_N2.Size = new System.Drawing.Size(28, 28);
     this.tb_N2.Text = "toolStripButton2";
     //
     // tb_N3
     //
     this.tb_N3.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tb_N3.Image                 = global::FBA.Resource.Add_24;
     this.tb_N3.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tb_N3.Name = "tb_N3";
     this.tb_N3.Size = new System.Drawing.Size(28, 28);
     this.tb_N3.Text = "toolStripButton3";
     //
     // tb_N4
     //
     this.tb_N4.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tb_N4.Image                 = global::FBA.Resource.Edit_24;
     this.tb_N4.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tb_N4.Name = "tb_N4";
     this.tb_N4.Size = new System.Drawing.Size(28, 28);
     this.tb_N4.Text = "toolStripButton4";
     //
     // tb_N5
     //
     this.tb_N5.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tb_N5.Image                 = global::FBA.Resource.Del_24;
     this.tb_N5.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tb_N5.Name = "tb_N5";
     this.tb_N5.Size = new System.Drawing.Size(28, 28);
     this.tb_N5.Text = "toolStripButton5";
     //
     // tb_N6
     //
     this.tb_N6.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.tb_N6.Image                 = global::FBA.Resource.Search_24;
     this.tb_N6.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tb_N6.Name = "tb_N6";
     this.tb_N6.Size = new System.Drawing.Size(28, 28);
     this.tb_N6.Text = "toolStripButton6";
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.cm_N1,
         this.cm_N2,
         this.cm_N3,
         this.cm_N4,
         this.cm_N5,
         this.cm_N6,
         this.cm_N7,
         this.cm_N8,
         this.cm_N9
     });
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(151, 202);
     //
     // cm_N1
     //
     this.cm_N1.Image  = global::FBA.Resource.Filter_16;
     this.cm_N1.Name   = "cm_N1";
     this.cm_N1.Size   = new System.Drawing.Size(150, 22);
     this.cm_N1.Text   = "Filter";
     this.cm_N1.Click += new System.EventHandler(this.tb_N1_Click);
     //
     // cm_N2
     //
     this.cm_N2.Image  = global::FBA.Resource.Refresh_16;
     this.cm_N2.Name   = "cm_N2";
     this.cm_N2.Size   = new System.Drawing.Size(150, 22);
     this.cm_N2.Text   = "Refresh";
     this.cm_N2.Click += new System.EventHandler(this.tb_N1_Click);
     //
     // cm_N3
     //
     this.cm_N3.Image  = global::FBA.Resource.Add_16;
     this.cm_N3.Name   = "cm_N3";
     this.cm_N3.Size   = new System.Drawing.Size(150, 22);
     this.cm_N3.Text   = "Add";
     this.cm_N3.Click += new System.EventHandler(this.tb_N1_Click);
     //
     // cm_N4
     //
     this.cm_N4.Image  = global::FBA.Resource.Edit_16;
     this.cm_N4.Name   = "cm_N4";
     this.cm_N4.Size   = new System.Drawing.Size(150, 22);
     this.cm_N4.Text   = "Edit";
     this.cm_N4.Click += new System.EventHandler(this.tb_N1_Click);
     //
     // cm_N5
     //
     this.cm_N5.Image  = global::FBA.Resource.Del_16;
     this.cm_N5.Name   = "cm_N5";
     this.cm_N5.Size   = new System.Drawing.Size(150, 22);
     this.cm_N5.Text   = "Delete";
     this.cm_N5.Click += new System.EventHandler(this.tb_N1_Click);
     //
     // cm_N6
     //
     this.cm_N6.Image  = global::FBA.Resource.ExportExcel_16;
     this.cm_N6.Name   = "cm_N6";
     this.cm_N6.Size   = new System.Drawing.Size(150, 22);
     this.cm_N6.Text   = "Export to Excel";
     this.cm_N6.Click += new System.EventHandler(this.tb_N1_Click);
     //
     // cm_N7
     //
     this.cm_N7.Image  = global::FBA.Resource.SaveCSV_16;
     this.cm_N7.Name   = "cm_N7";
     this.cm_N7.Size   = new System.Drawing.Size(150, 22);
     this.cm_N7.Text   = "Save to CSV";
     this.cm_N7.Click += new System.EventHandler(this.tb_N1_Click);
     //
     // cm_N8
     //
     this.cm_N8.Name   = "cm_N8";
     this.cm_N8.Size   = new System.Drawing.Size(150, 22);
     this.cm_N8.Text   = "Details";
     this.cm_N8.Click += new System.EventHandler(this.tb_N1_Click);
     //
     // cm_N9
     //
     this.cm_N9.Image  = global::FBA.Resource.Search_16;
     this.cm_N9.Name   = "cm_N9";
     this.cm_N9.Size   = new System.Drawing.Size(150, 22);
     this.cm_N9.Text   = "Search";
     this.cm_N9.Click += new System.EventHandler(this.tb_N1_Click);
     //
     // FormViewEntity
     //
     //this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(591, 382);
     this.Controls.Add(this.DGV1);
     this.Controls.Add(this.toolStrip1);
     this.Controls.Add(this.toolStrip2);
     this.Controls.Add(this.statusStrip1);
     this.Name = "FormViewEntity";
     this.Text = "View Entity";
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.DGV1)).EndInit();
     this.toolStrip2.ResumeLayout(false);
     this.toolStrip2.PerformLayout();
     this.contextMenuStrip1.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #12
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.pnlObj1         = new System.Windows.Forms.Panel();
     this.dgvObj1         = new FBA.DataGridViewFBA();
     this.pnlText1        = new System.Windows.Forms.Panel();
     this.lbText1         = new System.Windows.Forms.Label();
     this.pnlObjSplitter  = new System.Windows.Forms.Panel();
     this.btnObjDelAll    = new System.Windows.Forms.Button();
     this.btnObjDel       = new System.Windows.Forms.Button();
     this.btnObjAddAll    = new System.Windows.Forms.Button();
     this.btnObjAdd       = new System.Windows.Forms.Button();
     this.pnlObj2         = new System.Windows.Forms.Panel();
     this.dgvObj2         = new FBA.DataGridViewFBA();
     this.pnlText2        = new System.Windows.Forms.Panel();
     this.lbText2         = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.pnlObj1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvObj1)).BeginInit();
     this.pnlText1.SuspendLayout();
     this.pnlObjSplitter.SuspendLayout();
     this.pnlObj2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvObj2)).BeginInit();
     this.pnlText2.SuspendLayout();
     this.SuspendLayout();
     //
     // splitContainer1
     //
     this.splitContainer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.Location = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name     = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.pnlObj1);
     this.splitContainer1.Panel1.Controls.Add(this.pnlObjSplitter);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.pnlObj2);
     this.splitContainer1.Size             = new System.Drawing.Size(348, 216);
     this.splitContainer1.SplitterDistance = 195;
     this.splitContainer1.SplitterWidth    = 3;
     this.splitContainer1.TabIndex         = 31;
     //
     // pnlObj1
     //
     this.pnlObj1.Controls.Add(this.dgvObj1);
     this.pnlObj1.Controls.Add(this.pnlText1);
     this.pnlObj1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnlObj1.Location = new System.Drawing.Point(0, 0);
     this.pnlObj1.Name     = "pnlObj1";
     this.pnlObj1.Size     = new System.Drawing.Size(151, 216);
     this.pnlObj1.TabIndex = 3;
     //
     // dgvObj1
     //
     this.dgvObj1.AllowUserToAddRows              = false;
     this.dgvObj1.AllowUserToDeleteRows           = false;
     this.dgvObj1.AllowUserToOrderColumns         = true;
     this.dgvObj1.AllowUserToResizeRows           = false;
     dataGridViewCellStyle1.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.dgvObj1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
     this.dgvObj1.AutoSizeColumnsMode             = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
     this.dgvObj1.AutoSizeRowsMode            = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
     this.dgvObj1.ClipboardCopyMode           = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
     this.dgvObj1.ColumnHeadersBorderStyle    = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
     this.dgvObj1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvObj1.CommandAdd                   = false;
     this.dgvObj1.CommandDel                   = false;
     this.dgvObj1.CommandEdit                  = false;
     this.dgvObj1.CommandExportToExcel         = false;
     this.dgvObj1.CommandFilter                = false;
     this.dgvObj1.CommandRefresh               = false;
     this.dgvObj1.CommandSaveASCSV             = false;
     dataGridViewCellStyle2.Alignment          = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle2.BackColor          = System.Drawing.SystemColors.Window;
     dataGridViewCellStyle2.Font               = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     dataGridViewCellStyle2.ForeColor          = System.Drawing.SystemColors.ControlText;
     dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.Blue;
     dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle2.WrapMode           = System.Windows.Forms.DataGridViewTriState.False;
     this.dgvObj1.DefaultCellStyle             = dataGridViewCellStyle2;
     this.dgvObj1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.dgvObj1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
     this.dgvObj1.EnableHeadersVisualStyles = false;
     this.dgvObj1.GroupEnabled          = null;
     this.dgvObj1.Location              = new System.Drawing.Point(0, 29);
     this.dgvObj1.Margin                = new System.Windows.Forms.Padding(1);
     this.dgvObj1.MultiSelect           = false;
     this.dgvObj1.Name                  = "dgvObj1";
     this.dgvObj1.Obj                   = null;
     this.dgvObj1.PassedSec             = null;
     this.dgvObj1.ReadOnly              = true;
     this.dgvObj1.RowHeadersVisible     = false;
     this.dgvObj1.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvObj1.SelectionMode         = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvObj1.Size                  = new System.Drawing.Size(151, 187);
     this.dgvObj1.TabIndex              = 4;
     //
     // pnlText1
     //
     this.pnlText1.BackColor = System.Drawing.SystemColors.Menu;
     this.pnlText1.Controls.Add(this.lbText1);
     this.pnlText1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pnlText1.Font     = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.pnlText1.Location = new System.Drawing.Point(0, 0);
     this.pnlText1.Name     = "pnlText1";
     this.pnlText1.Size     = new System.Drawing.Size(151, 29);
     this.pnlText1.TabIndex = 3;
     //
     // lbText1
     //
     this.lbText1.Location = new System.Drawing.Point(4, 4);
     this.lbText1.Name     = "lbText1";
     this.lbText1.Size     = new System.Drawing.Size(100, 23);
     this.lbText1.TabIndex = 0;
     this.lbText1.Text     = "Available";
     //
     // pnlObjSplitter
     //
     this.pnlObjSplitter.Controls.Add(this.btnObjDelAll);
     this.pnlObjSplitter.Controls.Add(this.btnObjDel);
     this.pnlObjSplitter.Controls.Add(this.btnObjAddAll);
     this.pnlObjSplitter.Controls.Add(this.btnObjAdd);
     this.pnlObjSplitter.Dock     = System.Windows.Forms.DockStyle.Right;
     this.pnlObjSplitter.Location = new System.Drawing.Point(151, 0);
     this.pnlObjSplitter.Margin   = new System.Windows.Forms.Padding(4);
     this.pnlObjSplitter.Name     = "pnlObjSplitter";
     this.pnlObjSplitter.Size     = new System.Drawing.Size(44, 216);
     this.pnlObjSplitter.TabIndex = 3;
     //
     // btnObjDelAll
     //
     this.btnObjDelAll.Image    = global::FBA.Resource.Delete_24;
     this.btnObjDelAll.Location = new System.Drawing.Point(4, 118);
     this.btnObjDelAll.Margin   = new System.Windows.Forms.Padding(4);
     this.btnObjDelAll.Name     = "btnObjDelAll";
     this.btnObjDelAll.Size     = new System.Drawing.Size(38, 34);
     this.btnObjDelAll.TabIndex = 3;
     this.btnObjDelAll.UseVisualStyleBackColor = true;
     this.btnObjDelAll.Click += new System.EventHandler(this.BtnObjAddClick);
     //
     // btnObjDel
     //
     this.btnObjDel.Image    = global::FBA.Resource.Back_24;
     this.btnObjDel.Location = new System.Drawing.Point(4, 42);
     this.btnObjDel.Margin   = new System.Windows.Forms.Padding(4);
     this.btnObjDel.Name     = "btnObjDel";
     this.btnObjDel.Size     = new System.Drawing.Size(38, 34);
     this.btnObjDel.TabIndex = 2;
     this.btnObjDel.UseVisualStyleBackColor = true;
     this.btnObjDel.Click += new System.EventHandler(this.BtnObjAddClick);
     //
     // btnObjAddAll
     //
     this.btnObjAddAll.Image    = global::FBA.Resource.Yes_24;
     this.btnObjAddAll.Location = new System.Drawing.Point(4, 80);
     this.btnObjAddAll.Margin   = new System.Windows.Forms.Padding(4);
     this.btnObjAddAll.Name     = "btnObjAddAll";
     this.btnObjAddAll.Size     = new System.Drawing.Size(38, 34);
     this.btnObjAddAll.TabIndex = 1;
     this.btnObjAddAll.UseVisualStyleBackColor = true;
     this.btnObjAddAll.Click += new System.EventHandler(this.BtnObjAddClick);
     //
     // btnObjAdd
     //
     this.btnObjAdd.Image    = global::FBA.Resource.Forward_24;
     this.btnObjAdd.Location = new System.Drawing.Point(4, 4);
     this.btnObjAdd.Margin   = new System.Windows.Forms.Padding(4);
     this.btnObjAdd.Name     = "btnObjAdd";
     this.btnObjAdd.Size     = new System.Drawing.Size(38, 34);
     this.btnObjAdd.TabIndex = 0;
     this.btnObjAdd.UseVisualStyleBackColor = true;
     this.btnObjAdd.Click += new System.EventHandler(this.BtnObjAddClick);
     //
     // pnlObj2
     //
     this.pnlObj2.Controls.Add(this.dgvObj2);
     this.pnlObj2.Controls.Add(this.pnlText2);
     this.pnlObj2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnlObj2.Location = new System.Drawing.Point(0, 0);
     this.pnlObj2.Margin   = new System.Windows.Forms.Padding(4);
     this.pnlObj2.Name     = "pnlObj2";
     this.pnlObj2.Size     = new System.Drawing.Size(150, 216);
     this.pnlObj2.TabIndex = 3;
     //
     // dgvObj2
     //
     this.dgvObj2.AllowUserToAddRows              = false;
     this.dgvObj2.AllowUserToDeleteRows           = false;
     this.dgvObj2.AllowUserToOrderColumns         = true;
     this.dgvObj2.AllowUserToResizeRows           = false;
     dataGridViewCellStyle3.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.dgvObj2.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
     this.dgvObj2.AutoSizeColumnsMode             = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
     this.dgvObj2.AutoSizeRowsMode            = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
     this.dgvObj2.ClipboardCopyMode           = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
     this.dgvObj2.ColumnHeadersBorderStyle    = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
     this.dgvObj2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvObj2.CommandAdd                   = false;
     this.dgvObj2.CommandDel                   = false;
     this.dgvObj2.CommandEdit                  = false;
     this.dgvObj2.CommandExportToExcel         = false;
     this.dgvObj2.CommandFilter                = false;
     this.dgvObj2.CommandRefresh               = false;
     this.dgvObj2.CommandSaveASCSV             = false;
     dataGridViewCellStyle4.Alignment          = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle4.BackColor          = System.Drawing.SystemColors.Window;
     dataGridViewCellStyle4.Font               = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     dataGridViewCellStyle4.ForeColor          = System.Drawing.SystemColors.ControlText;
     dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.Blue;
     dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle4.WrapMode           = System.Windows.Forms.DataGridViewTriState.False;
     this.dgvObj2.DefaultCellStyle             = dataGridViewCellStyle4;
     this.dgvObj2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.dgvObj2.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
     this.dgvObj2.EnableHeadersVisualStyles = false;
     this.dgvObj2.GroupEnabled          = null;
     this.dgvObj2.Location              = new System.Drawing.Point(0, 29);
     this.dgvObj2.Margin                = new System.Windows.Forms.Padding(1);
     this.dgvObj2.MultiSelect           = false;
     this.dgvObj2.Name                  = "dgvObj2";
     this.dgvObj2.Obj                   = null;
     this.dgvObj2.PassedSec             = null;
     this.dgvObj2.ReadOnly              = true;
     this.dgvObj2.RowHeadersVisible     = false;
     this.dgvObj2.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvObj2.SelectionMode         = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvObj2.Size                  = new System.Drawing.Size(150, 187);
     this.dgvObj2.TabIndex              = 1;
     //
     // pnlText2
     //
     this.pnlText2.BackColor = System.Drawing.SystemColors.Menu;
     this.pnlText2.Controls.Add(this.lbText2);
     this.pnlText2.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pnlText2.Font     = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.pnlText2.Location = new System.Drawing.Point(0, 0);
     this.pnlText2.Name     = "pnlText2";
     this.pnlText2.Size     = new System.Drawing.Size(150, 29);
     this.pnlText2.TabIndex = 3;
     //
     // lbText2
     //
     this.lbText2.Location = new System.Drawing.Point(3, 4);
     this.lbText2.Name     = "lbText2";
     this.lbText2.Size     = new System.Drawing.Size(100, 23);
     this.lbText2.TabIndex = 1;
     this.lbText2.Text     = "Selected";
     //
     // SysObjAdd
     //
     this.Controls.Add(this.splitContainer1);
     this.Name = "SysObjAdd";
     this.Size = new System.Drawing.Size(348, 216);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     this.pnlObj1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dgvObj1)).EndInit();
     this.pnlText1.ResumeLayout(false);
     this.pnlObjSplitter.ResumeLayout(false);
     this.pnlObj2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dgvObj2)).EndInit();
     this.pnlText2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
コード例 #13
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
     this.panel1          = new System.Windows.Forms.Panel();
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.dgvEntity       = new FBA.DataGridViewFBA();
     this.cmMenu1         = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.cmMenu1_N1      = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStrip1      = new System.Windows.Forms.ToolStrip();
     this.ts1_N1          = new System.Windows.Forms.ToolStripButton();
     this.ts1_N2          = new System.Windows.Forms.ToolStripButton();
     this.splitContainer2 = new System.Windows.Forms.SplitContainer();
     this.dgvParent       = new FBA.DataGridViewFBA();
     this.toolStrip2      = new System.Windows.Forms.ToolStrip();
     this.ts2_N1          = new System.Windows.Forms.ToolStripButton();
     this.ts2_N2          = new System.Windows.Forms.ToolStripButton();
     this.dgvChange       = new FBA.DataGridViewFBA();
     this.toolStrip3      = new System.Windows.Forms.ToolStrip();
     this.ts3_N1          = new System.Windows.Forms.ToolStripButton();
     this.ts3_N2          = new System.Windows.Forms.ToolStripButton();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvEntity)).BeginInit();
     this.cmMenu1.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
     this.splitContainer2.Panel1.SuspendLayout();
     this.splitContainer2.Panel2.SuspendLayout();
     this.splitContainer2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvParent)).BeginInit();
     this.toolStrip2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvChange)).BeginInit();
     this.toolStrip3.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.splitContainer1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Margin   = new System.Windows.Forms.Padding(4);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(745, 400);
     this.panel1.TabIndex = 0;
     //
     // splitContainer1
     //
     this.splitContainer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.Location = new System.Drawing.Point(0, 0);
     this.splitContainer1.Margin   = new System.Windows.Forms.Padding(4);
     this.splitContainer1.Name     = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.dgvEntity);
     this.splitContainer1.Panel1.Controls.Add(this.toolStrip1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
     this.splitContainer1.Size             = new System.Drawing.Size(745, 400);
     this.splitContainer1.SplitterDistance = 235;
     this.splitContainer1.SplitterWidth    = 5;
     this.splitContainer1.TabIndex         = 1;
     //
     // dgvEntity
     //
     this.dgvEntity.AllowUserToAddRows              = false;
     this.dgvEntity.AllowUserToDeleteRows           = false;
     this.dgvEntity.AllowUserToOrderColumns         = true;
     this.dgvEntity.AllowUserToResizeRows           = false;
     dataGridViewCellStyle1.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.dgvEntity.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
     this.dgvEntity.AutoSizeColumnsMode             = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
     this.dgvEntity.AutoSizeRowsMode            = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
     this.dgvEntity.BackgroundColor             = System.Drawing.SystemColors.ButtonShadow;
     this.dgvEntity.ClipboardCopyMode           = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
     this.dgvEntity.ColumnHeadersBorderStyle    = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
     this.dgvEntity.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvEntity.CommandAdd                 = false;
     this.dgvEntity.CommandDel                 = false;
     this.dgvEntity.CommandEdit                = false;
     this.dgvEntity.CommandExportToExcel       = false;
     this.dgvEntity.CommandFilter              = false;
     this.dgvEntity.CommandRefresh             = false;
     this.dgvEntity.CommandSaveASCSV           = false;
     this.dgvEntity.ContextMenuStrip           = this.cmMenu1;
     dataGridViewCellStyle2.Alignment          = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle2.BackColor          = System.Drawing.SystemColors.Window;
     dataGridViewCellStyle2.Font               = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     dataGridViewCellStyle2.ForeColor          = System.Drawing.SystemColors.ControlText;
     dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.Blue;
     dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle2.WrapMode           = System.Windows.Forms.DataGridViewTriState.False;
     this.dgvEntity.DefaultCellStyle           = dataGridViewCellStyle2;
     this.dgvEntity.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.dgvEntity.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
     this.dgvEntity.EnableHeadersVisualStyles = false;
     this.dgvEntity.GroupEnabled          = null;
     this.dgvEntity.Location              = new System.Drawing.Point(0, 25);
     this.dgvEntity.Margin                = new System.Windows.Forms.Padding(1);
     this.dgvEntity.MultiSelect           = false;
     this.dgvEntity.Name                  = "dgvEntity";
     this.dgvEntity.Obj                   = null;
     this.dgvEntity.PassedSec             = null;
     this.dgvEntity.ReadOnly              = true;
     this.dgvEntity.RowHeadersVisible     = false;
     this.dgvEntity.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvEntity.SelectionMode         = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvEntity.Size                  = new System.Drawing.Size(235, 375);
     this.dgvEntity.TabIndex              = 2;
     this.dgvEntity.SelectionChanged     += new System.EventHandler(this.DgvEntitySelectionChanged);
     this.dgvEntity.DoubleClick          += new System.EventHandler(this.DgvEntityDoubleClick);
     //
     // cmMenu1
     //
     this.cmMenu1.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.cmMenu1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.cmMenu1_N1
     });
     this.cmMenu1.Name = "cmMenu1";
     this.cmMenu1.Size = new System.Drawing.Size(129, 26);
     //
     // cmMenu1_N1
     //
     this.cmMenu1_N1.Name   = "cmMenu1_N1";
     this.cmMenu1_N1.Size   = new System.Drawing.Size(128, 22);
     this.cmMenu1_N1.Text   = "Refresh";
     this.cmMenu1_N1.Click += new System.EventHandler(this.cmMenu1_N1_Click);
     //
     // toolStrip1
     //
     this.toolStrip1.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.ts1_N1,
         this.ts1_N2
     });
     this.toolStrip1.Location = new System.Drawing.Point(0, 0);
     this.toolStrip1.Name     = "toolStrip1";
     this.toolStrip1.Size     = new System.Drawing.Size(235, 25);
     this.toolStrip1.TabIndex = 1;
     this.toolStrip1.Text     = "toolStrip1";
     //
     // ts1_N1
     //
     this.ts1_N1.Image = global::FBA.Resource.Add_16;
     this.ts1_N1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.ts1_N1.Name   = "ts1_N1";
     this.ts1_N1.Size   = new System.Drawing.Size(91, 22);
     this.ts1_N1.Text   = "Add entity";
     this.ts1_N1.Click += new System.EventHandler(this.ts1_N1_Click);
     //
     // ts1_N2
     //
     this.ts1_N2.Image = global::FBA.Resource.Del_16;
     this.ts1_N2.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.ts1_N2.Name   = "ts1_N2";
     this.ts1_N2.Size   = new System.Drawing.Size(88, 22);
     this.ts1_N2.Text   = "Del entity";
     this.ts1_N2.Click += new System.EventHandler(this.ts1_N1_Click);
     //
     // splitContainer2
     //
     this.splitContainer2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer2.Location = new System.Drawing.Point(0, 0);
     this.splitContainer2.Name     = "splitContainer2";
     //
     // splitContainer2.Panel1
     //
     this.splitContainer2.Panel1.Controls.Add(this.dgvParent);
     this.splitContainer2.Panel1.Controls.Add(this.toolStrip2);
     //
     // splitContainer2.Panel2
     //
     this.splitContainer2.Panel2.Controls.Add(this.dgvChange);
     this.splitContainer2.Panel2.Controls.Add(this.toolStrip3);
     this.splitContainer2.Size             = new System.Drawing.Size(505, 400);
     this.splitContainer2.SplitterDistance = 260;
     this.splitContainer2.TabIndex         = 0;
     //
     // dgvParent
     //
     this.dgvParent.AllowUserToAddRows              = false;
     this.dgvParent.AllowUserToDeleteRows           = false;
     this.dgvParent.AllowUserToOrderColumns         = true;
     this.dgvParent.AllowUserToResizeRows           = false;
     dataGridViewCellStyle3.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.dgvParent.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
     this.dgvParent.AutoSizeColumnsMode             = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
     this.dgvParent.AutoSizeRowsMode            = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
     this.dgvParent.BackgroundColor             = System.Drawing.SystemColors.ButtonShadow;
     this.dgvParent.ClipboardCopyMode           = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
     this.dgvParent.ColumnHeadersBorderStyle    = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
     this.dgvParent.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvParent.CommandAdd                 = false;
     this.dgvParent.CommandDel                 = false;
     this.dgvParent.CommandEdit                = false;
     this.dgvParent.CommandExportToExcel       = false;
     this.dgvParent.CommandFilter              = false;
     this.dgvParent.CommandRefresh             = false;
     this.dgvParent.CommandSaveASCSV           = false;
     this.dgvParent.ContextMenuStrip           = this.cmMenu1;
     dataGridViewCellStyle4.Alignment          = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle4.BackColor          = System.Drawing.SystemColors.Window;
     dataGridViewCellStyle4.Font               = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     dataGridViewCellStyle4.ForeColor          = System.Drawing.SystemColors.ControlText;
     dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.Blue;
     dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle4.WrapMode           = System.Windows.Forms.DataGridViewTriState.False;
     this.dgvParent.DefaultCellStyle           = dataGridViewCellStyle4;
     this.dgvParent.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.dgvParent.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
     this.dgvParent.EnableHeadersVisualStyles = false;
     this.dgvParent.GroupEnabled          = null;
     this.dgvParent.Location              = new System.Drawing.Point(0, 25);
     this.dgvParent.Margin                = new System.Windows.Forms.Padding(1);
     this.dgvParent.MultiSelect           = false;
     this.dgvParent.Name                  = "dgvParent";
     this.dgvParent.Obj                   = null;
     this.dgvParent.PassedSec             = null;
     this.dgvParent.ReadOnly              = true;
     this.dgvParent.RowHeadersVisible     = false;
     this.dgvParent.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvParent.SelectionMode         = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvParent.Size                  = new System.Drawing.Size(260, 375);
     this.dgvParent.TabIndex              = 3;
     this.dgvParent.SelectionChanged     += new System.EventHandler(this.DgvParentSelectionChanged);
     this.dgvParent.DoubleClick          += new System.EventHandler(this.DgvParentDoubleClick);
     //
     // toolStrip2
     //
     this.toolStrip2.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.toolStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.ts2_N1,
         this.ts2_N2
     });
     this.toolStrip2.Location = new System.Drawing.Point(0, 0);
     this.toolStrip2.Name     = "toolStrip2";
     this.toolStrip2.Size     = new System.Drawing.Size(260, 25);
     this.toolStrip2.TabIndex = 2;
     this.toolStrip2.Text     = "toolStrip2";
     //
     // ts2_N1
     //
     this.ts2_N1.Image = global::FBA.Resource.Add_16;
     this.ts2_N1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.ts2_N1.Name   = "ts2_N1";
     this.ts2_N1.Size   = new System.Drawing.Size(97, 22);
     this.ts2_N1.Text   = "Add status";
     this.ts2_N1.Click += new System.EventHandler(this.ts1_N1_Click);
     //
     // ts2_N2
     //
     this.ts2_N2.Image = global::FBA.Resource.Del_16;
     this.ts2_N2.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.ts2_N2.Name   = "ts2_N2";
     this.ts2_N2.Size   = new System.Drawing.Size(94, 22);
     this.ts2_N2.Text   = "Del status";
     this.ts2_N2.Click += new System.EventHandler(this.ts1_N1_Click);
     //
     // dgvChange
     //
     this.dgvChange.AllowUserToAddRows              = false;
     this.dgvChange.AllowUserToDeleteRows           = false;
     this.dgvChange.AllowUserToOrderColumns         = true;
     this.dgvChange.AllowUserToResizeRows           = false;
     dataGridViewCellStyle5.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.dgvChange.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
     this.dgvChange.AutoSizeColumnsMode             = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
     this.dgvChange.AutoSizeRowsMode            = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
     this.dgvChange.BackgroundColor             = System.Drawing.SystemColors.ButtonShadow;
     this.dgvChange.ClipboardCopyMode           = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
     this.dgvChange.ColumnHeadersBorderStyle    = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
     this.dgvChange.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvChange.CommandAdd                 = false;
     this.dgvChange.CommandDel                 = false;
     this.dgvChange.CommandEdit                = false;
     this.dgvChange.CommandExportToExcel       = false;
     this.dgvChange.CommandFilter              = false;
     this.dgvChange.CommandRefresh             = false;
     this.dgvChange.CommandSaveASCSV           = false;
     this.dgvChange.ContextMenuStrip           = this.cmMenu1;
     dataGridViewCellStyle6.Alignment          = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle6.BackColor          = System.Drawing.SystemColors.Window;
     dataGridViewCellStyle6.Font               = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     dataGridViewCellStyle6.ForeColor          = System.Drawing.SystemColors.ControlText;
     dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.Blue;
     dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle6.WrapMode           = System.Windows.Forms.DataGridViewTriState.False;
     this.dgvChange.DefaultCellStyle           = dataGridViewCellStyle6;
     this.dgvChange.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.dgvChange.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
     this.dgvChange.EnableHeadersVisualStyles = false;
     this.dgvChange.GroupEnabled          = null;
     this.dgvChange.Location              = new System.Drawing.Point(0, 25);
     this.dgvChange.Margin                = new System.Windows.Forms.Padding(1);
     this.dgvChange.MultiSelect           = false;
     this.dgvChange.Name                  = "dgvChange";
     this.dgvChange.Obj                   = null;
     this.dgvChange.PassedSec             = null;
     this.dgvChange.ReadOnly              = true;
     this.dgvChange.RowHeadersVisible     = false;
     this.dgvChange.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvChange.SelectionMode         = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dgvChange.Size                  = new System.Drawing.Size(241, 375);
     this.dgvChange.TabIndex              = 3;
     //
     // toolStrip3
     //
     this.toolStrip3.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.toolStrip3.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.ts3_N1,
         this.ts3_N2
     });
     this.toolStrip3.Location = new System.Drawing.Point(0, 0);
     this.toolStrip3.Name     = "toolStrip3";
     this.toolStrip3.Size     = new System.Drawing.Size(241, 25);
     this.toolStrip3.TabIndex = 2;
     this.toolStrip3.Text     = "toolStrip3";
     //
     // ts3_N1
     //
     this.ts3_N1.Image = global::FBA.Resource.Add_16;
     this.ts3_N1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.ts3_N1.Name   = "ts3_N1";
     this.ts3_N1.Size   = new System.Drawing.Size(105, 22);
     this.ts3_N1.Text   = "Add change";
     this.ts3_N1.Click += new System.EventHandler(this.ts1_N1_Click);
     //
     // ts3_N2
     //
     this.ts3_N2.Image = global::FBA.Resource.Del_16;
     this.ts3_N2.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.ts3_N2.Name   = "ts3_N2";
     this.ts3_N2.Size   = new System.Drawing.Size(102, 22);
     this.ts3_N2.Text   = "Del change";
     this.ts3_N2.Click += new System.EventHandler(this.ts1_N1_Click);
     //
     // FormStatus
     //
     this.ClientSize = new System.Drawing.Size(745, 400);
     this.Controls.Add(this.panel1);
     this.Font   = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.Margin = new System.Windows.Forms.Padding(4);
     this.Name   = "FormStatus";
     this.Text   = "Status";
     this.panel1.ResumeLayout(false);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel1.PerformLayout();
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dgvEntity)).EndInit();
     this.cmMenu1.ResumeLayout(false);
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.splitContainer2.Panel1.ResumeLayout(false);
     this.splitContainer2.Panel1.PerformLayout();
     this.splitContainer2.Panel2.ResumeLayout(false);
     this.splitContainer2.Panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
     this.splitContainer2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dgvParent)).EndInit();
     this.toolStrip2.ResumeLayout(false);
     this.toolStrip2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvChange)).EndInit();
     this.toolStrip3.ResumeLayout(false);
     this.toolStrip3.PerformLayout();
     this.ResumeLayout(false);
 }
コード例 #14
0
        /// <summary>
        /// Поиск текста по гриду.
        /// </summary>
        /// <param name="DGSearch"></param>
        /// <param name="DGResult"></param>
        /// <param name="SearchText"></param>
        /// <param name="ShowResult"></param>
        /// <param name="CaseSensitivity"></param>
        /// <param name="SearchAll"></param>
        /// <param name="Highlight"></param>
        /// <param name="DirectionDown"></param>
        /// <param name="SelectedColumn"></param>
        /// <param name="SelectedRow"></param>
        /// <param name="SearchPart"></param>
        /// <param name="FindCount"></param>
        /// <returns></returns>
        public static bool SerchTextDataGridView(FBA.DataGridViewFBA DGSearch,
                                                 FBA.DataGridViewFBA DGResult,
                                                 string SearchText,
                                                 bool ShowResult,
                                                 bool CaseSensitivity,
                                                 bool SearchAll,
                                                 bool Highlight,
                                                 bool DirectionDown,
                                                 int SelectedColumn,
                                                 int SelectedRow,
                                                 int SearchPart,
                                                 ref int FindCount)
        {
            //SearchPart = 1 - Exact match.
            //SearchPart = 2 - Starts with text.
            //SearchPart = 3 - Ends with text.
            //SearchPart = 4 - Contain text.
            if (SearchText.IsNullOrEmpty())
            {
                return(false);
            }

            for (int i = 0; i < DGSearch.RowCount; i++)
            {
                for (int j = 0; j < DGSearch.ColumnCount; j++)
                {
                    DGSearch.Rows[i].Cells[j].Style.BackColor = System.Drawing.Color.White;
                    if (Highlight)
                    {
                        DGSearch.Rows[i].Selected = false;
                    }
                }
            }
            DGSearch.Refresh();
            //Чувствительность к регистру. Если true, то регистрозависимый поиск.
            if (!CaseSensitivity)
            {
                SearchText = SearchText.ToLower();
            }

            //Если поиск Ends with text.
            if (SearchPart == 3)
            {
                SearchText = SearchText.Reverse();
            }

            //Поиск только по выбранной колонке.
            int ColBeg = 0;
            int ColEnd = DGSearch.Columns.Count - 1;

            if (SelectedColumn > -1)
            {
                ColBeg = SelectedColumn;
                ColEnd = SelectedColumn;
            }

            //Направление поиска.
            int RowBeg = 0;
            int RowEnd = DGSearch.Rows.Count - 1;

            if (SearchAll)
            {
                DirectionDown = true;
            }
            else
            {
                //Поиск вверх.
                if (DirectionDown)
                {
                    RowBeg = SelectedRow;
                }
                else
                {
                    RowEnd = SelectedRow;
                }
            }

            if (ShowResult)
            {
                //Копируем структуру. Только названия полей.
                DGSearch.CopyToDataGridView(DGResult, false);

                var FirstColumn = new DataGridViewColumn();
                FirstColumn.Name       = "OrderNumber";
                FirstColumn.Frozen     = false;
                FirstColumn.HeaderText = "№";
                FirstColumn.Width      = 20;
                DGResult.Columns.Insert(0, FirstColumn);
            }

            string Value = "";

            if (DirectionDown)
            {
                for (int i = RowBeg; i <= RowEnd; i++)
                {
                    bool FindRow = false;
                    for (int j = ColBeg; j <= ColEnd; j++)
                    {
                        bool FindCell = false;
                        if (!CaseSensitivity)
                        {
                            Value = DGSearch.Rows[i].Cells[j].Value.ToString().ToLower();
                        }
                        else
                        {
                            Value = DGSearch.Rows[i].Cells[j].Value.ToString();
                        }
                        if ((SearchPart == 1) && (Value == SearchText))
                        {
                            FindCell = true;
                        }
                        if ((SearchPart == 2) && (Value.IndexOf(SearchText, StringComparison.CurrentCulture) == 0))
                        {
                            FindCell = true;
                        }
                        if ((SearchPart == 3) && (Value.Reverse().IndexOf(SearchText, StringComparison.CurrentCulture) == 0))
                        {
                            FindCell = true;
                        }
                        if ((SearchPart == 4) && (Value.IndexOf(SearchText, StringComparison.CurrentCulture) > -1))
                        {
                            FindCell = true;
                        }
                        if (!FindCell)
                        {
                            continue;
                        }
                        //if (Highlight) DG.Rows[i].DefaultCellStyle.BackColor = Color.Yellow;
                        DGSearch.Rows[i].Cells[j].Style.BackColor = System.Drawing.Color.Yellow;
                        FindRow = true;
                        FindCount++;
                    }

                    //Если ищем только до первой найденной строки, то выходим.
                    if (FindRow)
                    {
                        if (Highlight)
                        {
                            DGSearch.Rows[i].Selected = true;
                        }
                        if (!SearchAll)
                        {
                            return(true);
                        }
                        if (ShowResult)
                        {
                            DGResult.Rows.Add();
                            for (int N = 0; N < DGResult.Columns.Count; N++)
                            {
                                if (N == 0)
                                {
                                    DGResult.Rows[DGResult.Rows.Count - 1].Cells[N].Value = i.ToString();
                                }
                                else
                                {
                                    DGResult.Rows[DGResult.Rows.Count - 1].Cells[N].Value = DGSearch.Rows[i].Cells[N - 1].Value;
                                }
                            }
                        }
                    }
                }
            }

            if (!DirectionDown)
            {
                for (int i = RowEnd; i >= RowBeg; i--)
                {
                    bool FindRow = false;
                    for (int j = ColEnd; j >= ColBeg; j--)
                    {
                        bool FindCell = false;
                        if (!CaseSensitivity)
                        {
                            Value = DGSearch.Rows[i].Cells[j].Value.ToString().ToLower();
                        }
                        else
                        {
                            Value = DGSearch.Rows[i].Cells[j].Value.ToString();
                        }
                        if ((SearchPart == 1) && (Value == SearchText))
                        {
                            FindCell = true;
                        }
                        if ((SearchPart == 2) && (Value.IndexOf(SearchText, StringComparison.CurrentCulture) == 0))
                        {
                            FindCell = true;
                        }
                        if ((SearchPart == 3) && (Value.Reverse().IndexOf(SearchText, StringComparison.CurrentCulture) == 0))
                        {
                            FindCell = true;
                        }
                        if ((SearchPart == 4) && (Value.IndexOf(SearchText, StringComparison.CurrentCulture) > -1))
                        {
                            FindCell = true;
                        }
                        if (!FindCell)
                        {
                            continue;
                        }
                        DGSearch.Rows[i].Cells[j].Style.BackColor = System.Drawing.Color.Yellow;
                        FindRow = true;
                        FindCount++;
                        if (!SearchAll)
                        {
                            return(true);
                        }
                    }

                    //Если ищем только до первой найденной строки, то выходим.
                    if (FindRow)
                    {
                        if (Highlight)
                        {
                            DGSearch.Rows[i].Selected = true;
                        }
                        if (!SearchAll)
                        {
                            return(true);
                        }
                        if (ShowResult)
                        {
                            DGResult.Rows.Add();
                            for (int N = 0; N < DGResult.Columns.Count; N++)
                            {
                                if (N == 0)
                                {
                                    DGResult.Rows[DGResult.Rows.Count - 1].Cells[N].Value = i.ToString();
                                }
                                else
                                {
                                    DGResult.Rows[DGResult.Rows.Count - 1].Cells[N].Value = DGSearch.Rows[i].Cells[N - 1].Value;
                                }
                            }
                        }
                    }
                }
            }
            return(FindCount > 0);
        }
コード例 #15
0
        /// <summary>
        /// Добавление новой вкладки для редактора запросов.
        ///
        ///tabControSQL
        ///splitContainerSQL
        ///панель 1
        ///	textSQL1
        ///панель 2
        ///    tbSQLResult1
        ///pnlResultSQL1
        ///tabControlResult
        ///	tabPageData - Страница 1
        ///		dgvSQL1
        ///	tabPageSQL - Страница 2
        ///		fastColoredTextBoxSQL
        /// </summary>
        /// <param name="tabControSQL"></param>
        /// <param name="splitContainerExample"></param>
        /// <param name="textSQLExample"></param>
        /// <param name="pnlResultSQLExample"></param>
        /// <param name="tbSQLResultExample"></param>
        /// <param name="dgvSQLExample"></param>
        /// <param name="GridContextMenu"></param>
        /// <param name="TabIndexSQL"></param>
        public static void TabControlPageAdd(TabControl tabControSQL,
                                             SplitContainer splitContainerExample,
                                             FastColoredTextBox textSQLExample,
                                             Panel pnlResultSQLExample,
                                             System.Windows.Forms.TextBox tbSQLResultExample,
                                             FBA.DataGridViewFBA dgvSQLExample,
                                             ContextMenuStrip GridContextMenu,
                                             ref int TabIndexSQL)
        {
            TabIndexSQL += 1;
            string newindexstr = TabIndexSQL.ToString();

            tabControSQL.TabPages.Add("Query" + TabIndexSQL.ToString());
            tabControSQL.TabPages[tabControSQL.TabPages.Count - 1].Tag = TabIndexSQL;

            var splitContainerSQL1 = new SplitContainer();

            tabControSQL.TabPages[tabControSQL.TabPages.Count - 1].Controls.Add(splitContainerSQL1);
            splitContainerSQL1.Dock             = DockStyle.Fill;
            splitContainerSQL1.Orientation      = System.Windows.Forms.Orientation.Horizontal;
            splitContainerSQL1.SplitterDistance = splitContainerExample.SplitterDistance;
            splitContainerSQL1.BackColor        = splitContainerExample.BackColor;

            var textSQL1 = new FastColoredTextBox();

            splitContainerSQL1.Panel1.Controls.Add(textSQL1);
            textSQL1.Dock = textSQLExample.Dock;
            textSQL1.AutoCompleteBrackets      = textSQLExample.AutoCompleteBrackets;
            textSQL1.AutoScrollMinSize         = textSQLExample.AutoScrollMinSize;
            textSQL1.BookmarkColor             = textSQLExample.BookmarkColor;
            textSQL1.BracketsHighlightStrategy = textSQLExample.BracketsHighlightStrategy;
            textSQL1.Cursor        = textSQLExample.Cursor;
            textSQL1.DisabledColor = textSQLExample.DisabledColor;
            textSQL1.FindEndOfFoldingBlockStrategy = textSQLExample.FindEndOfFoldingBlockStrategy;
            textSQL1.Font         = textSQLExample.Font;
            textSQL1.Language     = textSQLExample.Language;
            textSQL1.LeftBracket  = textSQLExample.LeftBracket;
            textSQL1.RightBracket = textSQLExample.RightBracket;
            //textSQL1.Padding                       = textSQLExample.Padding;
            textSQL1.SelectionColor = textSQLExample.SelectionColor;
            textSQL1.VirtualSpace   = textSQLExample.VirtualSpace;
            textSQL1.Name           = "textSQL" + newindexstr;
            textSQL1.BorderStyle    = System.Windows.Forms.BorderStyle.FixedSingle;
            if (GridContextMenu != null)
            {
                textSQL1.ContextMenuStrip = GridContextMenu;
            }

            var pnlResultSQL1 = new Panel();

            pnlResultSQL1.Dock      = DockStyle.Top;
            pnlResultSQL1.Height    = pnlResultSQLExample.Height;
            pnlResultSQL1.BackColor = System.Drawing.Color.CornflowerBlue;

            //pnlResultSQL1.BackColor = System.Drawing.Color.CornflowerBlue;
            //pnlResultSQL1.Controls.Add(this.tbSQLResult1);
            //pnlResultSQL1.Dock = System.Windows.Forms.DockStyle.Top;
            //pnlResultSQL1.Location = new System.Drawing.Point(0, 0);
            //pnlResultSQL1.Size = new System.Drawing.Size(685, 21);

            var tbSQLResult1 = new System.Windows.Forms.TextBox();

            tbSQLResult1.Font        = tbSQLResultExample.Font;
            tbSQLResult1.Location    = tbSQLResultExample.Location;
            tbSQLResult1.ForeColor   = tbSQLResultExample.ForeColor;
            tbSQLResult1.Text        = " Result";
            tbSQLResult1.BorderStyle = tbSQLResultExample.BorderStyle;
            tbSQLResult1.BackColor   = tbSQLResultExample.BackColor;
            tbSQLResult1.Width       = tbSQLResultExample.Width;
            tbSQLResult1.Name        = "tbSQLResult" + newindexstr;
            pnlResultSQL1.Controls.Add(tbSQLResult1);

            //Теперь страница 2. нижняя.

            //TabControl
            var tabControlResult1 = new System.Windows.Forms.TabControl();

            tabControlResult1.Dock          = System.Windows.Forms.DockStyle.Fill;
            tabControlResult1.Font          = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            tabControlResult1.Location      = new System.Drawing.Point(0, 21);
            tabControlResult1.Name          = "tabControlResult";
            tabControlResult1.SelectedIndex = 0;
            tabControlResult1.Size          = new System.Drawing.Size(685, 140);
            tabControlResult1.TabIndex      = 5;
            splitContainerSQL1.Panel2.Controls.Add(tabControlResult1);
            splitContainerSQL1.Panel2.Controls.Add(pnlResultSQL1);

            //TabControl - Страница 1
            var tabPageData1 = new System.Windows.Forms.TabPage();

            tabPageData1.Location = new System.Drawing.Point(4, 26);
            tabPageData1.Name     = "tabPageData1";
            tabPageData1.Padding  = new System.Windows.Forms.Padding(3);
            tabPageData1.Size     = new System.Drawing.Size(677, 110);
            tabPageData1.TabIndex = 0;
            tabPageData1.Text     = "Data";
            tabPageData1.UseVisualStyleBackColor = true;
            tabControlResult1.Controls.Add(tabPageData1);

            //TabControl - Страница 2
            var tabPageSQL1 = new System.Windows.Forms.TabPage();

            tabPageSQL1.Location = new System.Drawing.Point(4, 26);
            tabPageSQL1.Name     = "tabPageSQL1";
            tabPageSQL1.Padding  = new System.Windows.Forms.Padding(3);
            tabPageSQL1.Size     = new System.Drawing.Size(677, 110);
            tabPageSQL1.TabIndex = 1;
            tabPageSQL1.Text     = "SQL";
            tabPageSQL1.UseVisualStyleBackColor = true;
            tabControlResult1.Controls.Add(tabPageSQL1);
            tabControSQL.SelectedIndex = tabControSQL.TabPages.Count - 1;

            //Грид на странице 1
            var dgvSQL1 = new DataGridViewFBA();

            dgvSQL1.Dock = DockStyle.Fill;
            dgvSQL1.AllowUserToAddRows              = dgvSQLExample.AllowUserToAddRows;
            dgvSQL1.AllowUserToDeleteRows           = dgvSQLExample.AllowUserToDeleteRows;
            dgvSQL1.AllowUserToOrderColumns         = dgvSQLExample.AllowUserToOrderColumns;
            dgvSQL1.AlternatingRowsDefaultCellStyle = dgvSQLExample.AlternatingRowsDefaultCellStyle;
            dgvSQL1.AutoSizeColumnsMode             = dgvSQLExample.AutoSizeColumnsMode;
            dgvSQL1.BackgroundColor             = dgvSQLExample.BackgroundColor;
            dgvSQL1.ClipboardCopyMode           = dgvSQLExample.ClipboardCopyMode;
            dgvSQL1.ColumnHeadersBorderStyle    = dgvSQLExample.ColumnHeadersBorderStyle;
            dgvSQL1.ColumnHeadersHeightSizeMode = dgvSQLExample.ColumnHeadersHeightSizeMode;
            dgvSQL1.ContextMenuStrip            = dgvSQLExample.ContextMenuStrip;
            dgvSQL1.DefaultCellStyle            = dgvSQLExample.DefaultCellStyle;
            dgvSQL1.EditMode             = dgvSQLExample.EditMode;
            dgvSQL1.Margin               = dgvSQLExample.Margin;
            dgvSQL1.ReadOnly             = dgvSQLExample.ReadOnly;
            dgvSQL1.RowHeadersVisible    = dgvSQLExample.RowHeadersVisible;
            dgvSQL1.RowsDefaultCellStyle = dgvSQLExample.RowsDefaultCellStyle;
            dgvSQL1.RowTemplate          = dgvSQLExample.RowTemplate;
            dgvSQL1.BringToFront();
            dgvSQL1.Name = "dgvSQL" + newindexstr;
            tabPageData1.Controls.Add(dgvSQL1);

            //Текст на странице 2.
            var fastColoredTextBoxSQL1 = new FastColoredTextBoxNS.FastColoredTextBox();

            fastColoredTextBoxSQL1.AutoCompleteBracketsList = new char[] {
                '(', ')', '{', '}', '[', ']', '\"', '\"', '\'', '\''
            };
            fastColoredTextBoxSQL1.AutoIndentCharsPatterns = "";
            fastColoredTextBoxSQL1.AutoScrollMinSize       = new System.Drawing.Size(33, 21);
            fastColoredTextBoxSQL1.BackBrush                 = null;
            fastColoredTextBoxSQL1.BookmarkColor             = System.Drawing.Color.Red;
            fastColoredTextBoxSQL1.BorderStyle               = System.Windows.Forms.BorderStyle.FixedSingle;
            fastColoredTextBoxSQL1.BracketsHighlightStrategy = FastColoredTextBoxNS.BracketsHighlightStrategy.Strategy2;
            fastColoredTextBoxSQL1.CharHeight                = 21;
            fastColoredTextBoxSQL1.CharWidth                 = 11;
            fastColoredTextBoxSQL1.CommentPrefix             = "--";
            fastColoredTextBoxSQL1.Cursor        = System.Windows.Forms.Cursors.IBeam;
            fastColoredTextBoxSQL1.DisabledColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
            fastColoredTextBoxSQL1.Dock          = System.Windows.Forms.DockStyle.Fill;
            fastColoredTextBoxSQL1.FindEndOfFoldingBlockStrategy = FastColoredTextBoxNS.FindEndOfFoldingBlockStrategy.Strategy2;
            fastColoredTextBoxSQL1.Font           = new System.Drawing.Font("Courier New", 14.25F);
            fastColoredTextBoxSQL1.IsReplaceMode  = false;
            fastColoredTextBoxSQL1.Language       = FastColoredTextBoxNS.Language.SQL;
            fastColoredTextBoxSQL1.LeftBracket    = '(';
            fastColoredTextBoxSQL1.Location       = new System.Drawing.Point(3, 3);
            fastColoredTextBoxSQL1.Name           = "fastColoredTextBoxSQL" + newindexstr;
            fastColoredTextBoxSQL1.Paddings       = new System.Windows.Forms.Padding(0);
            fastColoredTextBoxSQL1.RightBracket   = ')';
            fastColoredTextBoxSQL1.SelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
            fastColoredTextBoxSQL1.Size           = new System.Drawing.Size(671, 104);
            fastColoredTextBoxSQL1.TabIndex       = 16;
            fastColoredTextBoxSQL1.VirtualSpace   = true;
            fastColoredTextBoxSQL1.Zoom           = 100;
            tabPageSQL1.Controls.Add(fastColoredTextBoxSQL1);
        }