예제 #1
0
        ///Загрузить картинку в БД.
        private bool ImageAdd(string FileNameFull)
        {
            string     FileData    = "";
            string     ErrorMes    = "";
            string     ImageWidth  = "";
            string     ImageHeight = "";
            const bool ShowMes     = true;

            if (!FBAFile.FileReadToBase64(FileNameFull, out FileData, out ErrorMes, ShowMes))
            {
                return(false);
            }
            string ImageName     = Path.GetFileNameWithoutExtension(FileNameFull);
            string ImageFileName = Path.GetFileName(FileNameFull);
            string Format        = Path.GetExtension(ImageFileName).ToUpper();

            try
            {
                var pictureBoxTemp = new FBA.PictureBoxFBA();
                pictureBoxTemp.PictureBoxLoadFile(FileNameFull);
                ImageWidth  = pictureBoxTemp.Image.Width.ToString();
                ImageHeight = pictureBoxTemp.Image.Height.ToString();
            } catch (Exception ex)
            {
                sys.SM("Ошибка при открытии изображения: " + FileNameFull + Var.CR + ex.Message);
                return(false);
            }

            string sql = "INSERT INTO fbaImage (" +
                         "UserCreateID, DateCreate, Name, " +
                         "FileName, FileNameFull, Image, " +
                         "Width, Height, Format) " +
                         "VALUES (" + Var.UserID + ", " + sys.DateTimeCurrent() + ",'" + ImageName + "'," +
                         "'" + ImageFileName + "','" + FileNameFull + "','" + FileData + "'," +
                         "'" + ImageWidth + "','" + ImageHeight + "','" + Format + "')";

            if (!sys.Exec(DirectionQuery.Remote, sql))
            {
                return(false);
            }
            return(true);
        }
예제 #2
0
 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();
 }
