private void InitializeComponent()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DataGridAutoFormatDialog));
            formats    = new System.Windows.Forms.Label();
            schemeName = new System.Windows.Forms.ListBox();
            dataGrid   = new AutoFormatDataGrid();
            preview    = new System.Windows.Forms.Label();
            button1    = new System.Windows.Forms.Button();
            button2    = new System.Windows.Forms.Button();
            ((System.ComponentModel.ISupportInitialize)(this.dataGrid)).BeginInit();
            dataGrid.SuspendLayout();
            SuspendLayout();
            //
            // formats
            //
            formats.AccessibleDescription = ((string)(resources.GetObject("formats.AccessibleDescription")));
            formats.AccessibleName        = ((string)(resources.GetObject("formats.AccessibleName")));
            formats.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("formats.Anchor")));
            formats.AutoSize    = ((bool)(resources.GetObject("formats.AutoSize")));
            formats.Cursor      = ((System.Windows.Forms.Cursor)(resources.GetObject("formats.Cursor")));
            formats.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("formats.Dock")));
            formats.Enabled     = ((bool)(resources.GetObject("formats.Enabled")));
            formats.Font        = ((System.Drawing.Font)(resources.GetObject("formats.Font")));
            formats.Image       = ((System.Drawing.Image)(resources.GetObject("formats.Image")));
            formats.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("formats.ImageAlign")));
            formats.ImageIndex  = ((int)(resources.GetObject("formats.ImageIndex")));
            formats.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("formats.ImeMode")));
            formats.Location    = ((System.Drawing.Point)(resources.GetObject("formats.Location")));
            formats.Name        = "formats";
            formats.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("formats.RightToLeft")));
            formats.Size        = ((System.Drawing.Size)(resources.GetObject("formats.Size")));
            formats.TabIndex    = ((int)(resources.GetObject("formats.TabIndex")));
            formats.Text        = resources.GetString("formats.Text");
            formats.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("formats.TextAlign")));
            formats.Visible     = ((bool)(resources.GetObject("formats.Visible")));
            //
            // schemeName
            //
            schemeName.DataSource            = schemeTable;
            schemeName.DisplayMember         = "SchemeName";
            schemeName.SelectedIndexChanged += new EventHandler(this.SchemeName_SelectionChanged);
            schemeName.AccessibleDescription = ((string)(resources.GetObject("schemeName.AccessibleDescription")));
            schemeName.AccessibleName        = ((string)(resources.GetObject("schemeName.AccessibleName")));
            schemeName.Anchor              = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("schemeName.Anchor")));
            schemeName.BackgroundImage     = ((System.Drawing.Image)(resources.GetObject("schemeName.BackgroundImage")));
            schemeName.ColumnWidth         = ((int)(resources.GetObject("schemeName.ColumnWidth")));
            schemeName.Cursor              = ((System.Windows.Forms.Cursor)(resources.GetObject("schemeName.Cursor")));
            schemeName.Dock                = ((System.Windows.Forms.DockStyle)(resources.GetObject("schemeName.Dock")));
            schemeName.Enabled             = ((bool)(resources.GetObject("schemeName.Enabled")));
            schemeName.Font                = ((System.Drawing.Font)(resources.GetObject("schemeName.Font")));
            schemeName.HorizontalExtent    = ((int)(resources.GetObject("schemeName.HorizontalExtent")));
            schemeName.HorizontalScrollbar = ((bool)(resources.GetObject("schemeName.HorizontalScrollbar")));
            schemeName.ImeMode             = ((System.Windows.Forms.ImeMode)(resources.GetObject("schemeName.ImeMode")));
            schemeName.IntegralHeight      = ((bool)(resources.GetObject("schemeName.IntegralHeight")));
            schemeName.ItemHeight          = ((int)(resources.GetObject("schemeName.ItemHeight")));
            schemeName.Location            = ((System.Drawing.Point)(resources.GetObject("schemeName.Location")));
            schemeName.Name                = "schemeName";
            schemeName.RightToLeft         = ((System.Windows.Forms.RightToLeft)(resources.GetObject("schemeName.RightToLeft")));
            schemeName.ScrollAlwaysVisible = ((bool)(resources.GetObject("schemeName.ScrollAlwaysVisible")));
            schemeName.Size                = ((System.Drawing.Size)(resources.GetObject("schemeName.Size")));
            schemeName.TabIndex            = ((int)(resources.GetObject("schemeName.TabIndex")));
            schemeName.Visible             = ((bool)(resources.GetObject("schemeName.Visible")));
            //
            // dataGrid
            //
            dataGrid.AccessibleDescription = ((string)(resources.GetObject("dataGrid.AccessibleDescription")));
            dataGrid.AccessibleName        = ((string)(resources.GetObject("dataGrid.AccessibleName")));
            dataGrid.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dataGrid.Anchor")));
            dataGrid.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dataGrid.BackgroundImage")));
            dataGrid.CaptionFont     = ((System.Drawing.Font)(resources.GetObject("dataGrid.CaptionFont")));
            dataGrid.CaptionText     = resources.GetString("dataGrid.CaptionText");
            dataGrid.Cursor          = ((System.Windows.Forms.Cursor)(resources.GetObject("dataGrid.Cursor")));
            dataGrid.DataMember      = "";
            dataGrid.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("dataGrid.Dock")));
            dataGrid.Enabled         = ((bool)(resources.GetObject("dataGrid.Enabled")));
            dataGrid.Font            = ((System.Drawing.Font)(resources.GetObject("dataGrid.Font")));
            dataGrid.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("dataGrid.ImeMode")));
            dataGrid.Location        = ((System.Drawing.Point)(resources.GetObject("dataGrid.Location")));
            dataGrid.Name            = "dataGrid";
            dataGrid.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dataGrid.RightToLeft")));
            dataGrid.Size            = ((System.Drawing.Size)(resources.GetObject("dataGrid.Size")));
            dataGrid.TabIndex        = ((int)(resources.GetObject("dataGrid.TabIndex")));
            dataGrid.Visible         = ((bool)(resources.GetObject("dataGrid.Visible")));
            //
            // preview
            //
            preview.AccessibleDescription = ((string)(resources.GetObject("preview.AccessibleDescription")));
            preview.AccessibleName        = ((string)(resources.GetObject("preview.AccessibleName")));
            preview.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("preview.Anchor")));
            preview.AutoSize    = ((bool)(resources.GetObject("preview.AutoSize")));
            preview.Cursor      = ((System.Windows.Forms.Cursor)(resources.GetObject("preview.Cursor")));
            preview.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("preview.Dock")));
            preview.Enabled     = ((bool)(resources.GetObject("preview.Enabled")));
            preview.Font        = ((System.Drawing.Font)(resources.GetObject("preview.Font")));
            preview.Image       = ((System.Drawing.Image)(resources.GetObject("preview.Image")));
            preview.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("preview.ImageAlign")));
            preview.ImageIndex  = ((int)(resources.GetObject("preview.ImageIndex")));
            preview.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("preview.ImeMode")));
            preview.Location    = ((System.Drawing.Point)(resources.GetObject("preview.Location")));
            preview.Name        = "preview";
            preview.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("preview.RightToLeft")));
            preview.Size        = ((System.Drawing.Size)(resources.GetObject("preview.Size")));
            preview.TabIndex    = ((int)(resources.GetObject("preview.TabIndex")));
            preview.Text        = resources.GetString("preview.Text");
            preview.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("preview.TextAlign")));
            preview.Visible     = ((bool)(resources.GetObject("preview.Visible")));
            //
            // button1
            //
            button1.DialogResult          = DialogResult.OK;
            button1.Click                += new EventHandler(Button1_Clicked);
            button1.AccessibleDescription = ((string)(resources.GetObject("button1.AccessibleDescription")));
            button1.AccessibleName        = ((string)(resources.GetObject("button1.AccessibleName")));
            button1.Anchor                = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button1.Anchor")));
            button1.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
            button1.Cursor                = ((System.Windows.Forms.Cursor)(resources.GetObject("button1.Cursor")));
            button1.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("button1.Dock")));
            button1.Enabled     = ((bool)(resources.GetObject("button1.Enabled")));
            button1.FlatStyle   = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button1.FlatStyle")));
            button1.Font        = ((System.Drawing.Font)(resources.GetObject("button1.Font")));
            button1.Image       = ((System.Drawing.Image)(resources.GetObject("button1.Image")));
            button1.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.ImageAlign")));
            button1.ImageIndex  = ((int)(resources.GetObject("button1.ImageIndex")));
            button1.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("button1.ImeMode")));
            button1.Location    = ((System.Drawing.Point)(resources.GetObject("button1.Location")));
            button1.Name        = "button1";
            button1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button1.RightToLeft")));
            button1.Size        = ((System.Drawing.Size)(resources.GetObject("button1.Size")));
            button1.TabIndex    = ((int)(resources.GetObject("button1.TabIndex")));
            button1.Text        = resources.GetString("button1.Text");
            button1.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.TextAlign")));
            button1.Visible     = ((bool)(resources.GetObject("button1.Visible")));
            //
            // button2
            //
            button2.DialogResult          = DialogResult.Cancel;
            button2.AccessibleDescription = ((string)(resources.GetObject("button2.AccessibleDescription")));
            button2.AccessibleName        = ((string)(resources.GetObject("button2.AccessibleName")));
            button2.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button2.Anchor")));
            button2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button2.BackgroundImage")));
            button2.Cursor          = ((System.Windows.Forms.Cursor)(resources.GetObject("button2.Cursor")));
            button2.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("button2.Dock")));
            button2.Enabled         = ((bool)(resources.GetObject("button2.Enabled")));
            button2.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button2.FlatStyle")));
            button2.Font            = ((System.Drawing.Font)(resources.GetObject("button2.Font")));
            button2.Image           = ((System.Drawing.Image)(resources.GetObject("button2.Image")));
            button2.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("button2.ImageAlign")));
            button2.ImageIndex      = ((int)(resources.GetObject("button2.ImageIndex")));
            button2.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("button2.ImeMode")));
            button2.Location        = ((System.Drawing.Point)(resources.GetObject("button2.Location")));
            button2.Name            = "button2";
            button2.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button2.RightToLeft")));
            button2.Size            = ((System.Drawing.Size)(resources.GetObject("button2.Size")));
            button2.TabIndex        = ((int)(resources.GetObject("button2.TabIndex")));
            button2.Text            = resources.GetString("button2.Text");
            button2.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("button2.TextAlign")));
            button2.Visible         = ((bool)(resources.GetObject("button2.Visible")));
            //
            // Win32Form1
            //
            CancelButton = button2;
            AcceptButton = button1;

            // hook up the help event
            this.HelpRequested += new HelpEventHandler(this.AutoFormat_HelpRequested);

            AccessibleDescription = ((string)(resources.GetObject("$this.AccessibleDescription")));
            AccessibleName        = ((string)(resources.GetObject("$this.AccessibleName")));
            Anchor            = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("$this.Anchor")));
            AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
            AutoScroll        = ((bool)(resources.GetObject("$this.AutoScroll")));
            AutoScrollMargin  = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
            AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
            BackgroundImage   = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
            ClientSize        = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
            Controls.AddRange(new System.Windows.Forms.Control[] { this.button2,
                                                                   button1,
                                                                   preview,
                                                                   dataGrid,
                                                                   schemeName,
                                                                   formats });
            Cursor          = ((System.Windows.Forms.Cursor)(resources.GetObject("$this.Cursor")));
            Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("$this.Dock")));
            Enabled         = ((bool)(resources.GetObject("$this.Enabled")));
            Font            = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
            FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
            Location        = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
            MaximizeBox     = false;
            MaximumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
            MinimizeBox     = false;
            MinimumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
            Name            = "Win32Form1";
            RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
            StartPosition   = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
            Text            = resources.GetString("$this.Text");
            Visible         = ((bool)(resources.GetObject("$this.Visible")));
            ((System.ComponentModel.ISupportInitialize)(this.dataGrid)).EndInit();
            dataGrid.ResumeLayout(false);
            ResumeLayout(false);
        }
Ejemplo n.º 2
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(System.Windows.Forms.Design.DataGridAutoFormatDialog));
     formats    = new System.Windows.Forms.Label();
     schemeName = new System.Windows.Forms.ListBox();
     dataGrid   = new System.Windows.Forms.Design.DataGridAutoFormatDialog.AutoFormatDataGrid();
     preview    = new System.Windows.Forms.Label();
     button1    = new System.Windows.Forms.Button();
     button2    = new System.Windows.Forms.Button();
     okCancelTableLayoutPanel    = new System.Windows.Forms.TableLayoutPanel();
     overarchingTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
     ((System.ComponentModel.ISupportInitialize)dataGrid).BeginInit();
     okCancelTableLayoutPanel.SuspendLayout();
     overarchingTableLayoutPanel.SuspendLayout();
     SuspendLayout();
     resources.ApplyResources(formats, "formats");
     formats.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
     formats.Name   = "formats";
     resources.ApplyResources(schemeName, "schemeName");
     schemeName.DisplayMember     = "SchemeName";
     schemeName.FormattingEnabled = true;
     schemeName.Margin            = new System.Windows.Forms.Padding(0, 2, 3, 3);
     schemeName.Name = "schemeName";
     schemeName.SelectedIndexChanged += new System.EventHandler(SchemeName_SelectionChanged);
     resources.ApplyResources(dataGrid, "dataGrid");
     dataGrid.DataMember      = "";
     dataGrid.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     dataGrid.Margin          = new System.Windows.Forms.Padding(3, 2, 0, 3);
     dataGrid.Name            = "dataGrid";
     resources.ApplyResources(preview, "preview");
     preview.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
     preview.Name   = "preview";
     resources.ApplyResources(button1, "button1");
     button1.DialogResult = System.Windows.Forms.DialogResult.OK;
     button1.Margin       = new System.Windows.Forms.Padding(0, 0, 3, 0);
     button1.MinimumSize  = new System.Drawing.Size(75, 23);
     button1.Name         = "button1";
     button1.Padding      = new System.Windows.Forms.Padding(10, 0, 10, 0);
     button1.Click       += new System.EventHandler(Button1_Clicked);
     resources.ApplyResources(button2, "button2");
     button2.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     button2.Margin       = new System.Windows.Forms.Padding(3, 0, 0, 0);
     button2.MinimumSize  = new System.Drawing.Size(75, 23);
     button2.Name         = "button2";
     button2.Padding      = new System.Windows.Forms.Padding(10, 0, 10, 0);
     resources.ApplyResources(okCancelTableLayoutPanel, "okCancelTableLayoutPanel");
     overarchingTableLayoutPanel.SetColumnSpan(okCancelTableLayoutPanel, 2);
     okCancelTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
     okCancelTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
     okCancelTableLayoutPanel.Controls.Add(button1, 0, 0);
     okCancelTableLayoutPanel.Controls.Add(button2, 1, 0);
     okCancelTableLayoutPanel.Margin = new System.Windows.Forms.Padding(0, 6, 0, 0);
     okCancelTableLayoutPanel.Name   = "okCancelTableLayoutPanel";
     okCancelTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50f));
     resources.ApplyResources(overarchingTableLayoutPanel, "overarchingTableLayoutPanel");
     overarchingTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 146f));
     overarchingTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 182f));
     overarchingTableLayoutPanel.Controls.Add(okCancelTableLayoutPanel, 0, 2);
     overarchingTableLayoutPanel.Controls.Add(preview, 1, 0);
     overarchingTableLayoutPanel.Controls.Add(dataGrid, 1, 1);
     overarchingTableLayoutPanel.Controls.Add(formats, 0, 0);
     overarchingTableLayoutPanel.Controls.Add(schemeName, 0, 1);
     overarchingTableLayoutPanel.Name = "overarchingTableLayoutPanel";
     overarchingTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle());
     overarchingTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50f));
     overarchingTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle());
     base.AcceptButton = button1;
     resources.ApplyResources(this, "$this");
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     base.CancelButton  = button2;
     base.Controls.Add(overarchingTableLayoutPanel);
     base.MaximizeBox    = false;
     base.MinimizeBox    = false;
     base.Name           = "DataGridAutoFormatDialog";
     base.ShowIcon       = false;
     base.HelpRequested += new System.Windows.Forms.HelpEventHandler(AutoFormat_HelpRequested);
     ((System.ComponentModel.ISupportInitialize)dataGrid).EndInit();
     okCancelTableLayoutPanel.ResumeLayout(false);
     okCancelTableLayoutPanel.PerformLayout();
     overarchingTableLayoutPanel.ResumeLayout(false);
     overarchingTableLayoutPanel.PerformLayout();
     ResumeLayout(false);
 }
Ejemplo n.º 3
0
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(DataGridAutoFormatDialog));

            this.formats    = new Label();
            this.schemeName = new ListBox();
            this.dataGrid   = new AutoFormatDataGrid();
            this.preview    = new Label();
            this.button1    = new Button();
            this.button2    = new Button();
            this.okCancelTableLayoutPanel    = new TableLayoutPanel();
            this.overarchingTableLayoutPanel = new TableLayoutPanel();
            this.dataGrid.BeginInit();
            this.okCancelTableLayoutPanel.SuspendLayout();
            this.overarchingTableLayoutPanel.SuspendLayout();
            base.SuspendLayout();
            manager.ApplyResources(this.formats, "formats");
            this.formats.Margin = new Padding(0, 0, 3, 0);
            this.formats.Name   = "formats";
            manager.ApplyResources(this.schemeName, "schemeName");
            this.schemeName.DisplayMember     = "SchemeName";
            this.schemeName.FormattingEnabled = true;
            this.schemeName.Margin            = new Padding(0, 2, 3, 3);
            this.schemeName.Name = "schemeName";
            this.schemeName.SelectedIndexChanged += new EventHandler(this.SchemeName_SelectionChanged);
            manager.ApplyResources(this.dataGrid, "dataGrid");
            this.dataGrid.DataMember      = "";
            this.dataGrid.HeaderForeColor = SystemColors.ControlText;
            this.dataGrid.Margin          = new Padding(3, 2, 0, 3);
            this.dataGrid.Name            = "dataGrid";
            manager.ApplyResources(this.preview, "preview");
            this.preview.Margin = new Padding(3, 0, 0, 0);
            this.preview.Name   = "preview";
            manager.ApplyResources(this.button1, "button1");
            this.button1.DialogResult = DialogResult.OK;
            this.button1.Margin       = new Padding(0, 0, 3, 0);
            this.button1.MinimumSize  = new Size(0x4b, 0x17);
            this.button1.Name         = "button1";
            this.button1.Padding      = new Padding(10, 0, 10, 0);
            this.button1.Click       += new EventHandler(this.Button1_Clicked);
            manager.ApplyResources(this.button2, "button2");
            this.button2.DialogResult = DialogResult.Cancel;
            this.button2.Margin       = new Padding(3, 0, 0, 0);
            this.button2.MinimumSize  = new Size(0x4b, 0x17);
            this.button2.Name         = "button2";
            this.button2.Padding      = new Padding(10, 0, 10, 0);
            manager.ApplyResources(this.okCancelTableLayoutPanel, "okCancelTableLayoutPanel");
            this.overarchingTableLayoutPanel.SetColumnSpan(this.okCancelTableLayoutPanel, 2);
            this.okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
            this.okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
            this.okCancelTableLayoutPanel.Controls.Add(this.button1, 0, 0);
            this.okCancelTableLayoutPanel.Controls.Add(this.button2, 1, 0);
            this.okCancelTableLayoutPanel.Margin = new Padding(0, 6, 0, 0);
            this.okCancelTableLayoutPanel.Name   = "okCancelTableLayoutPanel";
            this.okCancelTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
            manager.ApplyResources(this.overarchingTableLayoutPanel, "overarchingTableLayoutPanel");
            this.overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 146f));
            this.overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 182f));
            this.overarchingTableLayoutPanel.Controls.Add(this.okCancelTableLayoutPanel, 0, 2);
            this.overarchingTableLayoutPanel.Controls.Add(this.preview, 1, 0);
            this.overarchingTableLayoutPanel.Controls.Add(this.dataGrid, 1, 1);
            this.overarchingTableLayoutPanel.Controls.Add(this.formats, 0, 0);
            this.overarchingTableLayoutPanel.Controls.Add(this.schemeName, 0, 1);
            this.overarchingTableLayoutPanel.Name = "overarchingTableLayoutPanel";
            this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
            this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
            this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
            base.AcceptButton = this.button1;
            manager.ApplyResources(this, "$this");
            base.AutoScaleMode = AutoScaleMode.Font;
            base.CancelButton  = this.button2;
            base.Controls.Add(this.overarchingTableLayoutPanel);
            base.MaximizeBox    = false;
            base.MinimizeBox    = false;
            base.Name           = "DataGridAutoFormatDialog";
            base.ShowIcon       = false;
            base.HelpRequested += new HelpEventHandler(this.AutoFormat_HelpRequested);
            this.dataGrid.EndInit();
            this.okCancelTableLayoutPanel.ResumeLayout(false);
            this.okCancelTableLayoutPanel.PerformLayout();
            this.overarchingTableLayoutPanel.ResumeLayout(false);
            this.overarchingTableLayoutPanel.PerformLayout();
            base.ResumeLayout(false);
        }
 private void InitializeComponent()
 {
     ComponentResourceManager manager = new ComponentResourceManager(typeof(DataGridAutoFormatDialog));
     this.formats = new Label();
     this.schemeName = new ListBox();
     this.dataGrid = new AutoFormatDataGrid();
     this.preview = new Label();
     this.button1 = new Button();
     this.button2 = new Button();
     this.okCancelTableLayoutPanel = new TableLayoutPanel();
     this.overarchingTableLayoutPanel = new TableLayoutPanel();
     this.dataGrid.BeginInit();
     this.okCancelTableLayoutPanel.SuspendLayout();
     this.overarchingTableLayoutPanel.SuspendLayout();
     base.SuspendLayout();
     manager.ApplyResources(this.formats, "formats");
     this.formats.Margin = new Padding(0, 0, 3, 0);
     this.formats.Name = "formats";
     manager.ApplyResources(this.schemeName, "schemeName");
     this.schemeName.DisplayMember = "SchemeName";
     this.schemeName.FormattingEnabled = true;
     this.schemeName.Margin = new Padding(0, 2, 3, 3);
     this.schemeName.Name = "schemeName";
     this.schemeName.SelectedIndexChanged += new EventHandler(this.SchemeName_SelectionChanged);
     manager.ApplyResources(this.dataGrid, "dataGrid");
     this.dataGrid.DataMember = "";
     this.dataGrid.HeaderForeColor = SystemColors.ControlText;
     this.dataGrid.Margin = new Padding(3, 2, 0, 3);
     this.dataGrid.Name = "dataGrid";
     manager.ApplyResources(this.preview, "preview");
     this.preview.Margin = new Padding(3, 0, 0, 0);
     this.preview.Name = "preview";
     manager.ApplyResources(this.button1, "button1");
     this.button1.DialogResult = DialogResult.OK;
     this.button1.Margin = new Padding(0, 0, 3, 0);
     this.button1.MinimumSize = new Size(0x4b, 0x17);
     this.button1.Name = "button1";
     this.button1.Padding = new Padding(10, 0, 10, 0);
     this.button1.Click += new EventHandler(this.Button1_Clicked);
     manager.ApplyResources(this.button2, "button2");
     this.button2.DialogResult = DialogResult.Cancel;
     this.button2.Margin = new Padding(3, 0, 0, 0);
     this.button2.MinimumSize = new Size(0x4b, 0x17);
     this.button2.Name = "button2";
     this.button2.Padding = new Padding(10, 0, 10, 0);
     manager.ApplyResources(this.okCancelTableLayoutPanel, "okCancelTableLayoutPanel");
     this.overarchingTableLayoutPanel.SetColumnSpan(this.okCancelTableLayoutPanel, 2);
     this.okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.okCancelTableLayoutPanel.Controls.Add(this.button1, 0, 0);
     this.okCancelTableLayoutPanel.Controls.Add(this.button2, 1, 0);
     this.okCancelTableLayoutPanel.Margin = new Padding(0, 6, 0, 0);
     this.okCancelTableLayoutPanel.Name = "okCancelTableLayoutPanel";
     this.okCancelTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
     manager.ApplyResources(this.overarchingTableLayoutPanel, "overarchingTableLayoutPanel");
     this.overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 146f));
     this.overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 182f));
     this.overarchingTableLayoutPanel.Controls.Add(this.okCancelTableLayoutPanel, 0, 2);
     this.overarchingTableLayoutPanel.Controls.Add(this.preview, 1, 0);
     this.overarchingTableLayoutPanel.Controls.Add(this.dataGrid, 1, 1);
     this.overarchingTableLayoutPanel.Controls.Add(this.formats, 0, 0);
     this.overarchingTableLayoutPanel.Controls.Add(this.schemeName, 0, 1);
     this.overarchingTableLayoutPanel.Name = "overarchingTableLayoutPanel";
     this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
     this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
     this.overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
     base.AcceptButton = this.button1;
     manager.ApplyResources(this, "$this");
     base.AutoScaleMode = AutoScaleMode.Font;
     base.CancelButton = this.button2;
     base.Controls.Add(this.overarchingTableLayoutPanel);
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "DataGridAutoFormatDialog";
     base.ShowIcon = false;
     base.HelpRequested += new HelpEventHandler(this.AutoFormat_HelpRequested);
     this.dataGrid.EndInit();
     this.okCancelTableLayoutPanel.ResumeLayout(false);
     this.okCancelTableLayoutPanel.PerformLayout();
     this.overarchingTableLayoutPanel.ResumeLayout(false);
     this.overarchingTableLayoutPanel.PerformLayout();
     base.ResumeLayout(false);
 }