예제 #3
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormEntity));
     this.panel1      = new System.Windows.Forms.Panel();
     this.pictureBox1 = new FBA.PictureBoxFBA();
     this.label1      = new FBA.LabelFBA();
     this.panel2      = new System.Windows.Forms.Panel();
     this.btnCancel   = new System.Windows.Forms.Button();
     this.btnOk       = new System.Windows.Forms.Button();
     this.groupBox2   = new FBA.LabelFBA();
     this.textBox6    = new FBA.TextBoxFBA();
     this.label3      = new FBA.LabelFBA();
     this.label2      = new FBA.LabelFBA();
     this.label4      = new FBA.LabelFBA();
     this.tbID        = new FBA.TextBoxFBA();
     this.tbBrief     = new FBA.TextBoxFBA();
     this.tbName      = new FBA.TextBoxFBA();
     this.cbSystem    = new FBA.CheckBoxFBA();
     this.cbAccObj    = new FBA.CheckBoxFBA();
     this.cbTree      = new FBA.CheckBoxFBA();
     this.cbDiv       = new FBA.CheckBoxFBA();
     this.cbCounter   = new FBA.CheckBoxFBA();
     this.cbProtocol  = new FBA.CheckBoxFBA();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.panel2.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.pictureBox1);
     this.panel1.Controls.Add(this.label1);
     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(439, 38);
     this.panel1.TabIndex = 0;
     //
     // pictureBox1
     //
     this.pictureBox1.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(12, 4);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(39, 31);
     this.pictureBox1.TabIndex = 1;
     this.pictureBox1.TabStop  = false;
     //
     // label1
     //
     this.label1.Font        = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label1.Location    = new System.Drawing.Point(57, 9);
     this.label1.Name        = "label1";
     this.label1.Size        = new System.Drawing.Size(135, 23);
     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        = "Entity";
     //
     // panel2
     //
     this.panel2.Controls.Add(this.btnCancel);
     this.panel2.Controls.Add(this.btnOk);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel2.Location = new System.Drawing.Point(0, 430);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(439, 41);
     this.panel2.TabIndex = 3;
     //
     // 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(202, 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.OK_24;
     this.btnOk.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.btnOk.Location   = new System.Drawing.Point(320, 4);
     this.btnOk.Name       = "btnOk";
     this.btnOk.Size       = new System.Drawing.Size(112, 33);
     this.btnOk.TabIndex   = 1;
     this.btnOk.Text       = "  Ok";
     this.btnOk.UseVisualStyleBackColor = true;
     this.btnOk.Click += new System.EventHandler(this.BtnOk_Click);
     //
     // groupBox2
     //
     this.groupBox2.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.groupBox2.Font        = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.groupBox2.Location    = new System.Drawing.Point(0, 324);
     this.groupBox2.Name        = "groupBox2";
     this.groupBox2.Size        = new System.Drawing.Size(447, 59);
     this.groupBox2.StarColor   = System.Drawing.Color.Crimson;
     this.groupBox2.StarFont    = new System.Drawing.Font("Arial", 20F);
     this.groupBox2.StarOffsetX = 2;
     this.groupBox2.StarOffsetY = 0;
     this.groupBox2.StarShow    = true;
     this.groupBox2.StarText    = "*";
     this.groupBox2.TabIndex    = 20;
     this.groupBox2.Text        = " Comment ";
     this.groupBox2.Paint      += new System.Windows.Forms.PaintEventHandler(this.groupBox2_Paint);
     //
     // textBox6
     //
     this.textBox6.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.textBox6.AttrBrief        = "Main1.Comment";
     this.textBox6.AttrBriefLookup  = null;
     this.textBox6.BackColor        = System.Drawing.SystemColors.Info;
     this.textBox6.ErrorIfNull      = "Поле \"Comment\" не заполнено!";
     this.textBox6.Font             = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.textBox6.GroupEnabled     = null;
     this.textBox6.ListInvalidChars = null;
     this.textBox6.ListValidChars   = null;
     this.textBox6.Location         = new System.Drawing.Point(8, 347);
     this.textBox6.Multiline        = true;
     this.textBox6.Name             = "textBox6";
     this.textBox6.ObjectRef        = null;
     this.textBox6.RegExChars       = null;
     this.textBox6.SaveParam        = false;
     this.textBox6.SaveValueHistory = false;
     this.textBox6.ScrollBars       = System.Windows.Forms.ScrollBars.Vertical;
     this.textBox6.Size             = new System.Drawing.Size(424, 75);
     this.textBox6.TabIndex         = 0;
     this.textBox6.Text2            = null;
     //
     // label3
     //
     this.label3.Font        = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label3.Location    = new System.Drawing.Point(13, 79);
     this.label3.Name        = "label3";
     this.label3.Size        = new System.Drawing.Size(100, 23);
     this.label3.StarColor   = System.Drawing.Color.Crimson;
     this.label3.StarFont    = new System.Drawing.Font("Arial", 20F);
     this.label3.StarOffsetX = 2;
     this.label3.StarOffsetY = 0;
     this.label3.StarShow    = true;
     this.label3.StarText    = "*";
     this.label3.TabIndex    = 23;
     this.label3.Text        = "Name";
     //
     // 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(13, 47);
     this.label2.Name        = "label2";
     this.label2.Size        = new System.Drawing.Size(47, 23);
     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    = 21;
     this.label2.Text        = "ID";
     //
     // 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(13, 114);
     this.label4.Name        = "label4";
     this.label4.Size        = new System.Drawing.Size(100, 23);
     this.label4.StarColor   = System.Drawing.Color.Crimson;
     this.label4.StarFont    = new System.Drawing.Font("Arial", 20F);
     this.label4.StarOffsetX = 2;
     this.label4.StarOffsetY = 0;
     this.label4.StarShow    = true;
     this.label4.StarText    = "*";
     this.label4.TabIndex    = 25;
     this.label4.Text        = "Brief";
     //
     // tbID
     //
     this.tbID.AttrBrief        = "Main1.ID";
     this.tbID.AttrBriefLookup  = null;
     this.tbID.BackColor        = System.Drawing.SystemColors.Info;
     this.tbID.Enabled          = false;
     this.tbID.ErrorIfNull      = null;
     this.tbID.Font             = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbID.GroupEnabled     = null;
     this.tbID.ListInvalidChars = null;
     this.tbID.ListValidChars   = "DIGITS";
     this.tbID.Location         = new System.Drawing.Point(116, 47);
     this.tbID.Name             = "tbID";
     this.tbID.ObjectRef        = null;
     this.tbID.RegExChars       = null;
     this.tbID.SaveParam        = false;
     this.tbID.SaveValueHistory = false;
     this.tbID.Size             = new System.Drawing.Size(100, 25);
     this.tbID.TabIndex         = 22;
     this.tbID.Text2            = null;
     //
     // tbBrief
     //
     this.tbBrief.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.tbBrief.AttrBrief        = "Main1.Brief";
     this.tbBrief.AttrBriefLookup  = null;
     this.tbBrief.BackColor        = System.Drawing.SystemColors.Info;
     this.tbBrief.ErrorIfNull      = "Поле \"Brief\" не заполнено!";
     this.tbBrief.Font             = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbBrief.GroupEnabled     = null;
     this.tbBrief.ListInvalidChars = null;
     this.tbBrief.ListValidChars   = null;
     this.tbBrief.Location         = new System.Drawing.Point(116, 111);
     this.tbBrief.Name             = "tbBrief";
     this.tbBrief.ObjectRef        = null;
     this.tbBrief.RegExChars       = null;
     this.tbBrief.SaveParam        = false;
     this.tbBrief.SaveValueHistory = false;
     this.tbBrief.Size             = new System.Drawing.Size(315, 25);
     this.tbBrief.TabIndex         = 26;
     this.tbBrief.Text2            = null;
     this.tbBrief.Enter           += new System.EventHandler(this.TbBrief_Enter);
     //
     // tbName
     //
     this.tbName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.tbName.AttrBrief        = "Main1.Name";
     this.tbName.AttrBriefLookup  = null;
     this.tbName.BackColor        = System.Drawing.SystemColors.Info;
     this.tbName.ErrorIfNull      = "Поле \"Name\" не заполнено!";
     this.tbName.Font             = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbName.GroupEnabled     = null;
     this.tbName.ListInvalidChars = null;
     this.tbName.ListValidChars   = "";
     this.tbName.Location         = new System.Drawing.Point(116, 79);
     this.tbName.Name             = "tbName";
     this.tbName.ObjectRef        = null;
     this.tbName.RegExChars       = null;
     this.tbName.SaveParam        = false;
     this.tbName.SaveValueHistory = false;
     this.tbName.Size             = new System.Drawing.Size(315, 25);
     this.tbName.TabIndex         = 24;
     this.tbName.Text2            = null;
     //
     // cbSystem
     //
     this.cbSystem.AttrBrief               = null;
     this.cbSystem.Font                    = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.cbSystem.GroupEnabled            = null;
     this.cbSystem.Location                = new System.Drawing.Point(12, 146);
     this.cbSystem.Name                    = "cbSystem";
     this.cbSystem.Obj                     = null;
     this.cbSystem.ObjectRef               = null;
     this.cbSystem.SaveParam               = false;
     this.cbSystem.Size                    = new System.Drawing.Size(125, 24);
     this.cbSystem.TabIndex                = 27;
     this.cbSystem.Text                    = "System";
     this.cbSystem.UseVisualStyleBackColor = true;
     this.cbSystem.CheckedChanged         += new System.EventHandler(this.cbSystem_CheckedChanged);
     //
     // cbAccObj
     //
     this.cbAccObj.AttrBrief               = null;
     this.cbAccObj.Font                    = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.cbAccObj.GroupEnabled            = null;
     this.cbAccObj.Location                = new System.Drawing.Point(12, 174);
     this.cbAccObj.Name                    = "cbAccObj";
     this.cbAccObj.Obj                     = null;
     this.cbAccObj.ObjectRef               = null;
     this.cbAccObj.SaveParam               = false;
     this.cbAccObj.Size                    = new System.Drawing.Size(161, 24);
     this.cbAccObj.TabIndex                = 28;
     this.cbAccObj.Text                    = "Accounting object";
     this.cbAccObj.UseVisualStyleBackColor = true;
     this.cbAccObj.CheckedChanged         += new System.EventHandler(this.cbSystem_CheckedChanged);
     //
     // cbTree
     //
     this.cbTree.AttrBrief               = null;
     this.cbTree.Font                    = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.cbTree.GroupEnabled            = null;
     this.cbTree.Location                = new System.Drawing.Point(12, 201);
     this.cbTree.Name                    = "cbTree";
     this.cbTree.Obj                     = null;
     this.cbTree.ObjectRef               = null;
     this.cbTree.SaveParam               = false;
     this.cbTree.Size                    = new System.Drawing.Size(180, 24);
     this.cbTree.TabIndex                = 29;
     this.cbTree.Text                    = "Tree";
     this.cbTree.UseVisualStyleBackColor = true;
     this.cbTree.CheckedChanged         += new System.EventHandler(this.cbSystem_CheckedChanged);
     //
     // cbDiv
     //
     this.cbDiv.AttrBrief               = null;
     this.cbDiv.Font                    = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.cbDiv.GroupEnabled            = null;
     this.cbDiv.Location                = new System.Drawing.Point(12, 228);
     this.cbDiv.Name                    = "cbDiv";
     this.cbDiv.Obj                     = null;
     this.cbDiv.ObjectRef               = null;
     this.cbDiv.SaveParam               = false;
     this.cbDiv.Size                    = new System.Drawing.Size(204, 24);
     this.cbDiv.TabIndex                = 30;
     this.cbDiv.Text                    = "Divided into branches";
     this.cbDiv.UseVisualStyleBackColor = true;
     this.cbDiv.CheckedChanged         += new System.EventHandler(this.cbSystem_CheckedChanged);
     //
     // cbCounter
     //
     this.cbCounter.AttrBrief               = null;
     this.cbCounter.Font                    = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.cbCounter.GroupEnabled            = null;
     this.cbCounter.Location                = new System.Drawing.Point(12, 256);
     this.cbCounter.Name                    = "cbCounter";
     this.cbCounter.Obj                     = null;
     this.cbCounter.ObjectRef               = null;
     this.cbCounter.SaveParam               = false;
     this.cbCounter.Size                    = new System.Drawing.Size(228, 24);
     this.cbCounter.TabIndex                = 31;
     this.cbCounter.Text                    = "Use the counter generic link";
     this.cbCounter.UseVisualStyleBackColor = true;
     this.cbCounter.CheckedChanged         += new System.EventHandler(this.cbSystem_CheckedChanged);
     //
     // cbProtocol
     //
     this.cbProtocol.AttrBrief               = null;
     this.cbProtocol.Font                    = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.cbProtocol.GroupEnabled            = null;
     this.cbProtocol.Location                = new System.Drawing.Point(12, 286);
     this.cbProtocol.Name                    = "cbProtocol";
     this.cbProtocol.Obj                     = null;
     this.cbProtocol.ObjectRef               = null;
     this.cbProtocol.SaveParam               = false;
     this.cbProtocol.Size                    = new System.Drawing.Size(248, 24);
     this.cbProtocol.TabIndex                = 32;
     this.cbProtocol.Text                    = "Contains Protocol information";
     this.cbProtocol.UseVisualStyleBackColor = true;
     this.cbProtocol.CheckedChanged         += new System.EventHandler(this.cbSystem_CheckedChanged);
     //
     // FormEntity
     //
     //this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(439, 471);
     this.Controls.Add(this.textBox6);
     this.Controls.Add(this.cbProtocol);
     this.Controls.Add(this.cbCounter);
     this.Controls.Add(this.cbDiv);
     this.Controls.Add(this.cbTree);
     this.Controls.Add(this.cbAccObj);
     this.Controls.Add(this.cbSystem);
     this.Controls.Add(this.tbBrief);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.tbName);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.tbID);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.FormUsual     = true;
     this.Name          = "FormEntity";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text          = "Entity";
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.panel2.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #4
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormTable));
     this.panel2        = new System.Windows.Forms.Panel();
     this.btnCancel     = new System.Windows.Forms.Button();
     this.btnOk         = new System.Windows.Forms.Button();
     this.panel1        = new System.Windows.Forms.Panel();
     this.pictureBox1   = new FBA.PictureBoxFBA();
     this.label1        = new FBA.LabelFBA();
     this.label3        = new FBA.LabelFBA();
     this.tbID          = new FBA.TextBoxFBA();
     this.label2        = new FBA.LabelFBA();
     this.tbIDFieldName = new FBA.ComboBoxFBA();
     this.label4        = new FBA.LabelFBA();
     this.tbTypeStr     = new FBA.ComboBoxFBA();
     this.label5        = new FBA.LabelFBA();
     this.tbName        = new FBA.ComboBoxFBA();
     this.panel2.SuspendLayout();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // panel2
     //
     this.panel2.Controls.Add(this.btnCancel);
     this.panel2.Controls.Add(this.btnOk);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel2.Location = new System.Drawing.Point(0, 181);
     this.panel2.Margin   = new System.Windows.Forms.Padding(4);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(393, 42);
     this.panel2.TabIndex = 4;
     //
     // 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(158, 5);
     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.OK_24;
     this.btnOk.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.btnOk.Location   = new System.Drawing.Point(275, 5);
     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   = 1;
     this.btnOk.Text       = "  Ok";
     this.btnOk.UseVisualStyleBackColor = true;
     this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
     //
     // panel1
     //
     this.panel1.Controls.Add(this.pictureBox1);
     this.panel1.Controls.Add(this.label1);
     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(393, 38);
     this.panel1.TabIndex = 5;
     //
     // pictureBox1
     //
     this.pictureBox1.ErrorImage   = null;
     this.pictureBox1.Image        = global::FBA.Resource.Grid_32;
     this.pictureBox1.InitialImage = null;
     this.pictureBox1.Location     = new System.Drawing.Point(7, 4);
     this.pictureBox1.Margin       = new System.Windows.Forms.Padding(4);
     this.pictureBox1.Name         = "pictureBox1";
     this.pictureBox1.Size         = new System.Drawing.Size(32, 32);
     this.pictureBox1.TabIndex     = 1;
     this.pictureBox1.TabStop      = false;
     //
     // label1
     //
     this.label1.Font        = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label1.Location    = new System.Drawing.Point(46, 7);
     this.label1.Margin      = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label1.Name        = "label1";
     this.label1.Size        = new System.Drawing.Size(75, 23);
     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        = "Table";
     //
     // label3
     //
     this.label3.Font        = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label3.Location    = new System.Drawing.Point(6, 77);
     this.label3.Margin      = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label3.Name        = "label3";
     this.label3.Size        = new System.Drawing.Size(72, 28);
     this.label3.StarColor   = System.Drawing.Color.Crimson;
     this.label3.StarFont    = new System.Drawing.Font("Arial", 20F);
     this.label3.StarOffsetX = 2;
     this.label3.StarOffsetY = 0;
     this.label3.StarShow    = true;
     this.label3.StarText    = "*";
     this.label3.TabIndex    = 27;
     this.label3.Text        = "Name";
     //
     // tbID
     //
     this.tbID.AttrBrief        = "Main1.ID";
     this.tbID.AttrBriefLookup  = null;
     this.tbID.BackColor        = System.Drawing.SystemColors.Info;
     this.tbID.Enabled          = false;
     this.tbID.ErrorIfNull      = null;
     this.tbID.Font             = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.tbID.GroupEnabled     = null;
     this.tbID.ListInvalidChars = null;
     this.tbID.ListValidChars   = "";
     this.tbID.Location         = new System.Drawing.Point(86, 42);
     this.tbID.Margin           = new System.Windows.Forms.Padding(4);
     this.tbID.Name             = "tbID";
     this.tbID.ObjectRef        = null;
     this.tbID.RegExChars       = null;
     this.tbID.SaveParam        = false;
     this.tbID.SaveValueHistory = false;
     this.tbID.Size             = new System.Drawing.Size(100, 25);
     this.tbID.TabIndex         = 26;
     this.tbID.Text2            = null;
     //
     // 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(6, 48);
     this.label2.Margin      = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label2.Name        = "label2";
     this.label2.Size        = new System.Drawing.Size(48, 23);
     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    = 25;
     this.label2.Text        = "ID";
     //
     // tbIDFieldName
     //
     this.tbIDFieldName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.tbIDFieldName.AttrBrief          = "Main1.IDFieldName";
     this.tbIDFieldName.AttrBriefLookup    = null;
     this.tbIDFieldName.BackColor          = System.Drawing.SystemColors.Info;
     this.tbIDFieldName.ContextMenuEnabled = true;
     this.tbIDFieldName.ErrorIfNull        = "Поле \"Field ID\" не заполнено!";
     this.tbIDFieldName.FormattingEnabled  = true;
     this.tbIDFieldName.GroupEnabled       = null;
     this.tbIDFieldName.ListInvalidChars   = null;
     this.tbIDFieldName.ListValidChars     = null;
     this.tbIDFieldName.Location           = new System.Drawing.Point(86, 104);
     this.tbIDFieldName.Margin             = new System.Windows.Forms.Padding(4);
     this.tbIDFieldName.Name                = "tbIDFieldName";
     this.tbIDFieldName.Obj                 = null;
     this.tbIDFieldName.ObjectID            = "";
     this.tbIDFieldName.ObjectRef           = null;
     this.tbIDFieldName.ObjRef              = null;
     this.tbIDFieldName.ReadOnly            = false;
     this.tbIDFieldName.RegExChars          = null;
     this.tbIDFieldName.SaveParam           = false;
     this.tbIDFieldName.SaveType            = null;
     this.tbIDFieldName.SaveValueHistory    = false;
     this.tbIDFieldName.Size                = new System.Drawing.Size(299, 25);
     this.tbIDFieldName.TabIndex            = 29;
     this.tbIDFieldName.Text2               = null;
     this.tbIDFieldName.ValueHistoryInItems = false;
     //
     // 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(6, 108);
     this.label4.Margin      = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label4.Name        = "label4";
     this.label4.Size        = new System.Drawing.Size(72, 28);
     this.label4.StarColor   = System.Drawing.Color.Crimson;
     this.label4.StarFont    = new System.Drawing.Font("Arial", 20F);
     this.label4.StarOffsetX = 2;
     this.label4.StarOffsetY = 0;
     this.label4.StarShow    = true;
     this.label4.StarText    = "*";
     this.label4.TabIndex    = 30;
     this.label4.Text        = "Field ID";
     //
     // tbTypeStr
     //
     this.tbTypeStr.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.tbTypeStr.AttrBrief          = null;
     this.tbTypeStr.AttrBriefLookup    = null;
     this.tbTypeStr.BackColor          = System.Drawing.SystemColors.Info;
     this.tbTypeStr.ContextMenuEnabled = true;
     this.tbTypeStr.DropDownStyle      = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.tbTypeStr.ErrorIfNull        = "Поле \"Type\" не заполнено!";
     this.tbTypeStr.FormattingEnabled  = true;
     this.tbTypeStr.GroupEnabled       = null;
     this.tbTypeStr.Items.AddRange(new object[] {
         "Main",
         "Historical"
     });
     this.tbTypeStr.ListInvalidChars = null;
     this.tbTypeStr.ListValidChars   = null;
     this.tbTypeStr.Location         = new System.Drawing.Point(86, 135);
     this.tbTypeStr.Margin           = new System.Windows.Forms.Padding(4);
     this.tbTypeStr.Name             = "tbTypeStr";
     this.tbTypeStr.Obj                 = null;
     this.tbTypeStr.ObjectID            = "";
     this.tbTypeStr.ObjectRef           = null;
     this.tbTypeStr.ObjRef              = null;
     this.tbTypeStr.ReadOnly            = false;
     this.tbTypeStr.RegExChars          = null;
     this.tbTypeStr.SaveParam           = false;
     this.tbTypeStr.SaveType            = null;
     this.tbTypeStr.SaveValueHistory    = false;
     this.tbTypeStr.Size                = new System.Drawing.Size(299, 25);
     this.tbTypeStr.TabIndex            = 31;
     this.tbTypeStr.Text2               = null;
     this.tbTypeStr.ValueHistoryInItems = false;
     //
     // label5
     //
     this.label5.Font        = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label5.Location    = new System.Drawing.Point(6, 137);
     this.label5.Margin      = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label5.Name        = "label5";
     this.label5.Size        = new System.Drawing.Size(72, 28);
     this.label5.StarColor   = System.Drawing.Color.Crimson;
     this.label5.StarFont    = new System.Drawing.Font("Arial", 20F);
     this.label5.StarOffsetX = 2;
     this.label5.StarOffsetY = 0;
     this.label5.StarShow    = true;
     this.label5.StarText    = "*";
     this.label5.TabIndex    = 32;
     this.label5.Text        = "Type";
     //
     // tbName
     //
     this.tbName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.tbName.AttrBrief          = "Main1.Name";
     this.tbName.AttrBriefLookup    = null;
     this.tbName.BackColor          = System.Drawing.SystemColors.Info;
     this.tbName.ContextMenuEnabled = true;
     this.tbName.ErrorIfNull        = "Поле \"Name\" не заполнено!";
     this.tbName.FormattingEnabled  = true;
     this.tbName.GroupEnabled       = null;
     this.tbName.ListInvalidChars   = null;
     this.tbName.ListValidChars     = null;
     this.tbName.Location           = new System.Drawing.Point(86, 73);
     this.tbName.Margin             = new System.Windows.Forms.Padding(4);
     this.tbName.Name                = "tbName";
     this.tbName.Obj                 = null;
     this.tbName.ObjectID            = "";
     this.tbName.ObjectRef           = null;
     this.tbName.ObjRef              = null;
     this.tbName.ReadOnly            = false;
     this.tbName.RegExChars          = null;
     this.tbName.SaveParam           = false;
     this.tbName.SaveType            = null;
     this.tbName.SaveValueHistory    = false;
     this.tbName.Size                = new System.Drawing.Size(299, 25);
     this.tbName.TabIndex            = 39;
     this.tbName.Text2               = null;
     this.tbName.ValueHistoryInItems = false;
     this.tbName.Leave              += new System.EventHandler(this.TbNameLeave);
     //
     // FormTable
     //
     //this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
     //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(393, 223);
     this.Controls.Add(this.tbName);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.tbTypeStr);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.tbIDFieldName);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.tbID);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.panel2);
     this.Font       = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.FormNumber = 1;
     this.FormUsual  = true;
     this.Margin     = new System.Windows.Forms.Padding(4);
     this.Name       = "FormTable";
     this.QueryText  = new string[] {
         "--(SectionBegin TableDelete) ",
         "",
         "   SELECT ",
         "    --FK.CONSTRAINT_NAME as ForeignKey, ",
         "      --FK.TABLE_CATALOG as FROM_TABLE_CATALOG,",
         "      --FK.TABLE_SCHEMA  as FROM_TABLE_SCHEMA,",
         "      FK.TABLE_NAME    as FROM_TABLE_NAME,",
         "      FK.COLUMN_NAME   as FROM_COLUMN_NAME,",
         "      --PK.TABLE_CATALOG as TO_TABLE_CATALOG,",
         "      --PK.TABLE_SCHEMA  as TO_TABLE_SCHEMA,",
         "      PK.TABLE_NAME    as TO_TABLE_NAME,",
         "      PK.COLUMN_NAME   as TO_COLUMN_NAME",
         "     -- INTO #Tabl1",
         "    FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE PK",
         resources.GetString("$this.QueryText"),
         resources.GetString("$this.QueryText1"),
         "    WHERE PK.TABLE_NAME = \'TableNameAttr\'",
         "    ORDER BY FK.CONSTRAINT_NAME, PK.ORDINAL_POSITION",
         "  ",
         "--(SectionEnd TableDelete) "
     };
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Table";
     this.Shown        += new System.EventHandler(this.FormTable_Shown);
     this.panel2.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #5
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()
 {
     this.textAbout   = new System.Windows.Forms.TextBox();
     this.panel1      = new System.Windows.Forms.Panel();
     this.btnOk       = new System.Windows.Forms.Button();
     this.label1      = new FBA.LabelFBA();
     this.label2      = new FBA.LabelFBA();
     this.pictureBox1 = new FBA.PictureBoxFBA();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // textAbout
     //
     this.textAbout.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.textAbout.BackColor  = System.Drawing.SystemColors.Window;
     this.textAbout.Font       = new System.Drawing.Font("Courier New", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.textAbout.Location   = new System.Drawing.Point(10, 62);
     this.textAbout.Multiline  = true;
     this.textAbout.Name       = "textAbout";
     this.textAbout.ReadOnly   = true;
     this.textAbout.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.textAbout.Size       = new System.Drawing.Size(476, 270);
     this.textAbout.TabIndex   = 0;
     this.textAbout.WordWrap   = false;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.btnOk);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location = new System.Drawing.Point(0, 338);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(494, 41);
     this.panel1.TabIndex = 11;
     //
     // 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(374, 4);
     this.btnOk.Name       = "btnOk";
     this.btnOk.Size       = new System.Drawing.Size(112, 33);
     this.btnOk.TabIndex   = 5;
     this.btnOk.Text       = "OK";
     this.btnOk.UseVisualStyleBackColor = true;
     this.btnOk.Click += new System.EventHandler(this.BtnOkClick);
     //
     // label1
     //
     this.label1.Location    = new System.Drawing.Point(71, 31);
     this.label1.Name        = "label1";
     this.label1.Size        = new System.Drawing.Size(411, 22);
     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    = 12;
     this.label1.Text        = "The system of execution of client business applications";
     //
     // label2
     //
     this.label2.Font        = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label2.Location    = new System.Drawing.Point(71, 3);
     this.label2.Name        = "label2";
     this.label2.Size        = new System.Drawing.Size(345, 30);
     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    = 13;
     this.label2.Text        = "Business application forms";
     //
     // pictureBox1
     //
     this.pictureBox1.Image    = global::FBA.Resource.ruby_48;
     this.pictureBox1.Location = new System.Drawing.Point(8, 8);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(48, 48);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pictureBox1.TabIndex = 0;
     this.pictureBox1.TabStop  = false;
     //
     // FormAbout
     //
     //this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
     //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(494, 379);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.textAbout);
     this.Margin        = new System.Windows.Forms.Padding(4);
     this.Name          = "FormAbout";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "About FBA";
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }