示例#1
0
 private void InitializeComponent()
 {
     splitContainer1 = new System.Windows.Forms.SplitContainer();
     tabControl1     = new System.Windows.Forms.TabControl();
     ReadButton      = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)splitContainer1).BeginInit();
     splitContainer1.Panel1.SuspendLayout();
     splitContainer1.Panel2.SuspendLayout();
     splitContainer1.SuspendLayout();
     SuspendLayout();
     splitContainer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     splitContainer1.Location = new System.Drawing.Point(0, 0);
     splitContainer1.Name     = "splitContainer1";
     splitContainer1.Panel1.Controls.Add(tabControl1);
     splitContainer1.Panel2.Controls.Add(ReadButton);
     splitContainer1.Size             = new System.Drawing.Size(532, 317);
     splitContainer1.SplitterDistance = 439;
     splitContainer1.TabIndex         = 3;
     tabControl1.Dock                   = System.Windows.Forms.DockStyle.Fill;
     tabControl1.Location               = new System.Drawing.Point(0, 0);
     tabControl1.Name                   = "tabControl1";
     tabControl1.SelectedIndex          = 0;
     tabControl1.Size                   = new System.Drawing.Size(439, 317);
     tabControl1.TabIndex               = 2;
     ReadButton.Location                = new System.Drawing.Point(3, 12);
     ReadButton.Name                    = "ReadButton";
     ReadButton.Size                    = new System.Drawing.Size(75, 23);
     ReadButton.TabIndex                = 3;
     ReadButton.Text                    = "Read";
     ReadButton.UseVisualStyleBackColor = true;
     base.AutoScaleDimensions           = new System.Drawing.SizeF(6f, 12f);
     base.AutoScaleMode                 = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize                    = new System.Drawing.Size(532, 317);
     base.Controls.Add(splitContainer1);
     base.Name          = "VersionForm";
     base.ShowIcon      = false;
     base.ShowInTaskbar = false;
     Text              = "Version";
     base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(SettingForm_FormClosing);
     base.Load        += new System.EventHandler(SettingForm_Load);
     splitContainer1.Panel1.ResumeLayout(performLayout: false);
     splitContainer1.Panel2.ResumeLayout(performLayout: false);
     ((System.ComponentModel.ISupportInitialize)splitContainer1).EndInit();
     splitContainer1.ResumeLayout(performLayout: false);
     ResumeLayout(performLayout: false);
 }
            public void RestoreFromSettings(ISettingsSource settings)
            {
                _splitter.BeginInit();
                _splitter.SuspendLayout();

                int prevDpi      = settings.GetInt(DpiSettingsKey) ?? DpiUtil.DpiX;
                int prevSize     = settings.GetInt(SizeSettingsKey) ?? 0;
                int prevDistance = settings.GetInt(DistanceSettingsKey) ?? 0;

                if (prevSize > 0 && prevDistance > 0)
                {
                    var fixedPanel    = _splitter.FixedPanel;
                    var splitterWidth = _splitter.SplitterWidth;
                    if (SplitterSize == prevSize && _dpi == prevDpi)
                    {
                        SetSplitterDistance(fixedPanel == FixedPanel.Panel2 ? prevDistance + splitterWidth : prevDistance);
                    }
                    else
                    {
                        switch (fixedPanel)
                        {
                        case FixedPanel.None:
                            // At this point, the property "SplitterSize" has its original value from design time,
                            // i.e. the actual size after opening the window is unknown yet. The calculation below
                            // determines the resulting splitter distance by the ratio of both sides of the splitter.
                            SetSplitterDistance((float)SplitterSize * prevDistance / prevSize);
                            break;

                        case FixedPanel.Panel1:
                            SetSplitterDistance(DpiUtil.Scale(prevDistance, prevDpi));
                            break;

                        case FixedPanel.Panel2:
                            int panel2PrevSize = DpiUtil.Scale(prevSize, prevDpi) - DpiUtil.Scale(prevDistance, prevDpi);
                            SetSplitterDistance(SplitterSize - panel2PrevSize + splitterWidth);
                            break;
                        }
                    }
                }

                _splitter.Panel1Collapsed = settings.GetBool(Panel1CollapsedSettingsKey, defaultValue: false);

                _splitter.ResumeLayout();
                _splitter.EndInit();
            }
	private void InitializeComponent(MainApp ma) {
		_splitContainer1 = new SplitContainer();
		_textBox1 = new TextBox();
		_button1 = new Button();
		_splitContainer1.Panel1.SuspendLayout();
		_splitContainer1.Panel2.SuspendLayout();
		_splitContainer1.SuspendLayout();
		this.SuspendLayout();
      
		_splitContainer1.Dock = DockStyle.Fill;
		_splitContainer1.Location = new Point(0, 0);  
		_splitContainer1.Panel1.Controls.Add(_textBox1);
		_splitContainer1.Panel2.Controls.Add(_button1);
		_splitContainer1.Size = new Size(292, 273);
		_splitContainer1.SplitterDistance = 161;
		_splitContainer1.TabIndex = 0;
      
		_textBox1.Location = new Point(3, 3);
		_textBox1.AutoSize = true;
		_textBox1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom 
											| AnchorStyles.Left | AnchorStyles.Right;
		_textBox1.Multiline = true;
		_textBox1.Name = "textBox1";
		_textBox1.Size = new Size(155, 267);
		_textBox1.TabIndex = 0;
       
		_button1.Location = new Point(27, 12);
		_button1.Size = new Size(75, 23);
		_button1.TabIndex = 0;
		_button1.Text = "Open File";
		_button1.UseVisualStyleBackColor = true;
		_button1.Click += ma.Button1ClickHandler;
      
		this.AutoScaleMode = AutoScaleMode.None;
		this.ClientSize = new Size(292, 273);
		this.Controls.Add(_splitContainer1);

		this.Text = "FileDialog Demo";
		_splitContainer1.Panel1.ResumeLayout(false);
		_splitContainer1.Panel1.PerformLayout();
		_splitContainer1.Panel2.ResumeLayout(false);
		_splitContainer1.ResumeLayout(false);
		this.ResumeLayout(false);
	} // End InitializeComponent()
示例#4
0
        private void InitUi()
        {
            SuspendLayout();

            ((System.ComponentModel.ISupportInitialize)_split).BeginInit();
            _split.SuspendLayout();
            _split.Dock = DockStyle.Fill;

            _lvw.Dock = DockStyle.Fill;
            _lvw.ItemSelectionChanged += (sender, args) =>
            {
                if (!args.IsSelected || args.Item == null)
                {
                    return;
                }
                var item = (ProcessListItem)args.Item;
                log.Info($"Application selected was {item.Caption} with placement of {item.Placement} on monitor {item.Monitor}");
                _editor.SetApplication(item);
            };

            _editor.Dock = DockStyle.Fill;

            Controls.Add(_split);

            _split.FixedPanel       = FixedPanel.Panel1;
            _split.Size             = new Size(500, 273);
            _split.SplitterDistance = 275;
            _split.TabIndex         = 0;
            _split.Panel1.Controls.Add(_lvw);
            _split.Panel2.Controls.Add(_editor);

            _split.ResumeLayout();

            ResumeLayout();

//            Closing += (sender, args) =>
//            {
//                if (DialogResult.Yes ==
//                    MessageBox.Show("Apply these changes immediately?", "Apply Changes", MessageBoxButtons.YesNo, MessageBoxIcon.Question))
//                {
//                    TilerTasks.ReArrangeWindows();
//                }
//            };
        }
示例#5
0
 private void InitializeComponent()
 {
     _splitContainer1 = new SplitContainer();
     _logListBox      = new ListBox();
     _logTextBox      = new RichTextBox();
     _splitContainer1.Panel1.SuspendLayout();
     _splitContainer1.Panel2.SuspendLayout();
     _splitContainer1.SuspendLayout();
     SuspendLayout();
     _splitContainer1.Dock     = DockStyle.Fill;
     _splitContainer1.Location = new Point(0, 0);
     _splitContainer1.Name     = "_splitContainer1";
     _splitContainer1.Panel1.Controls.Add(_logListBox);
     _splitContainer1.Panel2.Controls.Add(_logTextBox);
     _splitContainer1.Size             = new Size(476, 188);
     _splitContainer1.SplitterDistance = 158;
     _splitContainer1.TabIndex         = 0;
     _logListBox.Dock = DockStyle.Fill;
     _logListBox.FormattingEnabled = true;
     _logListBox.Location          = new Point(0, 0);
     _logListBox.Name                  = "_logListBox";
     _logListBox.Size                  = new Size(158, 186);
     _logListBox.TabIndex              = 0;
     _logListBox.SelectedIndexChanged += LogListBox_SelectedIndexChanged;
     _logTextBox.Dock                  = DockStyle.Fill;
     _logTextBox.Location              = new Point(0, 0);
     _logTextBox.Name                  = "_logTextBox";
     _logTextBox.ReadOnly              = true;
     _logTextBox.Size                  = new Size(314, 188);
     _logTextBox.TabIndex              = 0;
     _logTextBox.Text                  = "";
     AutoScaleDimensions               = new SizeF(6f, 13f);
     AutoScaleMode = AutoScaleMode.Font;
     ClientSize    = new Size(476, 188);
     Controls.Add(_splitContainer1);
     Name = "ViewLog";
     Text = "ViewLog";
     _splitContainer1.Panel1.ResumeLayout(false);
     _splitContainer1.Panel2.ResumeLayout(false);
     _splitContainer1.ResumeLayout(false);
     ResumeLayout(false);
 }
示例#6
0
        public void CreatesplitContainer()
        {
            splitContainer1 = new SplitContainer();
            ((System.ComponentModel.ISupportInitialize)(splitContainer1)).BeginInit();
            splitContainer1.SuspendLayout();

            // splitContainer1
            //
            splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                           | System.Windows.Forms.AnchorStyles.Left)));
            splitContainer1.Location         = new System.Drawing.Point(433, 76);
            splitContainer1.Name             = "splitContainer1";
            splitContainer1.Orientation      = System.Windows.Forms.Orientation.Horizontal;
            splitContainer1.Size             = new System.Drawing.Size(603, 626);
            splitContainer1.SplitterDistance = 233;
            splitContainer1.TabIndex         = 14;

            this.Controls.Add(splitContainer1);
            ((System.ComponentModel.ISupportInitialize)(splitContainer1)).EndInit();
            splitContainer1.ResumeLayout(false);
        }
        /// <summary>
        /// Assing the position to the control if it is a SplitContainer.
        /// Search in the Contained Controls to process all the existing ones in the form.
        /// </summary>
        /// <param name="control"></param>
        /// <param name="properties"></param>
        private void SetSpliterInfo(Control control, StringDictionary properties)
        {
            SplitContainer split = control as SplitContainer;

            if (split != null)
            {
                string value = properties[split.Name];
                if (value != null)
                {
                    split.SuspendLayout();
                    split.SplitterDistance = int.Parse(value);
                    split.Refresh();
                    split.ResumeLayout(true);
                }
            }

            foreach (Control subControl in control.Controls)
            {
                SetSpliterInfo(subControl, properties);
            }
        }
            public void RestoreFromSettings(ISettingsSource settings)
            {
                Splitter.BeginInit();
                Splitter.SuspendLayout();

                int prevDpi      = settings.GetInt(DpiSettingsKey) ?? DpiUtil.DpiX;
                int prevSize     = settings.GetInt(SizeSettingsKey) ?? 0;
                int prevDistance = settings.GetInt(DistanceSettingsKey) ?? 0;

                if (prevSize > 0 && prevDistance > 0)
                {
                    if (SplitterSize == prevSize && Dpi == prevDpi)
                    {
                        SetSplitterDistance(prevDistance);
                    }
                    else
                    {
                        switch (Splitter.FixedPanel)
                        {
                        case FixedPanel.None:
                            SetSplitterDistance((float)SplitterSize * prevDistance / prevSize);
                            break;

                        case FixedPanel.Panel1:
                            SetSplitterDistance(DpiUtil.Scale(prevDistance, prevDpi));
                            break;

                        case FixedPanel.Panel2:
                            int panel2PrevSize = DpiUtil.Scale(prevSize, prevDpi) - DpiUtil.Scale(prevDistance, prevDpi);
                            SetSplitterDistance(SplitterSize - panel2PrevSize);
                            break;
                        }
                    }
                }

                Splitter.Panel1Collapsed = settings.GetBool(Panel1CollapsedSettingsKey, defaultValue: false);

                Splitter.ResumeLayout();
                Splitter.EndInit();
            }
示例#9
0
        SplitContainer CreateSplitPanel(GuiLayout gl)
        {
            SplitContainer sc = new SplitContainer();

            sc.SuspendLayout();
            sc.Panel1.SuspendLayout();
            sc.Panel2.SuspendLayout();
            sc.Orientation = Orientation.Horizontal;
            if (gl.orientation.IsExplicit() && (((string)gl.orientation).ToLower()[0] == 'v'))
            {
                sc.Orientation = Orientation.Vertical;
            }
            if (gl.splitPos.IsExplicit())
            {
                sc.SplitterDistance = gl.splitPos;
            }
            foreach (GuiLayout subgl in gl.subLayouts)
            {
                SplitterPanel sp;
                if (subgl.type == GuiLayout.LayoutType.SplitPanel1)
                {
                    sp = sc.Panel1;
                }
                else if (subgl.type == GuiLayout.LayoutType.SplitPanel2)
                {
                    sp = sc.Panel2;
                }
                else
                {
                    continue;
                }
                CreateSublayouts(subgl, sp);
            }
            FillCommonLayoutParameters(gl, sc);
            sc.Panel1.ResumeLayout();
            sc.Panel2.ResumeLayout();
            return(sc);
        }
        protected override void InitializeComponent()
        {
            base.InitializeComponent();
            SuspendLayout();
            userControlAnalysisSeries = new UserControlAnalysisSeries
            {
                Dock     = DockStyle.Fill,
                Location = new System.Drawing.Point(3, 3),
                Name     = "userControlAnalysisSeries",
                Size     = new System.Drawing.Size(1301, 809),
                TabIndex = 0
            };
            userControlDiagnosticTestRecord = new UserControlDiagnosticTestRecord
            {
                Dock        = DockStyle.Fill,
                BackColor   = System.Drawing.Color.Transparent,
                Location    = new System.Drawing.Point(3, 3),
                MinimumSize = new System.Drawing.Size(530, 200),
                Name        = "userControlDiagnosticTestRecord",
                Size        = new System.Drawing.Size(1301, 809),
                TabIndex    = 0
            };
            userControlDiagnosticTestRecord.Initialize(new DiagnosticTestRecordService());
            userControlGranuleUX = new UserControlGranuleUX
            {
                BackColor = System.Drawing.Color.Transparent,
                Dock      = DockStyle.Fill,
                Location  = new System.Drawing.Point(0, 0),
                Name      = "userControlGranuleUX",
                Size      = new System.Drawing.Size(659, 809),
                TabIndex  = 0
            };
            userControlGranuleUX.Initialize(new GranuleUXService());
            userControlGranuleFT = new UserControlGranuleFT
            {
                BackColor = System.Drawing.Color.Transparent,
                Dock      = DockStyle.Fill,
                Location  = new System.Drawing.Point(0, 0),
                Name      = "userControlGranuleFT",
                Size      = new System.Drawing.Size(638, 809),
                TabIndex  = 0
            };
            userControlGranuleFT.Initialize(new GranuleFTService());
            userControlGranuleEntropy = new UserControlGranuleEntropy
            {
                BackColor = System.Drawing.Color.Transparent,
                Dock      = DockStyle.Fill,
                Location  = new System.Drawing.Point(0, 0),
                Name      = "userControlGranuleEntropy",
                Size      = new System.Drawing.Size(614, 815),
                TabIndex  = 0
            };
            userControlGranuleEntropy.Initialize(new GranuleEntropyService());
            userControlGranuleFuzzy = new UserControlGranuleFuzzy
            {
                BackColor = System.Drawing.Color.Transparent,
                Dock      = DockStyle.Fill,
                Location  = new System.Drawing.Point(0, 0),
                Name      = "userControlGranuleFuzzy",
                Size      = new System.Drawing.Size(689, 815),
                TabIndex  = 0
            };
            userControlGranuleFuzzy.Initialize(new GranuleFuzzyService());
            splitContainerUXFT = new SplitContainer
            {
                Dock             = DockStyle.Fill,
                Location         = new System.Drawing.Point(3, 3),
                Name             = "splitContainerUXFT",
                Size             = new System.Drawing.Size(1301, 809),
                SplitterDistance = 659,
                TabIndex         = 0
            };
            ((System.ComponentModel.ISupportInitialize)(splitContainerUXFT)).BeginInit();
            splitContainerUXFT.Panel1.SuspendLayout();
            splitContainerUXFT.Panel2.SuspendLayout();
            splitContainerUXFT.SuspendLayout();
            splitContainerUXFT.Panel1.Controls.Add(userControlGranuleUX);
            splitContainerUXFT.Panel2.Controls.Add(userControlGranuleFT);
            splitContainerEF = new SplitContainer
            {
                Dock             = DockStyle.Fill,
                Location         = new System.Drawing.Point(0, 0),
                Name             = "splitContainerEF",
                Size             = new System.Drawing.Size(1307, 815),
                SplitterDistance = 614,
                TabIndex         = 0
            };
            ((System.ComponentModel.ISupportInitialize)(splitContainerEF)).BeginInit();
            splitContainerEF.Panel1.SuspendLayout();
            splitContainerEF.Panel2.SuspendLayout();
            splitContainerEF.SuspendLayout();
            splitContainerEF.Panel1.Controls.Add(userControlGranuleEntropy);
            splitContainerEF.Panel2.Controls.Add(userControlGranuleFuzzy);
            tabPageLoadSeries = new TabPage
            {
                Location = new System.Drawing.Point(4, 22),
                Name     = "tabPageLoadSeries",
                Padding  = new Padding(3),
                Size     = new System.Drawing.Size(1307, 815),
                TabIndex = 4,
                Text     = "Обработка ряда",
                UseVisualStyleBackColor = true
            };
            tabPageLoadSeries.SuspendLayout();
            tabPageLoadSeries.Controls.Add(userControlAnalysisSeries);
            tabPageRecords = new TabPage
            {
                Location = new System.Drawing.Point(4, 22),
                Name     = "tabPageRecords",
                Padding  = new Padding(3),
                Size     = new System.Drawing.Size(1307, 815),
                TabIndex = 7,
                Text     = "Записи",
                UseVisualStyleBackColor = true
            };
            tabPageRecords.SuspendLayout();
            tabPageRecords.Controls.Add(userControlDiagnosticTestRecord);
            tabPageGranuleFTUXs = new TabPage
            {
                Location = new System.Drawing.Point(4, 22),
                Name     = "tabPageGranuleFTUXs",
                Padding  = new Padding(3),
                Size     = new System.Drawing.Size(1307, 815),
                TabIndex = 5,
                Text     = "Гранулы UX/FT",
                UseVisualStyleBackColor = true
            };
            tabPageGranuleFTUXs.SuspendLayout();
            tabPageGranuleFTUXs.Controls.Add(splitContainerUXFT);
            tabPageGranuleEF = new TabPage
            {
                Location = new System.Drawing.Point(4, 22),
                Name     = "tabPageGranuleEF",
                Size     = new System.Drawing.Size(1307, 815),
                TabIndex = 6,
                Text     = "Гранулы E/F",
                UseVisualStyleBackColor = true
            };
            tabPageGranuleEF.SuspendLayout();
            tabPageGranuleEF.Controls.Add(splitContainerEF);
            tabControl = new TabControl
            {
                Dock          = DockStyle.Fill,
                Location      = new System.Drawing.Point(0, 0),
                Name          = "tabControl",
                SelectedIndex = 0,
                Size          = new System.Drawing.Size(1315, 841),
                TabIndex      = 0
            };
            tabControl.SuspendLayout();
            tabControl.Controls.Add(tabPageLoadSeries);
            tabControl.Controls.Add(tabPageRecords);
            tabControl.Controls.Add(tabPageGranuleFTUXs);
            tabControl.Controls.Add(tabPageGranuleEF);

            buttonSave.Visible  = false;
            buttonClose.Visible = false;

            ClientSize = new System.Drawing.Size(1315, 841);
            Controls.Add(tabControl);
            Name = "FormDiagnosticTest";
            Text = "Диагностический тест";
            tabControl.ResumeLayout(false);
            tabPageLoadSeries.ResumeLayout(false);
            tabPageRecords.ResumeLayout(false);
            tabPageGranuleFTUXs.ResumeLayout(false);
            splitContainerUXFT.Panel1.ResumeLayout(false);
            splitContainerUXFT.Panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(splitContainerUXFT)).EndInit();
            splitContainerUXFT.ResumeLayout(false);
            tabPageGranuleEF.ResumeLayout(false);
            splitContainerEF.Panel1.ResumeLayout(false);
            splitContainerEF.Panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(splitContainerEF)).EndInit();
            splitContainerEF.ResumeLayout(false);
            ResumeLayout(false);
        }
示例#11
0
        private void InitializeComponent()
        {
            components = new Container();
            var componentResourceManager = new ComponentResourceManager(typeof(BCForm));

            label1            = new Label();
            listBox1          = new ListBox();
            label3            = new Label();
            tableLayoutPanel1 = new TableLayoutPanel();
            label4            = new Label();
            label5            = new Label();
            label6            = new Label();
            label7            = new Label();
            label8            = new Label();
            label9            = new Label();
            p1              = new PictureBox();
            p2              = new PictureBox();
            p3              = new PictureBox();
            p4              = new PictureBox();
            p5              = new PictureBox();
            p6              = new PictureBox();
            toolTip1        = new ToolTip(components);
            textBoxLog      = new TextBox();
            button1         = new Button();
            splitContainer1 = new SplitContainer();
            splitContainer2 = new SplitContainer();
            openFileDialog1 = new OpenFileDialog();
            linkLabel1      = new LinkLabel();
            tableLayoutPanel1.SuspendLayout();
            ((ISupportInitialize)p1).BeginInit();
            ((ISupportInitialize)p2).BeginInit();
            ((ISupportInitialize)p3).BeginInit();
            ((ISupportInitialize)p4).BeginInit();
            ((ISupportInitialize)p5).BeginInit();
            ((ISupportInitialize)p6).BeginInit();
            splitContainer1.Panel1.SuspendLayout();
            splitContainer1.Panel2.SuspendLayout();
            splitContainer1.SuspendLayout();
            splitContainer2.Panel1.SuspendLayout();
            splitContainer2.Panel2.SuspendLayout();
            splitContainer2.SuspendLayout();
            base.SuspendLayout();
            label1.AutoSize                   = true;
            label1.Location                   = new Point(12, 9);
            label1.Name                       = "label1";
            label1.Size                       = new Size(191, 14);
            label1.TabIndex                   = 0;
            label1.Text                       = "Choose one from below presets:";
            listBox1.Anchor                   = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            listBox1.FormattingEnabled        = true;
            listBox1.IntegralHeight           = false;
            listBox1.ItemHeight               = 14;
            listBox1.Location                 = new Point(12, 26);
            listBox1.Name                     = "listBox1";
            listBox1.Size                     = new Size(194, 480);
            listBox1.TabIndex                 = 1;
            listBox1.SelectedIndexChanged    += listBox1_SelectedIndexChanged;
            label3.AutoSize                   = true;
            label3.Location                   = new Point(3, 9);
            label3.Name                       = "label3";
            label3.Size                       = new Size(187, 14);
            label3.TabIndex                   = 3;
            label3.Text                       = "Display the status of bound files:";
            tableLayoutPanel1.Anchor          = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            tableLayoutPanel1.AutoSizeMode    = AutoSizeMode.GrowAndShrink;
            tableLayoutPanel1.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single;
            tableLayoutPanel1.ColumnCount     = 3;
            tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle());
            tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
            tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
            tableLayoutPanel1.Controls.Add(label4, 0, 0);
            tableLayoutPanel1.Controls.Add(label5, 1, 0);
            tableLayoutPanel1.Controls.Add(label6, 2, 0);
            tableLayoutPanel1.Controls.Add(label7, 0, 1);
            tableLayoutPanel1.Controls.Add(label8, 0, 2);
            tableLayoutPanel1.Controls.Add(label9, 0, 3);
            tableLayoutPanel1.Controls.Add(p1, 1, 1);
            tableLayoutPanel1.Controls.Add(p2, 2, 1);
            tableLayoutPanel1.Controls.Add(p3, 1, 2);
            tableLayoutPanel1.Controls.Add(p4, 2, 2);
            tableLayoutPanel1.Controls.Add(p5, 1, 3);
            tableLayoutPanel1.Controls.Add(p6, 2, 3);
            tableLayoutPanel1.Location = new Point(6, 26);
            tableLayoutPanel1.Name     = "tableLayoutPanel1";
            tableLayoutPanel1.RowCount = 4;
            tableLayoutPanel1.RowStyles.Add(new RowStyle());
            tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f));
            tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f));
            tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f));
            tableLayoutPanel1.Size     = new Size(452, 404);
            tableLayoutPanel1.TabIndex = 4;
            label4.AutoSize            = true;
            label4.Location            = new Point(4, 1);
            label4.Name            = "label4";
            label4.Size            = new Size(13, 14);
            label4.TabIndex        = 0;
            label4.Text            = "  ";
            label5.AutoSize        = true;
            label5.Location        = new Point(76, 1);
            label5.Name            = "label5";
            label5.Size            = new Size(37, 14);
            label5.TabIndex        = 1;
            label5.Text            = ".mdlx";
            label6.AutoSize        = true;
            label6.Location        = new Point(265, 1);
            label6.Name            = "label6";
            label6.Size            = new Size(39, 14);
            label6.TabIndex        = 2;
            label6.Text            = ".mset";
            label7.AutoSize        = true;
            label7.Location        = new Point(4, 16);
            label7.Name            = "label7";
            label7.Size            = new Size(34, 14);
            label7.TabIndex        = 3;
            label7.Text            = "Body";
            label8.AutoSize        = true;
            label8.Location        = new Point(4, 145);
            label8.Name            = "label8";
            label8.Size            = new Size(65, 14);
            label8.TabIndex        = 4;
            label8.Text            = "Right hand";
            label9.AutoSize        = true;
            label9.Location        = new Point(4, 274);
            label9.Name            = "label9";
            label9.Size            = new Size(59, 14);
            label9.TabIndex        = 5;
            label9.Text            = "Left hand";
            p1.Dock                = DockStyle.Fill;
            p1.Image               = (Image)componentResourceManager.GetObject("p1.Image");
            p1.Location            = new Point(76, 19);
            p1.Name                = "p1";
            p1.Size                = new Size(182, 122);
            p1.SizeMode            = PictureBoxSizeMode.CenterImage;
            p1.TabIndex            = 6;
            p1.TabStop             = false;
            p1.DoubleClick        += p1_DoubleClick;
            p1.Click              += p1_Click;
            p1.DragDrop           += p1_DragDrop;
            p1.DragEnter          += p1_DragEnter;
            p2.Dock                = DockStyle.Fill;
            p2.Image               = (Image)componentResourceManager.GetObject("p2.Image");
            p2.Location            = new Point(265, 19);
            p2.Name                = "p2";
            p2.Size                = new Size(183, 122);
            p2.SizeMode            = PictureBoxSizeMode.CenterImage;
            p2.TabIndex            = 7;
            p2.TabStop             = false;
            p2.DoubleClick        += p1_DoubleClick;
            p2.DragDrop           += p1_DragDrop;
            p2.DragEnter          += p1_DragEnter;
            p3.Dock                = DockStyle.Fill;
            p3.Image               = (Image)componentResourceManager.GetObject("p3.Image");
            p3.Location            = new Point(76, 148);
            p3.Name                = "p3";
            p3.Size                = new Size(182, 122);
            p3.SizeMode            = PictureBoxSizeMode.CenterImage;
            p3.TabIndex            = 8;
            p3.TabStop             = false;
            p3.DoubleClick        += p1_DoubleClick;
            p3.DragDrop           += p1_DragDrop;
            p3.DragEnter          += p1_DragEnter;
            p4.Dock                = DockStyle.Fill;
            p4.Image               = (Image)componentResourceManager.GetObject("p4.Image");
            p4.Location            = new Point(265, 148);
            p4.Name                = "p4";
            p4.Size                = new Size(183, 122);
            p4.SizeMode            = PictureBoxSizeMode.CenterImage;
            p4.TabIndex            = 9;
            p4.TabStop             = false;
            p4.DoubleClick        += p1_DoubleClick;
            p4.DragDrop           += p1_DragDrop;
            p4.DragEnter          += p1_DragEnter;
            p5.Dock                = DockStyle.Fill;
            p5.Image               = (Image)componentResourceManager.GetObject("p5.Image");
            p5.Location            = new Point(76, 277);
            p5.Name                = "p5";
            p5.Size                = new Size(182, 123);
            p5.SizeMode            = PictureBoxSizeMode.CenterImage;
            p5.TabIndex            = 10;
            p5.TabStop             = false;
            p5.DoubleClick        += p1_DoubleClick;
            p5.DragDrop           += p1_DragDrop;
            p5.DragEnter          += p1_DragEnter;
            p6.Dock                = DockStyle.Fill;
            p6.Image               = (Image)componentResourceManager.GetObject("p6.Image");
            p6.Location            = new Point(265, 277);
            p6.Name                = "p6";
            p6.Size                = new Size(183, 123);
            p6.SizeMode            = PictureBoxSizeMode.CenterImage;
            p6.TabIndex            = 11;
            p6.TabStop             = false;
            p6.DoubleClick        += p1_DoubleClick;
            p6.DragDrop           += p1_DragDrop;
            p6.DragEnter          += p1_DragEnter;
            toolTip1.IsBalloon     = true;
            textBoxLog.Anchor      = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            textBoxLog.BorderStyle = BorderStyle.None;
            textBoxLog.Location    = new Point(125, 3);
            textBoxLog.Multiline   = true;
            textBoxLog.Name        = "textBoxLog";
            textBoxLog.ReadOnly    = true;
            textBoxLog.Size        = new Size(329, 48);
            textBoxLog.TabIndex    = 6;
            toolTip1.SetToolTip(textBoxLog, "Log message goes here");
            button1.FlatStyle = FlatStyle.Flat;
            button1.Location  = new Point(6, 3);
            button1.Name      = "button1";
            button1.Size      = new Size(113, 44);
            button1.TabIndex  = 5;
            button1.Text      = "Back to viewer";
            button1.UseVisualStyleBackColor = true;
            button1.Click             += button1_Click;
            splitContainer1.Dock       = DockStyle.Fill;
            splitContainer1.FixedPanel = FixedPanel.Panel1;
            splitContainer1.Location   = new Point(0, 0);
            splitContainer1.Name       = "splitContainer1";
            splitContainer1.Panel1.Controls.Add(label1);
            splitContainer1.Panel1.Controls.Add(listBox1);
            splitContainer1.Panel2.Controls.Add(splitContainer2);
            splitContainer1.Size             = new Size(693, 518);
            splitContainer1.SplitterDistance = 218;
            splitContainer1.SplitterWidth    = 6;
            splitContainer1.TabIndex         = 7;
            splitContainer2.Dock             = DockStyle.Fill;
            splitContainer2.FixedPanel       = FixedPanel.Panel2;
            splitContainer2.Location         = new Point(0, 0);
            splitContainer2.Name             = "splitContainer2";
            splitContainer2.Orientation      = Orientation.Horizontal;
            splitContainer2.Panel1.Controls.Add(label3);
            splitContainer2.Panel1.Controls.Add(tableLayoutPanel1);
            splitContainer2.Panel2.Controls.Add(linkLabel1);
            splitContainer2.Panel2.Controls.Add(textBoxLog);
            splitContainer2.Panel2.Controls.Add(button1);
            splitContainer2.Size             = new Size(469, 518);
            splitContainer2.SplitterDistance = 433;
            splitContainer2.SplitterWidth    = 6;
            splitContainer2.TabIndex         = 5;
            linkLabel1.Anchor    = (AnchorStyles.Bottom | AnchorStyles.Left);
            linkLabel1.AutoSize  = true;
            linkLabel1.ForeColor = SystemColors.ButtonShadow;
            linkLabel1.LinkArea  = new LinkArea(54, 37);
            linkLabel1.Location  = new Point(6, 54);
            linkLabel1.Name      = "linkLabel1";
            linkLabel1.Size      = new Size(504, 18);
            linkLabel1.TabIndex  = 7;
            linkLabel1.TabStop   = true;
            linkLabel1.Text      =
                "Emoticons are taken from wikipedia. Thanks wikipedia! http://en.wikipedia.org/wiki/Emoticon";
            linkLabel1.UseCompatibleTextRendering = true;
            linkLabel1.LinkClicked  += linkLabel1_LinkClicked;
            base.AutoScaleDimensions = new SizeF(7f, 14f);
            base.AutoScaleMode       = AutoScaleMode.Font;
            base.ClientSize          = new Size(693, 518);
            base.Controls.Add(splitContainer1);
            Font               = new Font("Arial", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            base.Name          = "BCForm";
            base.StartPosition = FormStartPosition.CenterScreen;
            Text               = "Bind controller";
            base.Load         += BCForm_Load;
            tableLayoutPanel1.ResumeLayout(false);
            tableLayoutPanel1.PerformLayout();
            ((ISupportInitialize)p1).EndInit();
            ((ISupportInitialize)p2).EndInit();
            ((ISupportInitialize)p3).EndInit();
            ((ISupportInitialize)p4).EndInit();
            ((ISupportInitialize)p5).EndInit();
            ((ISupportInitialize)p6).EndInit();
            splitContainer1.Panel1.ResumeLayout(false);
            splitContainer1.Panel1.PerformLayout();
            splitContainer1.Panel2.ResumeLayout(false);
            splitContainer1.ResumeLayout(false);
            splitContainer2.Panel1.ResumeLayout(false);
            splitContainer2.Panel1.PerformLayout();
            splitContainer2.Panel2.ResumeLayout(false);
            splitContainer2.Panel2.PerformLayout();
            splitContainer2.ResumeLayout(false);
            base.ResumeLayout(false);
        }
示例#12
0
        /// <summary>
        /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
        /// le contenu de cette méthode avec l'éditeur de code.
        /// </summary>
        private void InitializeComponent()
        {
            components = new Container();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(MatrixControl));

            _splitContainer                 = new SplitContainer();
            _selector                       = new TypeUserPanel();
            _matrix                         = new MatrixPanel();
            _hScrollBar                     = new HScrollBar();
            _vScrollBar                     = new VScrollBar();
            _cntxtMenuStrip                 = new ContextMenuStrip(components);
            CntxtItemMoveUp                 = new ToolStripMenuItem();
            CntxtItemMoveDown               = new ToolStripMenuItem();
            CntxtItemShowConsumers          = new ToolStripMenuItem();
            CntxtItemShowProvidedInterfaces = new ToolStripMenuItem();
            CntxtItemShowRequiredInterfaces = new ToolStripMenuItem();
            _paritionToolStripMenuItem      = new ToolStripMenuItem();
            _cntxtMenuStripMatrixPanel      = new ContextMenuStrip(components);
            _showRelationsToolStripMenuItem = new ToolStripMenuItem();
            _showProvidersToolStripMenuItem = new ToolStripMenuItem();
            _showConsumersToolStripMenuItem = new ToolStripMenuItem();
            _splitContainer.Panel1.SuspendLayout();
            _splitContainer.Panel2.SuspendLayout();
            _splitContainer.SuspendLayout();
            _cntxtMenuStrip.SuspendLayout();
            _cntxtMenuStripMatrixPanel.SuspendLayout();
            SuspendLayout();
            //
            // _splitContainer
            //
            _splitContainer.BackColor  = SystemColors.ControlLight;
            _splitContainer.FixedPanel = FixedPanel.Panel1;
            _splitContainer.Location   = new Point(0, 0);
            _splitContainer.Name       = "_splitContainer";
            //
            // _splitContainer.Panel1
            //
            _splitContainer.Panel1.BackColor = SystemColors.Control;
            _splitContainer.Panel1.Controls.Add(_selector);
            //
            // _splitContainer.Panel2
            //
            _splitContainer.Panel2.BackColor = SystemColors.Control;
            _splitContainer.Panel2.Controls.Add(_matrix);
            _splitContainer.Size             = new Size(825, 289);
            _splitContainer.SplitterDistance = 265;
            _splitContainer.SplitterWidth    = 3;
            _splitContainer.TabIndex         = 2;
            _splitContainer.SplitterMoved   += SplitContainer1SplitterMoved;
            //
            // _selector
            //
            _selector.BackColor = SystemColors.Control;
            _selector.Font      = new Font("Segoe UI", 9F);
            _selector.ForeColor = SystemColors.ControlText;
            _selector.Location  = new Point(0, 3);
            _selector.Name      = "_selector";
            _selector.Size      = new Size(265, 216);
            _selector.TabIndex  = 0;
            //
            // _matrix
            //
            _matrix.AllowDrop = true;
            _matrix.BackColor = SystemColors.Control;
            _matrix.Font      = new Font("Segoe UI", 9F);
            _matrix.Location  = new Point(1, 3);
            _matrix.Name      = "_matrix";
            _matrix.Size      = new Size(501, 216);
            _matrix.TabIndex  = 0;
            //
            // _hScrollBar
            //
            _hScrollBar.Location = new Point(270, 292);
            _hScrollBar.Name     = "_hScrollBar";
            _hScrollBar.Size     = new Size(555, 17);
            _hScrollBar.TabIndex = 1;
            _hScrollBar.Scroll  += HScrollBar1Scroll;
            //
            // _vScrollBar
            //
            _vScrollBar.Location    = new Point(828, 0);
            _vScrollBar.Maximum     = 160;
            _vScrollBar.Name        = "_vScrollBar";
            _vScrollBar.Size        = new Size(17, 289);
            _vScrollBar.SmallChange = 10;
            _vScrollBar.TabIndex    = 3;
            _vScrollBar.Value       = 16;
            _vScrollBar.Scroll     += VScrollBar1Scroll;
            //
            // _cntxtMenuStrip
            //
            _cntxtMenuStrip.Font = new Font("Tahoma", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0);
            _cntxtMenuStrip.Items.AddRange(new ToolStripItem[] {
                CntxtItemMoveUp,
                CntxtItemMoveDown,
                _paritionToolStripMenuItem,
                CntxtItemShowConsumers,
                CntxtItemShowProvidedInterfaces,
                CntxtItemShowRequiredInterfaces
            });
            _cntxtMenuStrip.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow;
            _cntxtMenuStrip.RenderMode  = ToolStripRenderMode.Professional;
            _cntxtMenuStrip.Size        = new Size(153, 92);
            //
            // cntxtItemMoveUp
            //
            CntxtItemMoveUp.Enabled = false;
            CntxtItemMoveUp.Image   = Resources.UpArrow1;
            CntxtItemMoveUp.Name    = "CntxtItemMoveUp";
            CntxtItemMoveUp.Size    = new Size(152, 22);
            CntxtItemMoveUp.Text    = "Move Up";
            CntxtItemMoveUp.Click  += CntxtItemMoveUpClick;
            //
            // cntxtItemMoveDown
            //
            CntxtItemMoveDown.Enabled = false;
            CntxtItemMoveDown.Image   = Resources.DownArrow;
            CntxtItemMoveDown.Name    = "CntxtItemMoveDown";
            CntxtItemMoveDown.Size    = new Size(152, 22);
            CntxtItemMoveDown.Text    = "Move Down";
            CntxtItemMoveDown.Click  += CntxtItemMoveDownClick;

            //
            // CntxtItemShowConsumerElements
            //
            CntxtItemShowConsumers.Enabled = true;
            CntxtItemShowConsumers.Name    = "CntxtItemShowConsumers";
            CntxtItemShowConsumers.Size    = new Size(152, 22);
            CntxtItemShowConsumers.Text    = "Show Element Consumers";
            CntxtItemShowConsumers.Click  += ShowElementConsumersReportToolStripMenuItemClick;

            //
            // CntxtItemShowProviderElements
            //
            CntxtItemShowProvidedInterfaces.Enabled = true;
            CntxtItemShowProvidedInterfaces.Name    = "CntxtItemShowProvidedInterfaces";
            CntxtItemShowProvidedInterfaces.Size    = new Size(152, 22);
            CntxtItemShowProvidedInterfaces.Text    = "Show Element Provided Interface";
            CntxtItemShowProvidedInterfaces.Click  += ShowElementProvidedInterfacesReportToolStripMenuItemClick;

            //
            // CntxtItemShowRequiredElements
            //
            CntxtItemShowRequiredInterfaces.Enabled = true;
            CntxtItemShowRequiredInterfaces.Name    = "CntxtItemShowRequiredInterfaces";
            CntxtItemShowRequiredInterfaces.Size    = new Size(152, 22);
            CntxtItemShowRequiredInterfaces.Text    = "Show Element Required Interface";
            CntxtItemShowRequiredInterfaces.Click  += ShowInterfaceRequiredInterfacesReportToolStripMenuItemClick;

            //
            // paritionToolStripMenuItem
            //
            _paritionToolStripMenuItem.Enabled = false;
            _paritionToolStripMenuItem.Image   = Resources.Partition;
            _paritionToolStripMenuItem.Name    = "_paritionToolStripMenuItem";
            _paritionToolStripMenuItem.Size    = new Size(152, 22);
            _paritionToolStripMenuItem.Text    = "Partition";
            _paritionToolStripMenuItem.Click  += ParitionToolStripMenuItemClick;
            //
            // _cntxtMenuStripMatrixPanel
            //
            _cntxtMenuStripMatrixPanel.Items.AddRange(new ToolStripItem[] {
                _showRelationsToolStripMenuItem, _showConsumersToolStripMenuItem, _showProvidersToolStripMenuItem
            });
            _cntxtMenuStripMatrixPanel.Name = "_cntxtMenuStripMatrixPanel";
            _cntxtMenuStripMatrixPanel.Size = new Size(155, 26);
            //
            // showRelationsToolStripMenuItem
            //
            _showRelationsToolStripMenuItem.Name   = "_showRelationsToolStripMenuItem";
            _showRelationsToolStripMenuItem.Size   = new Size(154, 22);
            _showRelationsToolStripMenuItem.Text   = "Show Relations";
            _showRelationsToolStripMenuItem.Click += ShowRelationsToolStripMenuItemClick;
            //
            // showProvidersToolStripMenuItem
            //
            _showProvidersToolStripMenuItem.Name   = "_showProvidersToolStripMenuItem";
            _showProvidersToolStripMenuItem.Size   = new Size(154, 22);
            _showProvidersToolStripMenuItem.Text   = "Show Relation Providers";
            _showProvidersToolStripMenuItem.Click += ShowProvidersToolStripMenuItemClick;
            //
            // showConsumersToolStripMenuItem
            //
            _showConsumersToolStripMenuItem.Name   = "_showConsumersToolStripMenuItem";
            _showConsumersToolStripMenuItem.Size   = new Size(154, 22);
            _showConsumersToolStripMenuItem.Text   = "Show Relation Consumers";
            _showConsumersToolStripMenuItem.Click += ShowConsumersToolStripMenuItemClick;
            //
            // MatrixControl
            //
            Controls.Add(_vScrollBar);
            Controls.Add(_splitContainer);
            Controls.Add(_hScrollBar);
            DoubleBuffered  = true;
            Enabled         = false;
            Name            = "MatrixControl";
            Size            = new Size(848, 315);
            Resize         += MatrixControlResize;
            EnabledChanged += MatrixControlEnabledChanged;
            _splitContainer.Panel1.ResumeLayout(false);
            _splitContainer.Panel2.ResumeLayout(false);
            _splitContainer.ResumeLayout(false);
            _cntxtMenuStrip.ResumeLayout(false);
            _cntxtMenuStripMatrixPanel.ResumeLayout(false);
            ResumeLayout(false);
        }
示例#13
0
 private void InitializeComponent()
 {
     splitContainer1 = new SplitContainer();
     skillListBox    = new ListBox();
     groupBox1       = new GroupBox();
     x0B_NUD         = new NumericUpDown();
     label11         = new Label();
     label22         = new Label();
     x21_NUD         = new NumericUpDown();
     x1E_NUD         = new NumericUpDown();
     label25         = new Label();
     label23         = new Label();
     x20_NUD         = new NumericUpDown();
     x1F_NUD         = new NumericUpDown();
     label24         = new Label();
     x1D_NUD         = new NumericUpDown();
     x1A_NUD         = new NumericUpDown();
     x17_CoB         = new ComboBox();
     x1C_NUD         = new NumericUpDown();
     x19_NUD         = new NumericUpDown();
     x16_CoB         = new ComboBox();
     x1B_NUD         = new NumericUpDown();
     x18_NUD         = new NumericUpDown();
     x15_CoB         = new ComboBox();
     label21         = new Label();
     label20         = new Label();
     label19         = new Label();
     x14_CoB         = new ComboBox();
     label18         = new Label();
     x13_NUD         = new NumericUpDown();
     label17         = new Label();
     x12_NUD         = new NumericUpDown();
     label16         = new Label();
     x10_NUD         = new NumericUpDown();
     label15         = new Label();
     x0F_NUD         = new NumericUpDown();
     label14         = new Label();
     x0E_NUD         = new NumericUpDown();
     label13         = new Label();
     x0D_NUD         = new NumericUpDown();
     x0C_NUD         = new NumericUpDown();
     label12         = new Label();
     x0A_NUD         = new NumericUpDown();
     label10         = new Label();
     x08_CoB         = new ComboBox();
     label9          = new Label();
     x07_MAX_NUD     = new NumericUpDown();
     x07_MIN_NUD     = new NumericUpDown();
     label8          = new Label();
     x06_NUD         = new NumericUpDown();
     label7          = new Label();
     x05_NUD         = new NumericUpDown();
     label6          = new Label();
     x04_NUD         = new NumericUpDown();
     label5          = new Label();
     x03_NUD         = new NumericUpDown();
     label4          = new Label();
     x02_CoB         = new ComboBox();
     label3          = new Label();
     x01_CoB         = new ComboBox();
     label2          = new Label();
     x00_CoB         = new ComboBox();
     label1          = new Label();
     okButton        = new Button();
     cancelButton    = new Button();
     groupBox4       = new GroupBox();
     searchButton    = new Button();
     searchComboBox  = new ComboBox();
     searchTextBox   = new TextBox();
     splitContainer1.Panel1.SuspendLayout();
     splitContainer1.Panel2.SuspendLayout();
     splitContainer1.SuspendLayout();
     groupBox1.SuspendLayout();
     x0B_NUD.BeginInit();
     x21_NUD.BeginInit();
     x1E_NUD.BeginInit();
     x20_NUD.BeginInit();
     x1F_NUD.BeginInit();
     x1D_NUD.BeginInit();
     x1A_NUD.BeginInit();
     x1C_NUD.BeginInit();
     x19_NUD.BeginInit();
     x1B_NUD.BeginInit();
     x18_NUD.BeginInit();
     x13_NUD.BeginInit();
     x12_NUD.BeginInit();
     x10_NUD.BeginInit();
     x0F_NUD.BeginInit();
     x0E_NUD.BeginInit();
     x0D_NUD.BeginInit();
     x0C_NUD.BeginInit();
     x0A_NUD.BeginInit();
     x07_MAX_NUD.BeginInit();
     x07_MIN_NUD.BeginInit();
     x06_NUD.BeginInit();
     x05_NUD.BeginInit();
     x04_NUD.BeginInit();
     x03_NUD.BeginInit();
     groupBox4.SuspendLayout();
     SuspendLayout();
     splitContainer1.Dock     = DockStyle.Top;
     splitContainer1.Location = new Point(0, 0);
     splitContainer1.Name     = "splitContainer1";
     splitContainer1.Panel1.Controls.Add(groupBox4);
     splitContainer1.Panel1.Controls.Add(skillListBox);
     splitContainer1.Panel2.Controls.Add(groupBox1);
     splitContainer1.Panel2.Controls.Add(x1D_NUD);
     splitContainer1.Panel2.Controls.Add(x1A_NUD);
     splitContainer1.Panel2.Controls.Add(x17_CoB);
     splitContainer1.Panel2.Controls.Add(x1C_NUD);
     splitContainer1.Panel2.Controls.Add(x19_NUD);
     splitContainer1.Panel2.Controls.Add(x16_CoB);
     splitContainer1.Panel2.Controls.Add(x1B_NUD);
     splitContainer1.Panel2.Controls.Add(x18_NUD);
     splitContainer1.Panel2.Controls.Add(x15_CoB);
     splitContainer1.Panel2.Controls.Add(label21);
     splitContainer1.Panel2.Controls.Add(label20);
     splitContainer1.Panel2.Controls.Add(label19);
     splitContainer1.Panel2.Controls.Add(x14_CoB);
     splitContainer1.Panel2.Controls.Add(label18);
     splitContainer1.Panel2.Controls.Add(x13_NUD);
     splitContainer1.Panel2.Controls.Add(label17);
     splitContainer1.Panel2.Controls.Add(x12_NUD);
     splitContainer1.Panel2.Controls.Add(label16);
     splitContainer1.Panel2.Controls.Add(x10_NUD);
     splitContainer1.Panel2.Controls.Add(label15);
     splitContainer1.Panel2.Controls.Add(x0F_NUD);
     splitContainer1.Panel2.Controls.Add(label14);
     splitContainer1.Panel2.Controls.Add(x0E_NUD);
     splitContainer1.Panel2.Controls.Add(label13);
     splitContainer1.Panel2.Controls.Add(x0D_NUD);
     splitContainer1.Panel2.Controls.Add(x0C_NUD);
     splitContainer1.Panel2.Controls.Add(label12);
     splitContainer1.Panel2.Controls.Add(x0A_NUD);
     splitContainer1.Panel2.Controls.Add(label10);
     splitContainer1.Panel2.Controls.Add(x08_CoB);
     splitContainer1.Panel2.Controls.Add(label9);
     splitContainer1.Panel2.Controls.Add(x07_MAX_NUD);
     splitContainer1.Panel2.Controls.Add(x07_MIN_NUD);
     splitContainer1.Panel2.Controls.Add(label8);
     splitContainer1.Panel2.Controls.Add(x06_NUD);
     splitContainer1.Panel2.Controls.Add(label7);
     splitContainer1.Panel2.Controls.Add(x05_NUD);
     splitContainer1.Panel2.Controls.Add(label6);
     splitContainer1.Panel2.Controls.Add(x04_NUD);
     splitContainer1.Panel2.Controls.Add(label5);
     splitContainer1.Panel2.Controls.Add(x03_NUD);
     splitContainer1.Panel2.Controls.Add(label4);
     splitContainer1.Panel2.Controls.Add(x02_CoB);
     splitContainer1.Panel2.Controls.Add(label3);
     splitContainer1.Panel2.Controls.Add(x01_CoB);
     splitContainer1.Panel2.Controls.Add(label2);
     splitContainer1.Panel2.Controls.Add(x00_CoB);
     splitContainer1.Panel2.Controls.Add(label1);
     splitContainer1.Size             = new Size(0x224, 0x15f);
     splitContainer1.SplitterDistance = 0x85;
     splitContainer1.TabIndex         = 0;
     skillListBox.Dock = DockStyle.Top;
     skillListBox.FormattingEnabled = true;
     skillListBox.ItemHeight        = 12;
     skillListBox.Location          = new Point(0, 0);
     skillListBox.Name     = "skillListBox";
     skillListBox.Size     = new Size(0x85, 0x10c);
     skillListBox.TabIndex = 0;
     groupBox1.Controls.Add(x0B_NUD);
     groupBox1.Controls.Add(label11);
     groupBox1.Controls.Add(label22);
     groupBox1.Controls.Add(x21_NUD);
     groupBox1.Controls.Add(x1E_NUD);
     groupBox1.Controls.Add(label25);
     groupBox1.Controls.Add(label23);
     groupBox1.Controls.Add(x20_NUD);
     groupBox1.Controls.Add(x1F_NUD);
     groupBox1.Controls.Add(label24);
     groupBox1.Location = new Point(5, 0x11f);
     groupBox1.Name     = "groupBox1";
     groupBox1.Size     = new Size(0xf2, 0x38);
     groupBox1.TabIndex = 0x30;
     groupBox1.TabStop  = false;
     groupBox1.Text     = "Unknown Bytes";
     x0B_NUD.Location   = new Point(8, 30);
     int[] bits = new int[4];
     bits[0]          = 0xff;
     x0B_NUD.Maximum  = new decimal(bits);
     x0B_NUD.Name     = "x0B_NUD";
     x0B_NUD.Size     = new Size(40, 0x13);
     x0B_NUD.TabIndex = 1;
     label11.AutoSize = true;
     label11.Location = new Point(6, 15);
     label11.Name     = "label11";
     label11.Size     = new Size(0x19, 12);
     label11.TabIndex = 0;
     label11.Text     = "$0B";
     label22.AutoSize = true;
     label22.Location = new Point(0x34, 15);
     label22.Name     = "label22";
     label22.Size     = new Size(0x18, 12);
     label22.TabIndex = 2;
     label22.Text     = "$1E";
     x21_NUD.Location = new Point(0xc0, 30);
     int[] numArray2 = new int[4];
     numArray2[0]     = 0xff;
     x21_NUD.Maximum  = new decimal(numArray2);
     x21_NUD.Name     = "x21_NUD";
     x21_NUD.Size     = new Size(40, 0x13);
     x21_NUD.TabIndex = 9;
     x1E_NUD.Location = new Point(0x36, 30);
     int[] numArray3 = new int[4];
     numArray3[0]     = 0xff;
     x1E_NUD.Maximum  = new decimal(numArray3);
     x1E_NUD.Name     = "x1E_NUD";
     x1E_NUD.Size     = new Size(40, 0x13);
     x1E_NUD.TabIndex = 3;
     label25.AutoSize = true;
     label25.Location = new Point(190, 15);
     label25.Name     = "label25";
     label25.Size     = new Size(0x17, 12);
     label25.TabIndex = 8;
     label25.Text     = "$21";
     label23.AutoSize = true;
     label23.Location = new Point(0x62, 15);
     label23.Name     = "label23";
     label23.Size     = new Size(0x18, 12);
     label23.TabIndex = 4;
     label23.Text     = "$1F";
     x20_NUD.Location = new Point(0x92, 30);
     int[] numArray4 = new int[4];
     numArray4[0]     = 0xff;
     x20_NUD.Maximum  = new decimal(numArray4);
     x20_NUD.Name     = "x20_NUD";
     x20_NUD.Size     = new Size(40, 0x13);
     x20_NUD.TabIndex = 7;
     x1F_NUD.Location = new Point(100, 30);
     int[] numArray5 = new int[4];
     numArray5[0]     = 0xff;
     x1F_NUD.Maximum  = new decimal(numArray5);
     x1F_NUD.Name     = "x1F_NUD";
     x1F_NUD.Size     = new Size(40, 0x13);
     x1F_NUD.TabIndex = 5;
     label24.AutoSize = true;
     label24.Location = new Point(0x90, 15);
     label24.Name     = "label24";
     label24.Size     = new Size(0x17, 12);
     label24.TabIndex = 6;
     label24.Text     = "$20";
     x1D_NUD.Location = new Point(0x13c, 0xe8);
     x1D_NUD.Name     = "x1D_NUD";
     x1D_NUD.Size     = new Size(40, 0x13);
     x1D_NUD.TabIndex = 0x2f;
     x1A_NUD.Location = new Point(270, 0xe8);
     int[] numArray6 = new int[4];
     numArray6[0]    = 6;
     x1A_NUD.Maximum = new decimal(numArray6);
     int[] numArray7 = new int[4];
     numArray7[0]              = 6;
     numArray7[3]              = -2147483648;
     x1A_NUD.Minimum           = new decimal(numArray7);
     x1A_NUD.Name              = "x1A_NUD";
     x1A_NUD.Size              = new Size(40, 0x13);
     x1A_NUD.TabIndex          = 0x2e;
     x17_CoB.DropDownStyle     = ComboBoxStyle.DropDownList;
     x17_CoB.FormattingEnabled = true;
     x17_CoB.Location          = new Point(0xb8, 0xe7);
     x17_CoB.Name              = "x17_CoB";
     x17_CoB.Size              = new Size(80, 20);
     x17_CoB.TabIndex          = 0x2d;
     x1C_NUD.Location          = new Point(0x13c, 0xce);
     x1C_NUD.Name              = "x1C_NUD";
     x1C_NUD.Size              = new Size(40, 0x13);
     x1C_NUD.TabIndex          = 0x2c;
     x19_NUD.Location          = new Point(270, 0xce);
     int[] numArray8 = new int[4];
     numArray8[0]    = 6;
     x19_NUD.Maximum = new decimal(numArray8);
     int[] numArray9 = new int[4];
     numArray9[0]              = 6;
     numArray9[3]              = -2147483648;
     x19_NUD.Minimum           = new decimal(numArray9);
     x19_NUD.Name              = "x19_NUD";
     x19_NUD.Size              = new Size(40, 0x13);
     x19_NUD.TabIndex          = 0x2b;
     x16_CoB.DropDownStyle     = ComboBoxStyle.DropDownList;
     x16_CoB.FormattingEnabled = true;
     x16_CoB.Location          = new Point(0xb8, 0xcd);
     x16_CoB.Name              = "x16_CoB";
     x16_CoB.Size              = new Size(80, 20);
     x16_CoB.TabIndex          = 0x2a;
     x1B_NUD.Location          = new Point(0x13c, 180);
     x1B_NUD.Name              = "x1B_NUD";
     x1B_NUD.Size              = new Size(40, 0x13);
     x1B_NUD.TabIndex          = 0x29;
     x18_NUD.Location          = new Point(270, 180);
     int[] numArray10 = new int[4];
     numArray10[0]   = 6;
     x18_NUD.Maximum = new decimal(numArray10);
     int[] numArray11 = new int[4];
     numArray11[0]             = 6;
     numArray11[3]             = -2147483648;
     x18_NUD.Minimum           = new decimal(numArray11);
     x18_NUD.Name              = "x18_NUD";
     x18_NUD.Size              = new Size(40, 0x13);
     x18_NUD.TabIndex          = 40;
     x15_CoB.DropDownStyle     = ComboBoxStyle.DropDownList;
     x15_CoB.FormattingEnabled = true;
     x15_CoB.Location          = new Point(0xb8, 0xb3);
     x15_CoB.Name              = "x15_CoB";
     x15_CoB.Size              = new Size(80, 20);
     x15_CoB.TabIndex          = 0x27;
     label21.AutoSize          = true;
     label21.Location          = new Point(0x13a, 0xa4);
     label21.Name              = "label21";
     label21.Size              = new Size(0x1d, 12);
     label21.TabIndex          = 0x26;
     label21.Text              = "% Chance";
     label20.AutoSize          = true;
     label20.Location          = new Point(0x10c, 0xa4);
     label20.Name              = "label20";
     label20.Size              = new Size(0x29, 12);
     label20.TabIndex          = 0x25;
     label20.Text              = "Stages";
     label19.AutoSize          = true;
     label19.Location          = new Point(0xb6, 0xa4);
     label19.Name              = "label19";
     label19.Size              = new Size(0x1d, 12);
     label19.TabIndex          = 0x24;
     label19.Text              = "Stat";
     x14_CoB.DropDownStyle     = ComboBoxStyle.DropDownList;
     x14_CoB.FormattingEnabled = true;
     x14_CoB.Location          = new Point(0xf1, 0x56);
     x14_CoB.Name              = "x14_CoB";
     x14_CoB.Size              = new Size(0x9e, 20);
     x14_CoB.TabIndex          = 0x1f;
     label18.AutoSize          = true;
     label18.Location          = new Point(0xb6, 0x59);
     label18.Name              = "label18";
     label18.Size              = new Size(0x1d, 12);
     label18.TabIndex          = 30;
     label18.Text              = "Targeting";
     x13_NUD.Location          = new Point(90, 0x106);
     int[] numArray12 = new int[4];
     numArray12[0]    = 100;
     numArray12[3]    = -2147483648;
     x13_NUD.Minimum  = new decimal(numArray12);
     x13_NUD.Name     = "x13_NUD";
     x13_NUD.Size     = new Size(50, 0x13);
     x13_NUD.TabIndex = 0x17;
     label17.AutoSize = true;
     label17.Location = new Point(3, 0x108);
     label17.Name     = "label17";
     label17.Size     = new Size(0x4f, 12);
     label17.TabIndex = 0x16;
     label17.Text     = "Quantity";
     x12_NUD.Location = new Point(90, 0xed);
     int[] numArray13 = new int[4];
     numArray13[0]    = 100;
     numArray13[3]    = -2147483648;
     x12_NUD.Minimum  = new decimal(numArray13);
     x12_NUD.Name     = "x12_NUD";
     x12_NUD.Size     = new Size(50, 0x13);
     x12_NUD.TabIndex = 0x15;
     label16.AutoSize = true;
     label16.Location = new Point(3, 0xef);
     label16.Name     = "label16";
     label16.Size     = new Size(0x51, 12);
     label16.TabIndex = 20;
     label16.Text     = "DMG Heal %";
     x10_NUD.Location = new Point(90, 0xd4);
     int[] numArray14 = new int[4];
     numArray14[0]    = 0x181;
     x10_NUD.Maximum  = new decimal(numArray14);
     x10_NUD.Name     = "x10_NUD";
     x10_NUD.Size     = new Size(40, 0x13);
     x10_NUD.TabIndex = 0x13;
     label15.AutoSize = true;
     label15.Location = new Point(3, 0xd6);
     label15.Name     = "label15";
     label15.Size     = new Size(0x38, 12);
     label15.TabIndex = 0x12;
     label15.Text     = "Effect Code";
     x0F_NUD.Location = new Point(90, 0xbb);
     x0F_NUD.Name     = "x0F_NUD";
     x0F_NUD.Size     = new Size(40, 0x13);
     x0F_NUD.TabIndex = 0x11;
     label14.AutoSize = true;
     label14.Location = new Point(3, 0xbd);
     label14.Name     = "label14";
     label14.Size     = new Size(0x2f, 12);
     label14.TabIndex = 0x10;
     label14.Text     = "Flinch %";
     x0E_NUD.Location = new Point(90, 0xa2);
     int[] numArray15 = new int[4];
     numArray15[0]    = 6;
     x0E_NUD.Maximum  = new decimal(numArray15);
     x0E_NUD.Name     = "x0E_NUD";
     x0E_NUD.Size     = new Size(40, 0x13);
     x0E_NUD.TabIndex = 15;
     label13.AutoSize = true;
     label13.Location = new Point(3, 0xa4);
     label13.Name     = "label13";
     label13.Size     = new Size(0x29, 12);
     label13.TabIndex = 14;
     label13.Text     = "+Crit Stage";
     x0D_NUD.Location = new Point(0x88, 0x89);
     int[] numArray16 = new int[4];
     numArray16[0]    = 15;
     x0D_NUD.Maximum  = new decimal(numArray16);
     x0D_NUD.Name     = "x0D_NUD";
     x0D_NUD.Size     = new Size(40, 0x13);
     x0D_NUD.TabIndex = 13;
     x0C_NUD.Location = new Point(90, 0x89);
     int[] numArray17 = new int[4];
     numArray17[0]             = 15;
     x0C_NUD.Maximum           = new decimal(numArray17);
     x0C_NUD.Name              = "x0C_NUD";
     x0C_NUD.Size              = new Size(40, 0x13);
     x0C_NUD.TabIndex          = 12;
     label12.AutoSize          = true;
     label12.Location          = new Point(3, 0x8b);
     label12.Name              = "label12";
     label12.Size              = new Size(0x2c, 12);
     label12.TabIndex          = 11;
     label12.Text              = "Trap Turns";
     x0A_NUD.Location          = new Point(0xf1, 0x89);
     x0A_NUD.Name              = "x0A_NUD";
     x0A_NUD.Size              = new Size(40, 0x13);
     x0A_NUD.TabIndex          = 0x23;
     label10.AutoSize          = true;
     label10.Location          = new Point(0xb6, 0x8b);
     label10.Name              = "label10";
     label10.Size              = new Size(0x35, 12);
     label10.TabIndex          = 0x22;
     label10.Text              = "Inflict %";
     x08_CoB.DropDownStyle     = ComboBoxStyle.DropDownList;
     x08_CoB.FormattingEnabled = true;
     x08_CoB.Location          = new Point(0xf1, 0x6f);
     x08_CoB.Name              = "x08_CoB";
     x08_CoB.Size              = new Size(0x79, 20);
     x08_CoB.TabIndex          = 0x21;
     label9.AutoSize           = true;
     label9.Location           = new Point(0xb6, 0x72);
     label9.Name          = "label9";
     label9.Size          = new Size(0x35, 12);
     label9.TabIndex      = 0x20;
     label9.Text          = "Inflict";
     x07_MAX_NUD.Location = new Point(0x88, 0x70);
     int[] numArray18 = new int[4];
     numArray18[0]        = 15;
     x07_MAX_NUD.Maximum  = new decimal(numArray18);
     x07_MAX_NUD.Name     = "x07_MAX_NUD";
     x07_MAX_NUD.Size     = new Size(40, 0x13);
     x07_MAX_NUD.TabIndex = 10;
     x07_MIN_NUD.Location = new Point(90, 0x70);
     int[] numArray19 = new int[4];
     numArray19[0]        = 15;
     x07_MIN_NUD.Maximum  = new decimal(numArray19);
     x07_MIN_NUD.Name     = "x07_MIN_NUD";
     x07_MIN_NUD.Size     = new Size(40, 0x13);
     x07_MIN_NUD.TabIndex = 9;
     label8.AutoSize      = true;
     label8.Location      = new Point(3, 0x72);
     label8.Name          = "label8";
     label8.Size          = new Size(0x35, 12);
     label8.TabIndex      = 8;
     label8.Text          = "Multihit";
     x06_NUD.Location     = new Point(90, 0x57);
     int[] numArray20 = new int[4];
     numArray20[0]   = 5;
     x06_NUD.Maximum = new decimal(numArray20);
     int[] numArray21 = new int[4];
     numArray21[0]    = 7;
     numArray21[3]    = -2147483648;
     x06_NUD.Minimum  = new decimal(numArray21);
     x06_NUD.Name     = "x06_NUD";
     x06_NUD.Size     = new Size(40, 0x13);
     x06_NUD.TabIndex = 7;
     label7.AutoSize  = true;
     label7.Location  = new Point(3, 0x59);
     label7.Name      = "label7";
     label7.Size      = new Size(0x29, 12);
     label7.TabIndex  = 6;
     label7.Text      = "Priority";
     x05_NUD.Location = new Point(90, 0x3e);
     int[] numArray22 = new int[4];
     numArray22[0]    = 40;
     x05_NUD.Maximum  = new decimal(numArray22);
     x05_NUD.Name     = "x05_NUD";
     x05_NUD.Size     = new Size(40, 0x13);
     x05_NUD.TabIndex = 5;
     label6.AutoSize  = true;
     label6.Location  = new Point(3, 0x40);
     label6.Name      = "label6";
     label6.Size      = new Size(0x13, 12);
     label6.TabIndex  = 4;
     label6.Text      = "PP";
     x04_NUD.Location = new Point(90, 0x25);
     int[] numArray23 = new int[4];
     numArray23[0]    = 0x65;
     x04_NUD.Maximum  = new decimal(numArray23);
     x04_NUD.Name     = "x04_NUD";
     x04_NUD.Size     = new Size(40, 0x13);
     x04_NUD.TabIndex = 3;
     label5.AutoSize  = true;
     label5.Location  = new Point(3, 0x27);
     label5.Name      = "label5";
     label5.Size      = new Size(0x1d, 12);
     label5.TabIndex  = 2;
     label5.Text      = "Accuracy";
     x03_NUD.Location = new Point(90, 12);
     int[] numArray24 = new int[4];
     numArray24[0]                        = 0xff;
     x03_NUD.Maximum                      = new decimal(numArray24);
     x03_NUD.Name                         = "x03_NUD";
     x03_NUD.Size                         = new Size(40, 0x13);
     x03_NUD.TabIndex                     = 1;
     label4.AutoSize                      = true;
     label4.Location                      = new Point(3, 14);
     label4.Name                          = "label4";
     label4.Size                          = new Size(0x1d, 12);
     label4.TabIndex                      = 0;
     label4.Text                          = "Base Power";
     x02_CoB.DropDownStyle                = ComboBoxStyle.DropDownList;
     x02_CoB.FormattingEnabled            = true;
     x02_CoB.Location                     = new Point(0xf1, 0x3d);
     x02_CoB.Name                         = "x02_CoB";
     x02_CoB.Size                         = new Size(0x9e, 20);
     x02_CoB.TabIndex                     = 0x1d;
     label3.AutoSize                      = true;
     label3.Location                      = new Point(0xb6, 0x40);
     label3.Name                          = "label3";
     label3.Size                          = new Size(0x1d, 12);
     label3.TabIndex                      = 0x1c;
     label3.Text                          = "Class";
     x01_CoB.DropDownStyle                = ComboBoxStyle.DropDownList;
     x01_CoB.FormattingEnabled            = true;
     x01_CoB.Location                     = new Point(0xf1, 0x24);
     x01_CoB.Name                         = "x01_CoB";
     x01_CoB.Size                         = new Size(0x9e, 20);
     x01_CoB.TabIndex                     = 0x1b;
     label2.AutoSize                      = true;
     label2.Location                      = new Point(0xb6, 0x27);
     label2.Name                          = "label2";
     label2.Size                          = new Size(0x1d, 12);
     label2.TabIndex                      = 0x1a;
     label2.Text                          = "Category";
     x00_CoB.DropDownStyle                = ComboBoxStyle.DropDownList;
     x00_CoB.FormattingEnabled            = true;
     x00_CoB.Location                     = new Point(0xf1, 11);
     x00_CoB.Name                         = "x00_CoB";
     x00_CoB.Size                         = new Size(0x9e, 20);
     x00_CoB.TabIndex                     = 0x19;
     label1.AutoSize                      = true;
     label1.Location                      = new Point(0xb6, 14);
     label1.Name                          = "label1";
     label1.Size                          = new Size(0x9e, 12);
     label1.TabIndex                      = 0x18;
     label1.Text                          = "Type";
     okButton.Anchor                      = AnchorStyles.Right | AnchorStyles.Bottom;
     okButton.Location                    = new Point(380, 0x165);
     okButton.Name                        = "okButton";
     okButton.Size                        = new Size(0x4b, 0x17);
     okButton.TabIndex                    = 1;
     okButton.Text                        = "OK";
     okButton.UseVisualStyleBackColor     = true;
     okButton.Click                      += okButton_Click;
     cancelButton.Anchor                  = AnchorStyles.Right | AnchorStyles.Bottom;
     cancelButton.DialogResult            = DialogResult.Cancel;
     cancelButton.Location                = new Point(0x1cd, 0x165);
     cancelButton.Name                    = "cancelButton";
     cancelButton.Size                    = new Size(0x4b, 0x17);
     cancelButton.TabIndex                = 2;
     cancelButton.Text                    = "Cancel";
     cancelButton.UseVisualStyleBackColor = true;
     cancelButton.Click                  += cancelButton_Click;
     groupBox4.Controls.Add(searchButton);
     groupBox4.Controls.Add(searchComboBox);
     groupBox4.Controls.Add(searchTextBox);
     groupBox4.Dock        = DockStyle.Bottom;
     groupBox4.Location    = new Point(0, 0x110);
     groupBox4.Name        = "groupBox4";
     groupBox4.Size        = new Size(0x85, 0x4f);
     groupBox4.TabIndex    = 5;
     groupBox4.TabStop     = false;
     groupBox4.Text        = "Filter";
     searchButton.Location = new Point(6, 0x2c);
     searchButton.Name     = "searchButton";
     searchButton.Size     = new Size(0x7c, 0x17);
     searchButton.TabIndex = 2;
     searchButton.Text     = "Search";
     searchButton.UseVisualStyleBackColor = true;
     searchButton.Click              += searchButton_Click;
     searchComboBox.DropDownStyle     = ComboBoxStyle.DropDownList;
     searchComboBox.FormattingEnabled = true;
     searchComboBox.Items.AddRange(new object[] { "Begins with", "Includes", "Ends with" });
     searchComboBox.Location = new Point(0x37, 0x11);
     searchComboBox.Name     = "searchComboBox";
     searchComboBox.Size     = new Size(0x4b, 20);
     searchComboBox.TabIndex = 1;
     searchTextBox.Location  = new Point(6, 0x12);
     searchTextBox.Name      = "searchTextBox";
     searchTextBox.Size      = new Size(0x2b, 0x13);
     searchTextBox.TabIndex  = 0;
     AutoScaleDimensions     = new SizeF(6f, 12f);
     AutoScaleMode           = AutoScaleMode.Font;
     ClientSize = new Size(0x224, 0x188);
     Controls.Add(cancelButton);
     Controls.Add(okButton);
     Controls.Add(splitContainer1);
     FormBorderStyle = FormBorderStyle.FixedSingle;
     MaximizeBox     = false;
     Name            = "SkillForm";
     StartPosition   = FormStartPosition.CenterParent;
     Text            = "Move Editor";
     splitContainer1.Panel1.ResumeLayout(false);
     splitContainer1.Panel2.ResumeLayout(false);
     splitContainer1.Panel2.PerformLayout();
     splitContainer1.ResumeLayout(false);
     groupBox1.ResumeLayout(false);
     groupBox1.PerformLayout();
     x0B_NUD.EndInit();
     x21_NUD.EndInit();
     x1E_NUD.EndInit();
     x20_NUD.EndInit();
     x1F_NUD.EndInit();
     x1D_NUD.EndInit();
     x1A_NUD.EndInit();
     x1C_NUD.EndInit();
     x19_NUD.EndInit();
     x1B_NUD.EndInit();
     x18_NUD.EndInit();
     x13_NUD.EndInit();
     x12_NUD.EndInit();
     x10_NUD.EndInit();
     x0F_NUD.EndInit();
     x0E_NUD.EndInit();
     x0D_NUD.EndInit();
     x0C_NUD.EndInit();
     x0A_NUD.EndInit();
     x07_MAX_NUD.EndInit();
     x07_MIN_NUD.EndInit();
     x06_NUD.EndInit();
     x05_NUD.EndInit();
     x04_NUD.EndInit();
     x03_NUD.EndInit();
     groupBox4.ResumeLayout(false);
     groupBox4.PerformLayout();
     ResumeLayout(false);
 }
示例#14
0
        private void LayoutFormKinskyDesktop()
        {
            SuspendLayout();
            SplitContainer.SuspendLayout();
            SplitContainer.Panel1.SuspendLayout();
            SplitContainer.Panel2.SuspendLayout();

            float halfWidth = ClientRectangle.Width * 0.5f;

            if (!iUiOptions.MiniMode)
            {
                // header layout
                ButtonCloseWin.Location    = new Point(ClientRectangle.Width - kRightEdgeFiller.Width - 5 - ButtonCloseWin.Width, ButtonCloseWin.Location.Y);
                ButtonMaximiseWin.Location = new Point(ButtonCloseWin.Location.X - ButtonMaximiseWin.Width, ButtonMaximiseWin.Location.Y);
                ButtonMinimiseWin.Location = new Point(ButtonMaximiseWin.Location.X - ButtonMinimiseWin.Width, ButtonMinimiseWin.Location.Y);
                ButtonMiniWin.Location     = new Point(ButtonMinimiseWin.Location.X - ButtonMiniWin.Width, ButtonMiniWin.Location.Y);

                ButtonStandby.Location   = new Point(ClientRectangle.Width - kRightEdgeFiller.Width - ButtonStandby.Width, ButtonStandby.Location.Y);
                ButtonWasteBin.Location  = new Point(ButtonStandby.Location.X - ButtonWasteBin.Width, ButtonWasteBin.Location.Y);
                ButtonSave.Location      = new Point(ButtonWasteBin.Location.X - ButtonSave.Width, ButtonSave.Location.Y);
                ButtonShuffle.Location   = new Point(ButtonSave.Location.X - ButtonShuffle.Width, ButtonShuffle.Location.Y);
                ButtonRepeat.Location    = new Point(ButtonShuffle.Location.X - ButtonRepeat.Width, ButtonRepeat.Location.Y);
                ButtonReceivers.Location = new Point(ButtonRepeat.Location.X - ButtonReceivers.Width, ButtonReceivers.Location.Y);
                PanelBreadcrumb.Width    = ButtonReceivers.Location.X - (ButtonUp.Location.X + ButtonUp.Width);

                PanelTrackInfo.Location = new Point(PanelBreadcrumb.Location.X, 9);
                PanelTrackInfo.Size     = new Size(PanelBreadcrumb.Width, 60);

                ButtonRoomSelector.Width      = (int)(halfWidth - kLeftEdgeFiller.Width);
                ButtonSourceSelector.Location = new Point(ButtonRoomSelector.Location.X + ButtonRoomSelector.Width, ButtonSourceSelector.Location.Y);
                ButtonSourceSelector.Width    = ClientRectangle.Width - kLeftEdgeFiller.Width - ButtonRoomSelector.Width - kRightEdgeFiller.Width;

                // middle layout
                int height = ClientRectangle.Height - kHeaderLeft.Height - kFooterLeft.Height;// -ButtonRoomSelector.Height;
                SplitContainer.Location = new Point(SplitContainer.Location.X, ButtonRoomSelector.Bottom);
                SplitContainer.Size     = new Size(ClientRectangle.Width - kLeftEdgeFiller.Width - kRightEdgeFiller.Width, height);
                iViewStatus.Location    = new Point(0, 0);
                iViewStatus.Size        = new Size(ClientRectangle.Width, ClientRectangle.Height - kFooterLeft.Height);

                // footer layout
                PanelSizer.Location = new Point(ClientRectangle.Width - PanelSizer.Width, ClientRectangle.Height - PanelSizer.Height);

                ThreekArrayControl.Size       = new System.Drawing.Size(170, 100);
                ThreekArrayControl.Location   = new Point((int)(halfWidth - (ThreekArrayControl.Width * 0.5f)), ClientRectangle.Height - ThreekArrayControl.Height);
                RotaryControlTracker.Location = new Point(ThreekArrayControl.Location.X - RotaryControlTracker.Width, ClientRectangle.Height - RotaryControlTracker.Height);
                RotaryControlVolume.Location  = new Point(ThreekArrayControl.Location.X + ThreekArrayControl.Width, ClientRectangle.Height - RotaryControlVolume.Height);

                RockerControlTracker.Location = new Point(RotaryControlTracker.Location.X, RotaryControlTracker.Location.Y);
                RockerControlVolume.Location  = new Point(RotaryControlVolume.Location.X, RotaryControlVolume.Location.Y);

                ButtonLogo.Location = new Point(ButtonStandby.Location.X - ButtonLogo.Width, ClientRectangle.Height - ButtonLogo.Height - 20);
            }
            else
            {
                ButtonExitKompact.Location = new Point(ClientRectangle.Width - kRightEdgeFiller.Width - ButtonExitKompact.Width, 5);
                ButtonMinimise.Location    = new Point(ButtonExitKompact.Location.X - ButtonMinimise.Width, 5);
                PanelSizer.Location        = new Point(ClientRectangle.Width - PanelSizer.Width, ClientRectangle.Height - PanelSizer.Height);

                RotaryControlVolume.Location  = new Point(PanelSizer.Location.X - RotaryControlVolume.Width, ClientRectangle.Height - RotaryControlVolume.Height);
                ThreekArrayControl.Size       = new System.Drawing.Size(170, 100);
                ThreekArrayControl.Location   = new Point(RotaryControlVolume.Location.X - ThreekArrayControl.Width, ClientRectangle.Height - ThreekArrayControl.Height);
                RotaryControlTracker.Location = new Point(ThreekArrayControl.Location.X - RotaryControlTracker.Width, ClientRectangle.Height - RotaryControlTracker.Height);

                RockerControlTracker.Location = new Point(RotaryControlTracker.Location.X, RotaryControlTracker.Location.Y);
                RockerControlVolume.Location  = new Point(RotaryControlVolume.Location.X, RotaryControlVolume.Location.Y);

                PanelTrackInfo.Location = new Point(PanelSizer.Width, 10);
                PanelTrackInfo.Size     = new Size(RotaryControlTracker.Location.X - PanelTrackInfo.Location.X, 80);
            }

            SplitContainer.Panel1.ResumeLayout();
            SplitContainer.Panel2.ResumeLayout();
            SplitContainer.ResumeLayout();
            ResumeLayout();

            Invalidate();
        }
示例#15
0
        //Создание табличных лэайутов для демонстрации массивов
        private void CreateFlowLayout(
            SplitContainer container,      //Куда добавить созданный лэайут
            out List <DataGridView> grids, //Выходной список созданных таблиц
            out List <Label> labels,       //Выходной список созданных названий альтернатив
            int gridCount,
            int gridRowCount,              //Число строк в таблицах
            int gridCollCount)             //Число столбцов в таблицах
        {
            var flowLayout = new FlowLayoutPanel();

            flowLayout.AutoScroll = true;

            flowLayout.SuspendLayout();
            container.SuspendLayout();
            SuspendLayout();

            flowLayout.Anchor = ((((AnchorStyles.Top | AnchorStyles.Bottom)
                                   | AnchorStyles.Left)
                                  | AnchorStyles.Right));
            flowLayout.BorderStyle = BorderStyle.FixedSingle;
            flowLayout.Dock        = DockStyle.Fill;
            flowLayout.AutoSize    = true;

            grids  = new List <DataGridView>();
            labels = new List <Label>();


            for (int i = 0; i < gridCount; i++)
            {
                var gridTable = CreateGridTable(gridCollCount, gridRowCount); //Создаём таблицу с матрицей

                grids.Add(gridTable);                                         //Сохраняем таблицу для дальнейшего изменения

                var label = new Label();
                label.Text      = "Матрица попарных сравнений\r\nдля " + $"Критерий {i + 1} = ";
                label.TextAlign = ContentAlignment.MiddleCenter;
                label.Dock      = DockStyle.Fill;
                labels.Add(label);//Сохраняем название для дальнейшего изменения

                var table = new TableLayoutPanel();
                table.RowCount    = 1;
                table.ColumnCount = 2;
                table.AutoSize    = true;
                table.Controls.Add(label, 0, 0);
                table.Controls.Add(gridTable, 1, 0);
                table.BackColor = Color.DarkGray;

                gridTable.Size = gridTable.Parent.Size;

                flowLayout.Controls.Add(table);//Добавляем в лэйаут
            }

            container.Panel2.Controls.Clear();
            container.Panel2.Controls.Add(flowLayout);

            buttonFillData.Visible  = true;
            buttonFillCrits.Visible = true;
            buttonFillVars.Visible  = true;

            flowLayout.ResumeLayout(false);
            flowLayout.PerformLayout();

            container.ResumeLayout(false);
            container.PerformLayout();

            ResumeLayout(false);
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     _Components          = new System.ComponentModel.Container();
     _TopLayoutPanel      = new System.Windows.Forms.Panel();
     _ToolStrip           = new System.Windows.Forms.ToolStrip();
     _NewTaskSplitButton  = new System.Windows.Forms.ToolStripSplitButton();
     _NewTaskMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     _NewFolderMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     _SortBySplitButton   = new System.Windows.Forms.ToolStripSplitButton();
     _PriorityMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     _CompletedMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     _DescriptionMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     _SplitContainer      = new System.Windows.Forms.SplitContainer();
     _TaskTreeView        = new Genetibase.NuGenTaskList.NuGenTaskTreeView();
     _TaskEditBox         = new Genetibase.NuGenTaskList.NuGenTaskEditBox();
     _TopLayoutPanel.SuspendLayout();
     _ToolStrip.SuspendLayout();
     _SplitContainer.Panel1.SuspendLayout();
     _SplitContainer.Panel2.SuspendLayout();
     _SplitContainer.SuspendLayout();
     this.SuspendLayout();
     //
     // topLayoutPanel
     //
     _TopLayoutPanel.Controls.Add(_ToolStrip);
     _TopLayoutPanel.Dock     = System.Windows.Forms.DockStyle.Top;
     _TopLayoutPanel.Location = new System.Drawing.Point(0, 0);
     _TopLayoutPanel.Name     = "topLayoutPanel";
     _TopLayoutPanel.Size     = new System.Drawing.Size(265, 27);
     _TopLayoutPanel.TabIndex = 0;
     //
     // toolStrip
     //
     _ToolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
     _ToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         _NewTaskSplitButton,
         _SortBySplitButton
     });
     _ToolStrip.Location   = new System.Drawing.Point(0, 0);
     _ToolStrip.Name       = "toolStrip";
     _ToolStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
     _ToolStrip.Size       = new System.Drawing.Size(265, 25);
     _ToolStrip.TabIndex   = 0;
     _ToolStrip.Text       = "toolStrip1";
     //
     // newTaskSplitButton
     //
     _NewTaskSplitButton.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         _NewTaskMenuItem,
         _NewFolderMenuItem
     });
     _NewTaskSplitButton.Image = global::Genetibase.NuGenTaskList.Properties.Resources.Create_New;
     _NewTaskSplitButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     _NewTaskSplitButton.Name         = "newTaskSplitButton";
     _NewTaskSplitButton.Size         = new System.Drawing.Size(85, 22);
     _NewTaskSplitButton.Text         = "New &Task";
     _NewTaskSplitButton.ButtonClick += new System.EventHandler(_NewTaskMenuItem_Click);
     //
     // newTaskMenuItem
     //
     _NewTaskMenuItem.Image  = global::Genetibase.NuGenTaskList.Properties.Resources.Create_New;
     _NewTaskMenuItem.Name   = "newTaskMenuItem";
     _NewTaskMenuItem.Size   = new System.Drawing.Size(139, 22);
     _NewTaskMenuItem.Text   = "New &Task";
     _NewTaskMenuItem.Click += new System.EventHandler(_NewTaskMenuItem_Click);
     //
     // newFolderMenuItem
     //
     _NewFolderMenuItem.Image  = global::Genetibase.NuGenTaskList.Properties.Resources.Create_New_Folder;
     _NewFolderMenuItem.Name   = "newFolderMenuItem";
     _NewFolderMenuItem.Size   = new System.Drawing.Size(139, 22);
     _NewFolderMenuItem.Text   = "New &Folder";
     _NewFolderMenuItem.Click += new System.EventHandler(_NewFolderMenuItem_Click);
     //
     // sortBySplitButton
     //
     _SortBySplitButton.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         _PriorityMenuItem,
         _CompletedMenuItem,
         _DescriptionMenuItem
     });
     _SortBySplitButton.Image = global::Genetibase.NuGenTaskList.Properties.Resources.Sort_AZ;
     _SortBySplitButton.ImageTransparentColor = System.Drawing.Color.White;
     _SortBySplitButton.Name = "sortBySplitButton";
     _SortBySplitButton.Size = new System.Drawing.Size(74, 22);
     _SortBySplitButton.Text = "&Sort By";
     //
     // priorityMenuItem
     //
     _PriorityMenuItem.Image  = global::Genetibase.NuGenTaskList.Properties.Resources.Sort_Priority;
     _PriorityMenuItem.Name   = "priorityMenuItem";
     _PriorityMenuItem.Size   = new System.Drawing.Size(152, 22);
     _PriorityMenuItem.Text   = "&Priority";
     _PriorityMenuItem.Click += new System.EventHandler(_PriorityMenuItem_Click);
     //
     // completedMenuItem
     //
     _CompletedMenuItem.Image  = global::Genetibase.NuGenTaskList.Properties.Resources.Sort_Completed;
     _CompletedMenuItem.Name   = "completedMenuItem";
     _CompletedMenuItem.Size   = new System.Drawing.Size(152, 22);
     _CompletedMenuItem.Text   = "&Completed";
     _CompletedMenuItem.Click += new System.EventHandler(_CompletedMenuItem_Click);
     //
     // descriptionMenuItem
     //
     _DescriptionMenuItem.Image  = global::Genetibase.NuGenTaskList.Properties.Resources.Sort_Description;
     _DescriptionMenuItem.Name   = "descriptionMenuItem";
     _DescriptionMenuItem.Size   = new System.Drawing.Size(152, 22);
     _DescriptionMenuItem.Text   = "&Description";
     _DescriptionMenuItem.Click += new System.EventHandler(_DescriptionMenuItem_Click);
     //
     // splitContainer
     //
     _SplitContainer.Dock        = System.Windows.Forms.DockStyle.Fill;
     _SplitContainer.Location    = new System.Drawing.Point(0, 27);
     _SplitContainer.Name        = "splitContainer";
     _SplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer.Panel1
     //
     _SplitContainer.Panel1.Controls.Add(_TaskTreeView);
     //
     // splitContainer.Panel2
     //
     _SplitContainer.Panel2.Controls.Add(_TaskEditBox);
     _SplitContainer.Size             = new System.Drawing.Size(265, 373);
     _SplitContainer.SplitterDistance = 260;
     _SplitContainer.TabIndex         = 1;
     //
     // taskTreeView
     //
     _TaskTreeView.AllowDrop          = true;
     _TaskTreeView.CheckBoxes         = true;
     _TaskTreeView.Dock               = System.Windows.Forms.DockStyle.Fill;
     _TaskTreeView.HideSelection      = false;
     _TaskTreeView.ImageIndex         = 0;
     _TaskTreeView.Location           = new System.Drawing.Point(0, 0);
     _TaskTreeView.Name               = "taskTreeView";
     _TaskTreeView.SelectedImageIndex = 0;
     _TaskTreeView.ShowLines          = false;
     _TaskTreeView.Size               = new System.Drawing.Size(265, 165);
     _TaskTreeView.TabIndex           = 0;
     //
     // taskEditBox
     //
     _TaskEditBox.BackColor  = System.Drawing.SystemColors.Window;
     _TaskEditBox.Dock       = System.Windows.Forms.DockStyle.Fill;
     _TaskEditBox.Enabled    = false;
     _TaskEditBox.Location   = new System.Drawing.Point(0, 0);
     _TaskEditBox.Multiline  = true;
     _TaskEditBox.Name       = "taskEditBox";
     _TaskEditBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     _TaskEditBox.Size       = new System.Drawing.Size(265, 204);
     _TaskEditBox.TabIndex   = 0;
     //
     // NuGenTaskListUI
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(_SplitContainer);
     this.Controls.Add(_TopLayoutPanel);
     this.Name = "NuGenTaskListUI";
     this.Size = new System.Drawing.Size(265, 400);
     _TopLayoutPanel.ResumeLayout(false);
     _TopLayoutPanel.PerformLayout();
     _ToolStrip.ResumeLayout(false);
     _ToolStrip.PerformLayout();
     _SplitContainer.Panel1.ResumeLayout(false);
     _SplitContainer.Panel2.ResumeLayout(false);
     _SplitContainer.Panel2.PerformLayout();
     _SplitContainer.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#17
0
 private void InitializeComponent()
 {
     splitContainerEdit       = new SplitContainer();
     groupBox1                = new GroupBox();
     listViewWillChooseCourse = new ListView();
     columnHeaderID           = new ColumnHeader();
     columnHeaderName         = new ColumnHeader();
     columnHeaderAdd          = new ColumnHeader();
     groupBoxEdit             = new GroupBox();
     flowLayoutPanel2         = new FlowLayoutPanel();
     buttonAdd                = new Button();
     buttonOutport            = new Button();
     buttonImport             = new Button();
     buttonDel                = new Button();
     buttonClear              = new Button();
     buttonUp              = new Button();
     buttonDown            = new Button();
     buttonEdit            = new Button();
     buttonOK              = new Button();
     buttonCancel          = new Button();
     openFileDialogImport  = new OpenFileDialog();
     saveFileDialogOutport = new SaveFileDialog();
     splitContainerEdit.Panel1.SuspendLayout();
     splitContainerEdit.Panel2.SuspendLayout();
     splitContainerEdit.SuspendLayout();
     groupBox1.SuspendLayout();
     groupBoxEdit.SuspendLayout();
     flowLayoutPanel2.SuspendLayout();
     SuspendLayout();
     splitContainerEdit.Dock       = DockStyle.Fill;
     splitContainerEdit.FixedPanel = FixedPanel.Panel2;
     splitContainerEdit.Location   = new Point(0, 0);
     splitContainerEdit.Name       = "splitContainerEdit";
     splitContainerEdit.Panel1.Controls.Add(groupBox1);
     splitContainerEdit.Panel2.Controls.Add(groupBoxEdit);
     splitContainerEdit.Size             = new Size(483, 314);
     splitContainerEdit.SplitterDistance = 392;
     splitContainerEdit.TabIndex         = 3;
     groupBox1.Controls.Add(listViewWillChooseCourse);
     groupBox1.Dock     = DockStyle.Fill;
     groupBox1.Location = new Point(0, 0);
     groupBox1.Name     = "groupBox1";
     groupBox1.Size     = new Size(392, 314);
     groupBox1.TabIndex = 0;
     groupBox1.TabStop  = false;
     groupBox1.Text     = "选课表";
     listViewWillChooseCourse.Columns.AddRange(new ColumnHeader[]
     {
         columnHeaderID,
         columnHeaderName,
         columnHeaderAdd
     });
     listViewWillChooseCourse.Dock          = DockStyle.Fill;
     listViewWillChooseCourse.Font          = new Font("微软雅黑", 10.5f, FontStyle.Regular, GraphicsUnit.Point, 134);
     listViewWillChooseCourse.FullRowSelect = true;
     listViewWillChooseCourse.Location      = new Point(3, 17);
     listViewWillChooseCourse.Name          = "listViewWillChooseCourse";
     listViewWillChooseCourse.Size          = new Size(386, 294);
     listViewWillChooseCourse.TabIndex      = 4;
     listViewWillChooseCourse.UseCompatibleStateImageBehavior = false;
     listViewWillChooseCourse.View         = View.Details;
     listViewWillChooseCourse.DoubleClick += new EventHandler(buttonEdit_Click);
     columnHeaderID.Text    = "课程代码";
     columnHeaderID.Width   = 94;
     columnHeaderName.Text  = "课程名称";
     columnHeaderName.Width = 130;
     columnHeaderAdd.Text   = "备注";
     columnHeaderAdd.Width  = 158;
     groupBoxEdit.Controls.Add(flowLayoutPanel2);
     groupBoxEdit.Dock     = DockStyle.Fill;
     groupBoxEdit.Location = new Point(0, 0);
     groupBoxEdit.Name     = "groupBoxEdit";
     groupBoxEdit.Size     = new Size(87, 314);
     groupBoxEdit.TabIndex = 0;
     groupBoxEdit.TabStop  = false;
     groupBoxEdit.Text     = "编辑栏";
     flowLayoutPanel2.Controls.Add(buttonAdd);
     flowLayoutPanel2.Controls.Add(buttonOutport);
     flowLayoutPanel2.Controls.Add(buttonImport);
     flowLayoutPanel2.Controls.Add(buttonDel);
     flowLayoutPanel2.Controls.Add(buttonClear);
     flowLayoutPanel2.Controls.Add(buttonUp);
     flowLayoutPanel2.Controls.Add(buttonDown);
     flowLayoutPanel2.Controls.Add(buttonEdit);
     flowLayoutPanel2.Controls.Add(buttonOK);
     flowLayoutPanel2.Controls.Add(buttonCancel);
     flowLayoutPanel2.Dock          = DockStyle.Fill;
     flowLayoutPanel2.FlowDirection = FlowDirection.TopDown;
     flowLayoutPanel2.Location      = new Point(3, 17);
     flowLayoutPanel2.Name          = "flowLayoutPanel2";
     flowLayoutPanel2.Size          = new Size(81, 294);
     flowLayoutPanel2.TabIndex      = 5;
     buttonAdd.Location             = new Point(3, 3);
     buttonAdd.Name     = "buttonAdd";
     buttonAdd.Size     = new Size(75, 23);
     buttonAdd.TabIndex = 6;
     buttonAdd.Text     = "添加课程";
     buttonAdd.UseVisualStyleBackColor = true;
     buttonAdd.Click       += new EventHandler(buttonAdd_Click);
     buttonOutport.Location = new Point(3, 32);
     buttonOutport.Name     = "buttonOutport";
     buttonOutport.Size     = new Size(75, 23);
     buttonOutport.TabIndex = 10;
     buttonOutport.Text     = "导出课程";
     buttonOutport.UseVisualStyleBackColor = true;
     buttonOutport.Click  += new EventHandler(buttonOutport_Click);
     buttonImport.Location = new Point(3, 61);
     buttonImport.Name     = "buttonImport";
     buttonImport.Size     = new Size(75, 23);
     buttonImport.TabIndex = 9;
     buttonImport.Text     = "导入课程";
     buttonImport.UseVisualStyleBackColor = true;
     buttonImport.Click += new EventHandler(buttonImport_Click);
     buttonDel.Location  = new Point(3, 90);
     buttonDel.Name      = "buttonDel";
     buttonDel.Size      = new Size(75, 23);
     buttonDel.TabIndex  = 7;
     buttonDel.Text      = "删除课程";
     buttonDel.UseVisualStyleBackColor = true;
     buttonDel.Click     += new EventHandler(buttonDel_Click);
     buttonClear.Location = new Point(3, 119);
     buttonClear.Name     = "buttonClear";
     buttonClear.Size     = new Size(75, 23);
     buttonClear.TabIndex = 15;
     buttonClear.Text     = "清空课程";
     buttonClear.UseVisualStyleBackColor = true;
     buttonClear.Click += new EventHandler(buttonClear_Click);
     buttonUp.Location  = new Point(3, 148);
     buttonUp.Name      = "buttonUp";
     buttonUp.Size      = new Size(75, 23);
     buttonUp.TabIndex  = 13;
     buttonUp.Text      = "往上移动";
     buttonUp.UseVisualStyleBackColor = true;
     buttonUp.Click     += new EventHandler(buttonUp_Click);
     buttonDown.Location = new Point(3, 177);
     buttonDown.Name     = "buttonDown";
     buttonDown.Size     = new Size(75, 23);
     buttonDown.TabIndex = 14;
     buttonDown.Text     = "往下移动";
     buttonDown.UseVisualStyleBackColor = true;
     buttonDown.Click   += new EventHandler(buttonDown_Click);
     buttonEdit.Location = new Point(3, 206);
     buttonEdit.Name     = "buttonEdit";
     buttonEdit.Size     = new Size(75, 23);
     buttonEdit.TabIndex = 8;
     buttonEdit.Text     = "编辑课程";
     buttonEdit.UseVisualStyleBackColor = true;
     buttonEdit.Click                    += new EventHandler(buttonEdit_Click);
     buttonOK.DialogResult                = DialogResult.OK;
     buttonOK.Location                    = new Point(3, 235);
     buttonOK.Name                        = "buttonOK";
     buttonOK.Size                        = new Size(75, 23);
     buttonOK.TabIndex                    = 11;
     buttonOK.Text                        = "确定";
     buttonOK.UseVisualStyleBackColor     = true;
     buttonCancel.DialogResult            = DialogResult.Cancel;
     buttonCancel.Location                = new Point(3, 264);
     buttonCancel.Name                    = "buttonCancel";
     buttonCancel.Size                    = new Size(75, 23);
     buttonCancel.TabIndex                = 12;
     buttonCancel.Text                    = "取消";
     buttonCancel.UseVisualStyleBackColor = true;
     AcceptButton        = buttonOK;
     AutoScaleDimensions = new SizeF(6f, 12f);
     AutoScaleMode       = AutoScaleMode.Font;
     ClientSize          = new Size(483, 314);
     Controls.Add(splitContainerEdit);
     MaximizeBox   = false;
     MinimizeBox   = false;
     Name          = "FormClassEdit";
     StartPosition = FormStartPosition.CenterParent;
     Text          = "选课表编辑";
     FormClosing  += new FormClosingEventHandler(FormClassEdit_FormClosing);
     splitContainerEdit.Panel1.ResumeLayout(false);
     splitContainerEdit.Panel2.ResumeLayout(false);
     splitContainerEdit.ResumeLayout(false);
     groupBox1.ResumeLayout(false);
     groupBoxEdit.ResumeLayout(false);
     flowLayoutPanel2.ResumeLayout(false);
     ResumeLayout(false);
 }
示例#18
0
 private void InitializeComponent()
 {
     panel1          = new Panel();
     splitContainer1 = new SplitContainer();
     placeListBox    = new ListBox();
     groupBox3       = new GroupBox();
     readBinButton   = new Button();
     writeBinButton  = new Button();
     groupBox2       = new GroupBox();
     x07_NUD         = new NumericUpDown();
     x06_NUD         = new NumericUpDown();
     x03_NUD         = new NumericUpDown();
     x05_NUD         = new NumericUpDown();
     x02_NUD         = new NumericUpDown();
     x04_NUD         = new NumericUpDown();
     x01_NUD         = new NumericUpDown();
     x00_NUD         = new NumericUpDown();
     label8          = new Label();
     label7          = new Label();
     label6          = new Label();
     label5          = new Label();
     label4          = new Label();
     label3          = new Label();
     label2          = new Label();
     label1          = new Label();
     groupBox1       = new GroupBox();
     maxLvButton     = new Button();
     minLvButton     = new Button();
     pokeButton      = new Button();
     dgv             = new DataGridView();
     Column1         = new DataGridViewTextBoxColumn();
     Column2         = new DataGridViewTextBoxColumn();
     Column3         = new DataGridViewTextBoxColumn();
     Column4         = new DataGridViewTextBoxColumn();
     okButton        = new Button();
     cancelButton    = new Button();
     ofd             = new OpenFileDialog();
     sfd             = new SaveFileDialog();
     panel1.SuspendLayout();
     splitContainer1.Panel1.SuspendLayout();
     splitContainer1.Panel2.SuspendLayout();
     splitContainer1.SuspendLayout();
     groupBox3.SuspendLayout();
     groupBox2.SuspendLayout();
     x07_NUD.BeginInit();
     x06_NUD.BeginInit();
     x03_NUD.BeginInit();
     x05_NUD.BeginInit();
     x02_NUD.BeginInit();
     x04_NUD.BeginInit();
     x01_NUD.BeginInit();
     x00_NUD.BeginInit();
     groupBox1.SuspendLayout();
     ((ISupportInitialize)dgv).BeginInit();
     SuspendLayout();
     panel1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     panel1.Controls.Add(splitContainer1);
     panel1.Location          = new Point(0, 0);
     panel1.Name              = "panel1";
     panel1.Size              = new Size(0x310, 0x206);
     panel1.TabIndex          = 0;
     splitContainer1.Dock     = DockStyle.Fill;
     splitContainer1.Location = new Point(0, 0);
     splitContainer1.Name     = "splitContainer1";
     splitContainer1.Panel1.Controls.Add(placeListBox);
     splitContainer1.Panel2.Controls.Add(groupBox3);
     splitContainer1.Panel2.Controls.Add(groupBox2);
     splitContainer1.Panel2.Controls.Add(groupBox1);
     splitContainer1.Size             = new Size(0x310, 0x206);
     splitContainer1.SplitterDistance = 0xb6;
     splitContainer1.TabIndex         = 0;
     placeListBox.Dock = DockStyle.Fill;
     placeListBox.FormattingEnabled = true;
     placeListBox.ItemHeight        = 12;
     placeListBox.Location          = new Point(0, 0);
     placeListBox.Name     = "placeListBox";
     placeListBox.Size     = new Size(0xb6, 0x1fc);
     placeListBox.TabIndex = 0;
     groupBox3.Controls.Add(readBinButton);
     groupBox3.Controls.Add(writeBinButton);
     groupBox3.Location     = new Point(400, 0x1c9);
     groupBox3.Name         = "groupBox3";
     groupBox3.Size         = new Size(0xc3, 0x3a);
     groupBox3.TabIndex     = 3;
     groupBox3.TabStop      = false;
     groupBox3.Text         = "Encounter Slot Backup (.bin)";
     readBinButton.Location = new Point(100, 0x16);
     readBinButton.Name     = "readBinButton";
     readBinButton.Size     = new Size(0x4b, 0x17);
     readBinButton.TabIndex = 4;
     readBinButton.Text     = "Import";
     readBinButton.UseVisualStyleBackColor = true;
     readBinButton.Click    += readBinButton_Click;
     writeBinButton.Location = new Point(0x13, 0x16);
     writeBinButton.Name     = "writeBinButton";
     writeBinButton.Size     = new Size(0x4b, 0x17);
     writeBinButton.TabIndex = 3;
     writeBinButton.Text     = "Export";
     writeBinButton.UseVisualStyleBackColor = true;
     writeBinButton.Click += writeBinButton_Click;
     groupBox2.Anchor      = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom;
     groupBox2.Controls.Add(x07_NUD);
     groupBox2.Controls.Add(x06_NUD);
     groupBox2.Controls.Add(x03_NUD);
     groupBox2.Controls.Add(x05_NUD);
     groupBox2.Controls.Add(x02_NUD);
     groupBox2.Controls.Add(x04_NUD);
     groupBox2.Controls.Add(x01_NUD);
     groupBox2.Controls.Add(x00_NUD);
     groupBox2.Controls.Add(label8);
     groupBox2.Controls.Add(label7);
     groupBox2.Controls.Add(label6);
     groupBox2.Controls.Add(label5);
     groupBox2.Controls.Add(label4);
     groupBox2.Controls.Add(label3);
     groupBox2.Controls.Add(label2);
     groupBox2.Controls.Add(label1);
     groupBox2.Location = new Point(3, 0x1c9);
     groupBox2.Name     = "groupBox2";
     groupBox2.Size     = new Size(0x187, 0x3a);
     groupBox2.TabIndex = 1;
     groupBox2.TabStop  = false;
     groupBox2.Text     = "Habitat Header";
     x07_NUD.Location   = new Point(330, 30);
     int[] bits = new int[4];
     bits[0]          = 0xff;
     x07_NUD.Maximum  = new decimal(bits);
     x07_NUD.Name     = "x07_NUD";
     x07_NUD.Size     = new Size(40, 0x13);
     x07_NUD.TabIndex = 8;
     x06_NUD.Location = new Point(0x11c, 30);
     int[] numArray2 = new int[4];
     numArray2[0]     = 0xff;
     x06_NUD.Maximum  = new decimal(numArray2);
     x06_NUD.Name     = "x06_NUD";
     x06_NUD.Size     = new Size(40, 0x13);
     x06_NUD.TabIndex = 8;
     x03_NUD.Location = new Point(0x92, 30);
     int[] numArray3 = new int[4];
     numArray3[0]     = 0xff;
     x03_NUD.Maximum  = new decimal(numArray3);
     x03_NUD.Name     = "x03_NUD";
     x03_NUD.Size     = new Size(40, 0x13);
     x03_NUD.TabIndex = 8;
     x05_NUD.Location = new Point(0xee, 30);
     int[] numArray4 = new int[4];
     numArray4[0]     = 0xff;
     x05_NUD.Maximum  = new decimal(numArray4);
     x05_NUD.Name     = "x05_NUD";
     x05_NUD.Size     = new Size(40, 0x13);
     x05_NUD.TabIndex = 8;
     x02_NUD.Location = new Point(100, 30);
     int[] numArray5 = new int[4];
     numArray5[0]     = 0xff;
     x02_NUD.Maximum  = new decimal(numArray5);
     x02_NUD.Name     = "x02_NUD";
     x02_NUD.Size     = new Size(40, 0x13);
     x02_NUD.TabIndex = 8;
     x04_NUD.Location = new Point(0xc0, 30);
     int[] numArray6 = new int[4];
     numArray6[0]     = 0xff;
     x04_NUD.Maximum  = new decimal(numArray6);
     x04_NUD.Name     = "x04_NUD";
     x04_NUD.Size     = new Size(40, 0x13);
     x04_NUD.TabIndex = 8;
     x01_NUD.Location = new Point(0x36, 30);
     int[] numArray7 = new int[4];
     numArray7[0]     = 0xff;
     x01_NUD.Maximum  = new decimal(numArray7);
     x01_NUD.Name     = "x01_NUD";
     x01_NUD.Size     = new Size(40, 0x13);
     x01_NUD.TabIndex = 8;
     x00_NUD.Location = new Point(8, 30);
     int[] numArray8 = new int[4];
     numArray8[0]     = 0xff;
     x00_NUD.Maximum  = new decimal(numArray8);
     x00_NUD.Name     = "x00_NUD";
     x00_NUD.Size     = new Size(40, 0x13);
     x00_NUD.TabIndex = 8;
     label8.AutoSize  = true;
     label8.Location  = new Point(0x148, 15);
     label8.Name      = "label8";
     label8.Size      = new Size(0x35, 12);
     label8.TabIndex  = 7;
     label8.Text      = "Item*";
     label7.AutoSize  = true;
     label7.Location  = new Point(0x11a, 15);
     label7.Name      = "label7";
     label7.Size      = new Size(0x25, 12);
     label7.TabIndex  = 6;
     label7.Text      = "Fish*";
     label6.AutoSize  = true;
     label6.Location  = new Point(0xec, 15);
     label6.Name      = "label6";
     label6.Size      = new Size(0x19, 12);
     label6.TabIndex  = 5;
     label6.Text      = "Fish";
     label5.AutoSize  = true;
     label5.Location  = new Point(190, 15);
     label5.Name      = "label5";
     label5.Size      = new Size(0x1d, 12);
     label5.TabIndex  = 4;
     label5.Text      = "Surf*";
     label4.AutoSize  = true;
     label4.Location  = new Point(0x90, 15);
     label4.Name      = "label4";
     label4.Size      = new Size(0x1d, 12);
     label4.TabIndex  = 3;
     label4.Text      = "Surf";
     label3.AutoSize  = true;
     label3.Location  = new Point(100, 15);
     label3.Name      = "label3";
     label3.Size      = new Size(0x1d, 12);
     label3.TabIndex  = 2;
     label3.Text      = "Shake";
     label2.AutoSize  = true;
     label2.Location  = new Point(0x34, 15);
     label2.Name      = "label2";
     label2.Size      = new Size(0x1d, 12);
     label2.TabIndex  = 1;
     label2.Text      = "Double";
     label1.AutoSize  = true;
     label1.Location  = new Point(6, 15);
     label1.Name      = "label1";
     label1.Size      = new Size(0x23, 12);
     label1.TabIndex  = 0;
     label1.Text      = "Regular";
     groupBox1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     groupBox1.Controls.Add(maxLvButton);
     groupBox1.Controls.Add(minLvButton);
     groupBox1.Controls.Add(pokeButton);
     groupBox1.Controls.Add(dgv);
     groupBox1.Location   = new Point(3, 3);
     groupBox1.Name       = "groupBox1";
     groupBox1.Size       = new Size(0x250, 0x1c0);
     groupBox1.TabIndex   = 0;
     groupBox1.TabStop    = false;
     groupBox1.Text       = "Encounter Slot Data";
     maxLvButton.Anchor   = AnchorStyles.Right | AnchorStyles.Bottom;
     maxLvButton.Location = new Point(0x1ed, 0x1a3);
     maxLvButton.Name     = "maxLvButton";
     maxLvButton.Size     = new Size(90, 0x17);
     maxLvButton.TabIndex = 3;
     maxLvButton.Text     = "Edit Max Level";
     maxLvButton.UseVisualStyleBackColor = true;
     maxLvButton.Click   += maxLvButton_Click;
     minLvButton.Anchor   = AnchorStyles.Right | AnchorStyles.Bottom;
     minLvButton.Location = new Point(0x18d, 0x1a3);
     minLvButton.Name     = "minLvButton";
     minLvButton.Size     = new Size(90, 0x17);
     minLvButton.TabIndex = 2;
     minLvButton.Text     = "Edit Min Level";
     minLvButton.UseVisualStyleBackColor = true;
     minLvButton.Click  += minLvButton_Click;
     pokeButton.Anchor   = AnchorStyles.Right | AnchorStyles.Bottom;
     pokeButton.Location = new Point(0x12d, 0x1a3);
     pokeButton.Name     = "pokeButton";
     pokeButton.Size     = new Size(90, 0x17);
     pokeButton.TabIndex = 1;
     pokeButton.Text     = "Edit Pokémon";
     pokeButton.UseVisualStyleBackColor = true;
     pokeButton.Click            += pokeButton_Click;
     dgv.AllowUserToAddRows       = false;
     dgv.AllowUserToDeleteRows    = false;
     dgv.AllowUserToResizeColumns = false;
     dgv.AllowUserToResizeRows    = false;
     dgv.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     dgv.Columns.AddRange(Column1, Column2, Column3, Column4);
     dgv.Location                         = new Point(3, 15);
     dgv.Name                             = "dgv";
     dgv.ReadOnly                         = true;
     dgv.RowHeadersVisible                = false;
     dgv.RowTemplate.Height               = 0x15;
     dgv.SelectionMode                    = DataGridViewSelectionMode.FullRowSelect;
     dgv.Size                             = new Size(0x24a, 0x18e);
     dgv.TabIndex                         = 0;
     Column1.AutoSizeMode                 = DataGridViewAutoSizeColumnMode.Fill;
     Column1.HeaderText                   = "Slot";
     Column1.Name                         = "Column1";
     Column1.ReadOnly                     = true;
     Column1.Resizable                    = DataGridViewTriState.False;
     Column1.SortMode                     = DataGridViewColumnSortMode.NotSortable;
     Column2.AutoSizeMode                 = DataGridViewAutoSizeColumnMode.Fill;
     Column2.HeaderText                   = "Pokémon";
     Column2.Name                         = "Column2";
     Column2.ReadOnly                     = true;
     Column2.Resizable                    = DataGridViewTriState.False;
     Column2.SortMode                     = DataGridViewColumnSortMode.NotSortable;
     Column3.HeaderText                   = "Min Level";
     Column3.Name                         = "Column3";
     Column3.ReadOnly                     = true;
     Column3.Resizable                    = DataGridViewTriState.False;
     Column3.SortMode                     = DataGridViewColumnSortMode.NotSortable;
     Column3.Width                        = 80;
     Column4.HeaderText                   = "Max Level";
     Column4.Name                         = "Column4";
     Column4.ReadOnly                     = true;
     Column4.Resizable                    = DataGridViewTriState.False;
     Column4.SortMode                     = DataGridViewColumnSortMode.NotSortable;
     Column4.Width                        = 80;
     okButton.Anchor                      = AnchorStyles.Right | AnchorStyles.Bottom;
     okButton.Location                    = new Point(0x268, 0x210);
     okButton.Name                        = "okButton";
     okButton.Size                        = new Size(0x4b, 0x17);
     okButton.TabIndex                    = 1;
     okButton.Text                        = "OK";
     okButton.UseVisualStyleBackColor     = true;
     okButton.Click                      += okButton_Click;
     cancelButton.Anchor                  = AnchorStyles.Right | AnchorStyles.Bottom;
     cancelButton.Location                = new Point(0x2b9, 0x210);
     cancelButton.Name                    = "cancelButton";
     cancelButton.Size                    = new Size(0x4b, 0x17);
     cancelButton.TabIndex                = 2;
     cancelButton.Text                    = "Cancel";
     cancelButton.UseVisualStyleBackColor = true;
     cancelButton.Click                  += cancelButton_Click;
     ofd.Filter                           = "Encounter Slot File|*.bin|All Files|*.*";
     sfd.Filter                           = "Encounter Slot File|*.bin|Slots|*.*";
     AutoScaleDimensions                  = new SizeF(6f, 12f);
     AutoScaleMode                        = AutoScaleMode.Font;
     ClientSize                           = new Size(0x310, 0x233);
     Controls.Add(cancelButton);
     Controls.Add(okButton);
     Controls.Add(panel1);
     MinimumSize   = new Size(800, 600);
     Name          = "PlaceForm";
     SizeGripStyle = SizeGripStyle.Hide;
     StartPosition = FormStartPosition.CenterParent;
     Text          = "Encounter Slot Editor";
     panel1.ResumeLayout(false);
     splitContainer1.Panel1.ResumeLayout(false);
     splitContainer1.Panel2.ResumeLayout(false);
     splitContainer1.ResumeLayout(false);
     groupBox3.ResumeLayout(false);
     groupBox2.ResumeLayout(false);
     groupBox2.PerformLayout();
     x07_NUD.EndInit();
     x06_NUD.EndInit();
     x03_NUD.EndInit();
     x05_NUD.EndInit();
     x02_NUD.EndInit();
     x04_NUD.EndInit();
     x01_NUD.EndInit();
     x00_NUD.EndInit();
     groupBox1.ResumeLayout(false);
     ((ISupportInitialize)dgv).EndInit();
     ResumeLayout(false);
 }
示例#19
0
        private void FireLoginReady(object sender, System.EventArgs e)
        {
            LoginControl login = (LoginControl)sender;

            //
            //  Create a new login client request
            //

            ClientAdapterResponse response = controller.SendRpc(
                new Login(login.Username, login.Password));

            if (response.Type != ClientAdapterResponse.Types.ResponseType.ACKNOWLEDGEMENT)
            {
                System.Windows.Forms.MessageBox.Show(
                    "Invalid username / password.",
                    "Login Error", MessageBoxButtons.OK,
                    MessageBoxIcon.Exclamation);

                login.Reset();
                login.Invalidate();
                return;
            }

            if (!response.HasDatabaseResponse ||
                response.DatabaseResponse.ResultSetCount != 1 ||
                response.DatabaseResponse.GetResultSet(0).RowCount != 1)
            {
                System.Windows.Forms.MessageBox.Show(
                    "Invalid username / password.",
                    "Login Error", MessageBoxButtons.OK,
                    MessageBoxIcon.Exclamation);

                login.Reset();
                login.Invalidate();
                return;
            }

            User userData = new User(
                response.DatabaseResponse.
                GetResultSet(0).GetRow(0));

            //
            //  Get the user's applications
            //

            response = controller.SendRpc(
                new GetUserApplications(userData.Id));

            foreach (DatabaseEngineResponse.Types.ResultSet rs in response.DatabaseResponse.ResultSetList)
            {
                foreach (DatabaseEngineResponse.Types.ResultSet.Types.Row row in rs.RowList)
                {
                    userData.AddApplication(row);
                }
            }

            //
            //  Set the user
            //

            controller.ApplicationUser = userData;

            //
            //  Load the active set data
            //

            login.labelHeader = "Loading Static Data...";
            Application.DoEvents();

            controller.LoadStaticData();

            login.labelHeader = "Loading Dealing Collection...";
            Application.DoEvents();

            controller.LoadActiveSet();

            //
            //  Create the main GUI
            //

            this.SuspendLayout();

            //
            //  Menu
            //

            MainMenu menu = new MainMenu();
            MenuItem file = new MenuItem("File");
            MenuItem edit = new MenuItem("Edit");
            MenuItem help = new MenuItem("Help");

            menu.MenuItems.Add(file);
            menu.MenuItems.Add(edit);
            menu.MenuItems.Add(help);

            file.MenuItems.Add(new MenuItem("Exit", new EventHandler(FireExit)));

            //
            //  Status Strip
            //

            ToolStripStatusLabel toolStripStatusLabel = new ToolStripStatusLabel();

            toolStripStatusLabel.Name = "toolStripStatusLabel";
            toolStripStatusLabel.Size = new System.Drawing.Size(38, 17);
            toolStripStatusLabel.Text =
                (string)ConfigurationManager.AppSettings["fcm_id"] + " : " +
                (string)ConfigurationManager.AppSettings["rpc"];

            System.Windows.Forms.StatusStrip statusStrip = new System.Windows.Forms.StatusStrip();
            statusStrip.Location = new System.Drawing.Point(0, 248);
            statusStrip.Name     = "statusStrip";
            statusStrip.Size     = new System.Drawing.Size(292, 25);
            statusStrip.TabIndex = 0;
            statusStrip.Text     = "statusStrip";
            statusStrip.Items.AddRange(new ToolStripItem[] { toolStripStatusLabel });

            //
            //  Split Container
            //

            splitContainer.SuspendLayout();
            splitContainer.BackColor         = System.Drawing.Color.LightSteelBlue;
            splitContainer.Dock              = System.Windows.Forms.DockStyle.Fill;
            splitContainer.Size              = new System.Drawing.Size(550, 550);
            splitContainer.Location          = new System.Drawing.Point(0, 0);
            splitContainer.Name              = "splitContainer";
            splitContainer.SplitterIncrement = 10;
            splitContainer.SplitterWidth     = 6;
            splitContainer.SplitterDistance  = 220;
            splitContainer.Panel1MinSize     = 200;
            splitContainer.FixedPanel        = System.Windows.Forms.FixedPanel.Panel1;
            splitContainer.Panel1.Padding    = new System.Windows.Forms.Padding(4, 4, 0, 4);
            splitContainer.Panel2.Padding    = new System.Windows.Forms.Padding(0, 4, 4, 4);

            if (userData.IsComplianceUser)
            {
                splitContainer.Panel2.Controls.AddRange(new Control[]
                {
                    new DealingViewer(controller),
                    new AccountComplianceViewer(controller)
                });

                splitContainer.Panel1.Controls.Add(new ClientNavigation(controller));
            }
            else if (userData.IsClientUser)
            {
                splitContainer.Panel2.Controls.AddRange(new Control[]
                {
                    new DealingViewer(controller)
                });

                splitContainer.Panel1.Controls.Add(new ClientNavigation(controller));
            }

            //
            //  (this) Form variables
            //

            this.Menu            = menu;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
            this.MaximizeBox     = true;
            this.MinimizeBox     = true;
            this.FormBorderStyle = FormBorderStyle.Sizable;
            this.SizeGripStyle   = SizeGripStyle.Show;
            this.Size            = new System.Drawing.Size(1200, 880);
            this.CenterToScreen();
            //this.WindowState = FormWindowState.Maximized;

            this.Controls.Clear();
            this.Controls.AddRange(new Control [] { splitContainer, statusStrip });

            splitContainer.ResumeLayout(false);
            this.ResumeLayout(true);
            this.PerformLayout();
        }
示例#20
0
 private void InitializeComponent()
 {
     cboType             = new ComboBox();
     lstParameters       = new ListBox();
     btnChangeEvent      = new Button();
     lblEventId          = new Label();
     lblEventName        = new Label();
     lblParamDescription = new Label();
     btnCancel           = new Button();
     btnDone             = new Button();
     lblName2            = new Label();
     lblName1            = new Label();
     valueGrid           = new PropertyGrid();
     requirementPanel    = new Panel();
     chkNot          = new CheckBox();
     label1          = new Label();
     cboRequirement  = new ComboBox();
     offsetPanel     = new Panel();
     offsetOkay      = new Button();
     comboBox1       = new ComboBox();
     comboBox2       = new ComboBox();
     comboBox3       = new ComboBox();
     label2          = new Label();
     label3          = new Label();
     label4          = new Label();
     mainPanel       = new Panel();
     splitContainer1 = new SplitContainer();
     typePanel       = new Panel();
     requirementPanel.SuspendLayout();
     offsetPanel.SuspendLayout();
     ((ISupportInitialize)splitContainer1).BeginInit();
     splitContainer1.Panel1.SuspendLayout();
     splitContainer1.Panel2.SuspendLayout();
     splitContainer1.SuspendLayout();
     typePanel.SuspendLayout();
     SuspendLayout();
     //
     // cboType
     //
     cboType.FormattingEnabled = true;
     cboType.Items.AddRange(new object[]
     {
         "Value",
         "Scalar",
         "Drawing.Pointer",
         "Boolean",
         "Unknown",
         "Variable",
         "Requirement"
     });
     cboType.Location              = new Point(46, 0);
     cboType.Name                  = "cboType";
     cboType.Size                  = new Size(82, 21);
     cboType.TabIndex              = 63;
     cboType.SelectedIndexChanged += new EventHandler(cboType_SelectedIndexChanged);
     //
     // lstParameters
     //
     lstParameters.Dock = DockStyle.Fill;
     lstParameters.FormattingEnabled = true;
     lstParameters.Location          = new Point(0, 21);
     lstParameters.Name                  = "lstParameters";
     lstParameters.Size                  = new Size(93, 92);
     lstParameters.TabIndex              = 62;
     lstParameters.SelectedIndexChanged += new EventHandler(lstParameters_SelectedIndexChanged);
     //
     // btnChangeEvent
     //
     btnChangeEvent.Anchor   = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Right);
     btnChangeEvent.Location = new Point(171, 2);
     btnChangeEvent.Name     = "btnChangeEvent";
     btnChangeEvent.Size     = new Size(56, 23);
     btnChangeEvent.TabIndex = 61;
     btnChangeEvent.Text     = "Change";
     btnChangeEvent.UseVisualStyleBackColor = true;
     btnChangeEvent.Click += new EventHandler(btnChangeEvent_Click);
     //
     // lblEventId
     //
     lblEventId.Anchor      = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Right);
     lblEventId.BackColor   = Color.WhiteSmoke;
     lblEventId.BorderStyle = BorderStyle.Fixed3D;
     lblEventId.Location    = new Point(107, 3);
     lblEventId.Name        = "lblEventId";
     lblEventId.Size        = new Size(66, 20);
     lblEventId.TabIndex    = 60;
     lblEventId.TextAlign   = ContentAlignment.MiddleCenter;
     //
     // lblEventName
     //
     lblEventName.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left
                                          | AnchorStyles.Right);
     lblEventName.BackColor   = Color.WhiteSmoke;
     lblEventName.BorderStyle = BorderStyle.Fixed3D;
     lblEventName.Location    = new Point(2, 3);
     lblEventName.Name        = "lblEventName";
     lblEventName.Size        = new Size(105, 20);
     lblEventName.TabIndex    = 59;
     lblEventName.TextAlign   = ContentAlignment.MiddleLeft;
     //
     // lblParamDescription
     //
     lblParamDescription.Anchor = (AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Left
                                                 | AnchorStyles.Right);
     lblParamDescription.BackColor   = SystemColors.Control;
     lblParamDescription.BorderStyle = BorderStyle.Fixed3D;
     lblParamDescription.Font        = new Font("Microsoft Sans Serif", 9.75F, FontStyle.Regular,
                                                GraphicsUnit.Point,
                                                (byte)0);
     lblParamDescription.Location = new Point(2, 140);
     lblParamDescription.Name     = "lblParamDescription";
     lblParamDescription.Size     = new Size(225, 63);
     lblParamDescription.TabIndex = 58;
     //
     // btnCancel
     //
     btnCancel.Anchor   = (AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Right);
     btnCancel.Location = new Point(169, 206);
     btnCancel.Name     = "btnCancel";
     btnCancel.Size     = new Size(58, 24);
     btnCancel.TabIndex = 57;
     btnCancel.Text     = "* - Cancel";
     btnCancel.UseVisualStyleBackColor = true;
     btnCancel.Click += btnCancel_Click;
     //
     // btnDone
     //
     btnDone.Anchor   = (AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Right);
     btnDone.Location = new Point(105, 206);
     btnDone.Name     = "btnDone";
     btnDone.Size     = new Size(58, 24);
     btnDone.TabIndex = 56;
     btnDone.Text     = "* - Done";
     btnDone.UseVisualStyleBackColor = true;
     btnDone.Click += btnDone_Click;
     //
     // lblName2
     //
     lblName2.BackColor   = Color.WhiteSmoke;
     lblName2.BorderStyle = BorderStyle.Fixed3D;
     lblName2.Location    = new Point(0, 0);
     lblName2.Name        = "lblName2";
     lblName2.Size        = new Size(45, 21);
     lblName2.TabIndex    = 55;
     lblName2.Text        = "Type:";
     lblName2.TextAlign   = ContentAlignment.MiddleRight;
     //
     // lblName1
     //
     lblName1.BackColor   = Color.WhiteSmoke;
     lblName1.BorderStyle = BorderStyle.Fixed3D;
     lblName1.Dock        = DockStyle.Top;
     lblName1.Location    = new Point(0, 0);
     lblName1.Name        = "lblName1";
     lblName1.Size        = new Size(93, 21);
     lblName1.TabIndex    = 54;
     lblName1.Text        = "Parameter:";
     lblName1.TextAlign   = ContentAlignment.MiddleLeft;
     //
     // valueGrid
     //
     valueGrid.Dock           = DockStyle.Fill;
     valueGrid.HelpVisible    = false;
     valueGrid.Location       = new Point(0, 21);
     valueGrid.Name           = "valueGrid";
     valueGrid.Size           = new Size(128, 92);
     valueGrid.TabIndex       = 8;
     valueGrid.ToolbarVisible = false;
     //
     // requirementPanel
     //
     requirementPanel.Controls.Add(chkNot);
     requirementPanel.Controls.Add(label1);
     requirementPanel.Controls.Add(cboRequirement);
     requirementPanel.Dock     = DockStyle.Fill;
     requirementPanel.Location = new Point(0, 21);
     requirementPanel.Name     = "requirementPanel";
     requirementPanel.Size     = new Size(128, 92);
     requirementPanel.TabIndex = 64;
     //
     // chkNot
     //
     chkNot.AutoSize = true;
     chkNot.Location = new Point(81, 3);
     chkNot.Name     = "chkNot";
     chkNot.Size     = new Size(43, 17);
     chkNot.TabIndex = 65;
     chkNot.Text     = "Not";
     chkNot.UseVisualStyleBackColor = true;
     chkNot.CheckedChanged         += new EventHandler(Requirement_Handle);
     //
     // label1
     //
     label1.BackColor   = Color.WhiteSmoke;
     label1.BorderStyle = BorderStyle.Fixed3D;
     label1.Location    = new Point(0, 0);
     label1.Name        = "label1";
     label1.Size        = new Size(75, 21);
     label1.TabIndex    = 64;
     label1.Text        = "Requirement:";
     label1.TextAlign   = ContentAlignment.MiddleLeft;
     //
     // cboRequirement
     //
     cboRequirement.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left
                                            | AnchorStyles.Right);
     cboRequirement.FormattingEnabled = true;
     cboRequirement.Location          = new Point(0, 22);
     cboRequirement.Name                  = "cboRequirement";
     cboRequirement.Size                  = new Size(128, 21);
     cboRequirement.TabIndex              = 0;
     cboRequirement.SelectedIndexChanged += new EventHandler(Requirement_Handle);
     //
     // offsetPanel
     //
     offsetPanel.Controls.Add(offsetOkay);
     offsetPanel.Controls.Add(comboBox1);
     offsetPanel.Controls.Add(comboBox2);
     offsetPanel.Controls.Add(comboBox3);
     offsetPanel.Controls.Add(label2);
     offsetPanel.Controls.Add(label3);
     offsetPanel.Controls.Add(label4);
     offsetPanel.Dock     = DockStyle.Fill;
     offsetPanel.Location = new Point(0, 21);
     offsetPanel.Name     = "offsetPanel";
     offsetPanel.Size     = new Size(128, 92);
     offsetPanel.TabIndex = 66;
     //
     // offsetOkay
     //
     offsetOkay.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left
                                        | AnchorStyles.Right);
     offsetOkay.Location = new Point(-1, 69);
     offsetOkay.Name     = "offsetOkay";
     offsetOkay.Size     = new Size(129, 23);
     offsetOkay.TabIndex = 13;
     offsetOkay.Text     = "Okay";
     offsetOkay.UseVisualStyleBackColor = true;
     offsetOkay.Click += new EventHandler(offsetOkay_Click);
     //
     // comboBox1
     //
     comboBox1.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left
                                       | AnchorStyles.Right);
     comboBox1.DropDownStyle     = ComboBoxStyle.DropDownList;
     comboBox1.FormattingEnabled = true;
     comboBox1.Items.AddRange(new object[]
     {
         "Actions",
         "SubActions",
         "SubRoutines",
         "External",
         "Null"
     });
     comboBox1.Location              = new Point(46, 3);
     comboBox1.Name                  = "comboBox1";
     comboBox1.Size                  = new Size(82, 21);
     comboBox1.TabIndex              = 7;
     comboBox1.SelectedIndexChanged += new EventHandler(comboBox1_SelectedIndexChanged);
     //
     // comboBox2
     //
     comboBox2.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left
                                       | AnchorStyles.Right);
     comboBox2.DropDownStyle     = ComboBoxStyle.DropDownList;
     comboBox2.FormattingEnabled = true;
     comboBox2.Location          = new Point(46, 24);
     comboBox2.Name     = "comboBox2";
     comboBox2.Size     = new Size(82, 21);
     comboBox2.TabIndex = 9;
     //
     // comboBox3
     //
     comboBox3.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left
                                       | AnchorStyles.Right);
     comboBox3.DropDownStyle     = ComboBoxStyle.DropDownList;
     comboBox3.FormattingEnabled = true;
     comboBox3.Location          = new Point(46, 45);
     comboBox3.Name     = "comboBox3";
     comboBox3.Size     = new Size(82, 21);
     comboBox3.TabIndex = 11;
     //
     // label2
     //
     label2.BackColor   = Color.WhiteSmoke;
     label2.BorderStyle = BorderStyle.Fixed3D;
     label2.Location    = new Point(0, 3);
     label2.Name        = "label2";
     label2.Size        = new Size(45, 21);
     label2.TabIndex    = 8;
     label2.Text        = "List:";
     label2.TextAlign   = ContentAlignment.MiddleRight;
     //
     // label3
     //
     label3.BackColor   = Color.WhiteSmoke;
     label3.BorderStyle = BorderStyle.Fixed3D;
     label3.Location    = new Point(0, 24);
     label3.Name        = "label3";
     label3.Size        = new Size(45, 21);
     label3.TabIndex    = 10;
     label3.Text        = "Action:";
     label3.TextAlign   = ContentAlignment.MiddleRight;
     //
     // label4
     //
     label4.BackColor   = Color.WhiteSmoke;
     label4.BorderStyle = BorderStyle.Fixed3D;
     label4.Location    = new Point(0, 45);
     label4.Name        = "label4";
     label4.Size        = new Size(45, 21);
     label4.TabIndex    = 12;
     label4.Text        = "Type:";
     label4.TextAlign   = ContentAlignment.MiddleRight;
     //
     // mainPanel
     //
     mainPanel.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Bottom
                                       | AnchorStyles.Left
                                       | AnchorStyles.Right);
     mainPanel.Location = new Point(2, 25);
     mainPanel.Name     = "mainPanel";
     mainPanel.Size     = new Size(225, 113);
     mainPanel.TabIndex = 0;
     //
     // splitContainer1
     //
     splitContainer1.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Bottom
                                             | AnchorStyles.Left
                                             | AnchorStyles.Right);
     splitContainer1.Location = new Point(2, 25);
     splitContainer1.Name     = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     splitContainer1.Panel1.Controls.Add(lstParameters);
     splitContainer1.Panel1.Controls.Add(lblName1);
     //
     // splitContainer1.Panel2
     //
     splitContainer1.Panel2.Controls.Add(offsetPanel);
     splitContainer1.Panel2.Controls.Add(valueGrid);
     splitContainer1.Panel2.Controls.Add(requirementPanel);
     splitContainer1.Panel2.Controls.Add(typePanel);
     splitContainer1.Size             = new Size(225, 113);
     splitContainer1.SplitterDistance = 93;
     splitContainer1.TabIndex         = 9;
     //
     // typePanel
     //
     typePanel.Controls.Add(lblName2);
     typePanel.Controls.Add(cboType);
     typePanel.Dock     = DockStyle.Top;
     typePanel.Location = new Point(0, 0);
     typePanel.Name     = "typePanel";
     typePanel.Size     = new Size(128, 21);
     typePanel.TabIndex = 64;
     //
     // EventModifier
     //
     AutoSize = true;
     Controls.Add(splitContainer1);
     Controls.Add(mainPanel);
     Controls.Add(btnChangeEvent);
     Controls.Add(lblEventId);
     Controls.Add(lblEventName);
     Controls.Add(lblParamDescription);
     Controls.Add(btnCancel);
     Controls.Add(btnDone);
     Name = "EventModifier";
     Size = new Size(230, 233);
     requirementPanel.ResumeLayout(false);
     requirementPanel.PerformLayout();
     offsetPanel.ResumeLayout(false);
     splitContainer1.Panel1.ResumeLayout(false);
     splitContainer1.Panel2.ResumeLayout(false);
     ((ISupportInitialize)splitContainer1).EndInit();
     splitContainer1.ResumeLayout(false);
     typePanel.ResumeLayout(false);
     ResumeLayout(false);
 }
示例#21
0
 private void InitializeComponent()
 {
     splitContainer1            = new SplitContainer();
     pictureBox1                = new PictureBox();
     splitContainer2            = new SplitContainer();
     toolStrip1                 = new ToolStrip();
     toolStripLabel1            = new ToolStripLabel();
     toolStrip2                 = new ToolStrip();
     toolStripLabel2            = new ToolStripLabel();
     dataGridView1              = new DataGridView();
     dataGridView2              = new DataGridView();
     Column1                    = new DataGridViewTextBoxColumn();
     Column2                    = new DataGridViewTextBoxColumn();
     Column3                    = new DataGridViewTextBoxColumn();
     Column4                    = new DataGridViewTextBoxColumn();
     dataGridViewTextBoxColumn1 = new DataGridViewTextBoxColumn();
     dataGridViewTextBoxColumn2 = new DataGridViewTextBoxColumn();
     dataGridViewTextBoxColumn3 = new DataGridViewTextBoxColumn();
     dataGridViewTextBoxColumn4 = new DataGridViewTextBoxColumn();
     ((ISupportInitialize)splitContainer1).BeginInit();
     splitContainer1.Panel1.SuspendLayout();
     splitContainer1.Panel2.SuspendLayout();
     splitContainer1.SuspendLayout();
     ((ISupportInitialize)pictureBox1).BeginInit();
     ((ISupportInitialize)splitContainer2).BeginInit();
     splitContainer2.Panel1.SuspendLayout();
     splitContainer2.Panel2.SuspendLayout();
     splitContainer2.SuspendLayout();
     toolStrip1.SuspendLayout();
     toolStrip2.SuspendLayout();
     ((ISupportInitialize)dataGridView1).BeginInit();
     ((ISupportInitialize)dataGridView2).BeginInit();
     SuspendLayout();
     splitContainer1.Dock     = DockStyle.Fill;
     splitContainer1.Location = new Point(0, 0);
     splitContainer1.Name     = "splitContainer1";
     splitContainer1.Panel1.Controls.Add(pictureBox1);
     splitContainer1.Panel2.Controls.Add(splitContainer2);
     splitContainer1.Size             = new Size(1387, 712);
     splitContainer1.SplitterDistance = 930;
     splitContainer1.TabIndex         = 0;
     pictureBox1.BorderStyle          = BorderStyle.FixedSingle;
     pictureBox1.Dock            = DockStyle.Fill;
     pictureBox1.Location        = new Point(0, 0);
     pictureBox1.Name            = "pictureBox1";
     pictureBox1.Size            = new Size(930, 712);
     pictureBox1.SizeMode        = PictureBoxSizeMode.Zoom;
     pictureBox1.TabIndex        = 0;
     pictureBox1.TabStop         = false;
     splitContainer2.Dock        = DockStyle.Fill;
     splitContainer2.Location    = new Point(0, 0);
     splitContainer2.Name        = "splitContainer2";
     splitContainer2.Orientation = Orientation.Horizontal;
     splitContainer2.Panel1.Controls.Add(dataGridView1);
     splitContainer2.Panel1.Controls.Add(toolStrip1);
     splitContainer2.Panel2.Controls.Add(dataGridView2);
     splitContainer2.Panel2.Controls.Add(toolStrip2);
     splitContainer2.Size             = new Size(453, 712);
     splitContainer2.SplitterDistance = 371;
     splitContainer2.TabIndex         = 0;
     toolStrip1.Items.AddRange(new ToolStripItem[1]
     {
         toolStripLabel1
     });
     toolStrip1.Location  = new Point(0, 0);
     toolStrip1.Name      = "toolStrip1";
     toolStrip1.Size      = new Size(453, 25);
     toolStrip1.TabIndex  = 0;
     toolStrip1.Text      = "toolStrip1";
     toolStripLabel1.Name = "toolStripLabel1";
     toolStripLabel1.Size = new Size(80, 22);
     toolStripLabel1.Text = "设备行驶记录";
     toolStrip2.Items.AddRange(new ToolStripItem[1]
     {
         toolStripLabel2
     });
     toolStrip2.Location                       = new Point(0, 0);
     toolStrip2.Name                           = "toolStrip2";
     toolStrip2.Size                           = new Size(453, 25);
     toolStrip2.TabIndex                       = 1;
     toolStrip2.Text                           = "toolStrip2";
     toolStripLabel2.Name                      = "toolStripLabel2";
     toolStripLabel2.Size                      = new Size(80, 22);
     toolStripLabel2.Text                      = "设备停止记录";
     dataGridView1.AllowUserToAddRows          = false;
     dataGridView1.AllowUserToDeleteRows       = false;
     dataGridView1.AutoSizeColumnsMode         = DataGridViewAutoSizeColumnsMode.Fill;
     dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     dataGridView1.Columns.AddRange(Column1, Column2, Column3, Column4);
     dataGridView1.Dock                        = DockStyle.Fill;
     dataGridView1.Location                    = new Point(0, 25);
     dataGridView1.MultiSelect                 = false;
     dataGridView1.Name                        = "dataGridView1";
     dataGridView1.ReadOnly                    = true;
     dataGridView1.RowHeadersVisible           = false;
     dataGridView1.RowTemplate.Height          = 23;
     dataGridView1.Size                        = new Size(453, 346);
     dataGridView1.TabIndex                    = 1;
     dataGridView2.AllowUserToAddRows          = false;
     dataGridView2.AllowUserToDeleteRows       = false;
     dataGridView2.AutoSizeColumnsMode         = DataGridViewAutoSizeColumnsMode.Fill;
     dataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     dataGridView2.Columns.AddRange(dataGridViewTextBoxColumn1, dataGridViewTextBoxColumn2, dataGridViewTextBoxColumn3, dataGridViewTextBoxColumn4);
     dataGridView2.Dock               = DockStyle.Fill;
     dataGridView2.Location           = new Point(0, 25);
     dataGridView2.MultiSelect        = false;
     dataGridView2.Name               = "dataGridView2";
     dataGridView2.ReadOnly           = true;
     dataGridView2.RowHeadersVisible  = false;
     dataGridView2.RowTemplate.Height = 23;
     dataGridView2.Size               = new Size(453, 312);
     dataGridView2.TabIndex           = 2;
     Column1.FillWeight               = 20f;
     Column1.HeaderText               = "ID";
     Column1.Name       = "Column1";
     Column1.ReadOnly   = true;
     Column2.HeaderText = "StartTime";
     Column2.Name       = "Column2";
     Column2.ReadOnly   = true;
     Column3.HeaderText = "EndTime";
     Column3.Name       = "Column3";
     Column3.ReadOnly   = true;
     Column4.HeaderText = "Distance";
     Column4.Name       = "Column4";
     Column4.ReadOnly   = true;
     dataGridViewTextBoxColumn1.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
     dataGridViewTextBoxColumn1.FillWeight   = 20f;
     dataGridViewTextBoxColumn1.HeaderText   = "ID";
     dataGridViewTextBoxColumn1.Name         = "dataGridViewTextBoxColumn1";
     dataGridViewTextBoxColumn1.ReadOnly     = true;
     dataGridViewTextBoxColumn1.Width        = 42;
     dataGridViewTextBoxColumn2.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
     dataGridViewTextBoxColumn2.HeaderText   = "StartTime";
     dataGridViewTextBoxColumn2.Name         = "dataGridViewTextBoxColumn2";
     dataGridViewTextBoxColumn2.ReadOnly     = true;
     dataGridViewTextBoxColumn2.Width        = 84;
     dataGridViewTextBoxColumn3.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
     dataGridViewTextBoxColumn3.HeaderText   = "EndTime";
     dataGridViewTextBoxColumn3.Name         = "dataGridViewTextBoxColumn3";
     dataGridViewTextBoxColumn3.ReadOnly     = true;
     dataGridViewTextBoxColumn3.Width        = 72;
     dataGridViewTextBoxColumn4.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
     dataGridViewTextBoxColumn4.FillWeight   = 180f;
     dataGridViewTextBoxColumn4.HeaderText   = "Address";
     dataGridViewTextBoxColumn4.Name         = "dataGridViewTextBoxColumn4";
     dataGridViewTextBoxColumn4.ReadOnly     = true;
     dataGridViewTextBoxColumn4.Width        = 72;
     base.AutoScaleDimensions = new SizeF(6f, 12f);
     base.AutoScaleMode       = AutoScaleMode.Font;
     base.ClientSize          = new Size(1387, 712);
     base.Controls.Add(splitContainer1);
     base.FormBorderStyle = FormBorderStyle.FixedSingle;
     base.Name            = "Form2";
     Text = "Form2";
     splitContainer1.Panel1.ResumeLayout(false);
     splitContainer1.Panel2.ResumeLayout(false);
     ((ISupportInitialize)splitContainer1).EndInit();
     splitContainer1.ResumeLayout(false);
     ((ISupportInitialize)pictureBox1).EndInit();
     splitContainer2.Panel1.ResumeLayout(false);
     splitContainer2.Panel1.PerformLayout();
     splitContainer2.Panel2.ResumeLayout(false);
     splitContainer2.Panel2.PerformLayout();
     ((ISupportInitialize)splitContainer2).EndInit();
     splitContainer2.ResumeLayout(false);
     toolStrip1.ResumeLayout(false);
     toolStrip1.PerformLayout();
     toolStrip2.ResumeLayout(false);
     toolStrip2.PerformLayout();
     ((ISupportInitialize)dataGridView1).EndInit();
     ((ISupportInitialize)dataGridView2).EndInit();
     ResumeLayout(false);
 }
示例#22
0
        public PACFForm(string rowName, double[] dataAr, int degree)
        {
            InitializeComponent();
            MenuStrip1                 = new System.Windows.Forms.MenuStrip();
            panel1                     = new System.Windows.Forms.Panel();
            splitContainer1            = new System.Windows.Forms.SplitContainer();
            ACzedGraphControl          = new ZedGraph.ZedGraphControl();
            PACzedGraphControl         = new ZedGraph.ZedGraphControl();
            panel2                     = new System.Windows.Forms.Panel();
            dataGridView1              = new System.Windows.Forms.DataGridView();
            SetDegreeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            levelToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
            MenuStrip1.SuspendLayout();
            panel1.SuspendLayout();
            splitContainer1.Panel1.SuspendLayout();
            splitContainer1.Panel2.SuspendLayout();
            splitContainer1.SuspendLayout();
            panel2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(dataGridView1)).BeginInit();
            SuspendLayout();

            MenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                SetDegreeToolStripMenuItem,
                levelToolStripMenuItem
            });
            MenuStrip1.Location = new System.Drawing.Point(0, 0);
            MenuStrip1.Name     = "MenuStrip1";
            MenuStrip1.Size     = new System.Drawing.Size(554, 24);
            MenuStrip1.TabIndex = 0;
            MenuStrip1.Text     = "menuStrip1";

            panel1.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)));
            panel1.Controls.Add(splitContainer1);
            panel1.Location = new System.Drawing.Point(0, 27);
            panel1.Name     = "panel1";
            panel1.Size     = new System.Drawing.Size(554, 283);
            panel1.TabIndex = 1;

            splitContainer1.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)));
            splitContainer1.Location    = new System.Drawing.Point(3, 3);
            splitContainer1.Name        = "splitContainer1";
            splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;

            splitContainer1.Panel1.Controls.Add(ACzedGraphControl);

            splitContainer1.Panel2.Controls.Add(PACzedGraphControl);
            splitContainer1.Size             = new System.Drawing.Size(548, 277);
            splitContainer1.SplitterDistance = 118;
            splitContainer1.TabIndex         = 0;

            ACzedGraphControl.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)));
            ACzedGraphControl.Location    = new System.Drawing.Point(3, 0);
            ACzedGraphControl.Name        = "ACzedGraphControl";
            ACzedGraphControl.ScrollGrace = 0;
            ACzedGraphControl.ScrollMaxX  = 0;
            ACzedGraphControl.ScrollMaxY  = 0;
            ACzedGraphControl.ScrollMaxY2 = 0;
            ACzedGraphControl.ScrollMinX  = 0;
            ACzedGraphControl.ScrollMinY  = 0;
            ACzedGraphControl.ScrollMinY2 = 0;
            ACzedGraphControl.Size        = new System.Drawing.Size(542, 115);
            ACzedGraphControl.TabIndex    = 0;

            PACzedGraphControl.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)));
            PACzedGraphControl.Location    = new System.Drawing.Point(3, 3);
            PACzedGraphControl.Name        = "PACzedGraphControl";
            PACzedGraphControl.ScrollGrace = 0;
            PACzedGraphControl.ScrollMaxX  = 0;
            PACzedGraphControl.ScrollMaxY  = 0;
            PACzedGraphControl.ScrollMaxY2 = 0;
            PACzedGraphControl.ScrollMinX  = 0;
            PACzedGraphControl.ScrollMinY  = 0;
            PACzedGraphControl.ScrollMinY2 = 0;
            PACzedGraphControl.Size        = new System.Drawing.Size(542, 149);
            PACzedGraphControl.TabIndex    = 0;

            panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
            panel2.Controls.Add(dataGridView1);
            panel2.Location = new System.Drawing.Point(0, 313);
            panel2.Name     = "panel2";
            panel2.Size     = new System.Drawing.Size(554, 89);
            panel2.TabIndex = 2;

            dataGridView1.AllowUserToAddRows = false;
            dataGridView1.Anchor             = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                                     | System.Windows.Forms.AnchorStyles.Right)));
            dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            dataGridView1.Location   = new System.Drawing.Point(3, 3);
            dataGridView1.Name       = "dataGridView1";
            dataGridView1.ReadOnly   = true;
            dataGridView1.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
            dataGridView1.Size       = new System.Drawing.Size(548, 80);
            dataGridView1.TabIndex   = 0;

            SetDegreeToolStripMenuItem.Name   = "SetDegreeToolStripMenuItem";
            SetDegreeToolStripMenuItem.Size   = new System.Drawing.Size(88, 20);
            SetDegreeToolStripMenuItem.Text   = "Порядок АКФ";
            SetDegreeToolStripMenuItem.Click += new System.EventHandler(SetDegreeToolStripMenuItem_Click);

            levelToolStripMenuItem.Name   = "levelToolStripMenuItem";
            levelToolStripMenuItem.Size   = new System.Drawing.Size(45, 20);
            levelToolStripMenuItem.Text   = "Поріг";
            levelToolStripMenuItem.Click += new System.EventHandler(levelToolStripMenuItem_Click);

            AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            ClientSize          = new System.Drawing.Size(554, 405);
            Controls.Add(panel2);
            Controls.Add(panel1);
            Controls.Add(MenuStrip1);
            MainMenuStrip = MenuStrip1;
            Name          = "PACFForm";
            Text          = "ЧАКФ та АКФ";
            MenuStrip1.ResumeLayout(false);
            MenuStrip1.PerformLayout();
            panel1.ResumeLayout(false);
            splitContainer1.Panel1.ResumeLayout(false);
            splitContainer1.Panel2.ResumeLayout(false);
            splitContainer1.ResumeLayout(false);
            panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(dataGridView1)).EndInit();
            ResumeLayout(false);
            PerformLayout();
            Text   += ". Ряд \"" + rowName + "\"";
            _dataAr = dataAr;
            if (degree < 0)
            {
                _degree = 0;
            }
            else
            {
                _degree = degree;
            }
            level = 0.2;
            Draw();
        }
示例#23
0
        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            Load      += new EventHandler(Help_Load);
            Shown     += new EventHandler(Help_Shown);
            TreeNode TreeNode1  = new TreeNode("Introduction");
            TreeNode TreeNode2  = new TreeNode("Prerequisites");
            TreeNode TreeNode3  = new TreeNode("Installation");
            TreeNode TreeNode4  = new TreeNode("Configuration");
            TreeNode TreeNode5  = new TreeNode("SQL Configuration");
            TreeNode TreeNode6  = new TreeNode("Command-Line Switches");
            TreeNode TreeNode7  = new TreeNode("Getting Started", new TreeNode[] { TreeNode2, TreeNode3, TreeNode4, TreeNode5, TreeNode6 });
            TreeNode TreeNode8  = new TreeNode("Main Menu");
            TreeNode TreeNode9  = new TreeNode("Connections");
            TreeNode TreeNode10 = new TreeNode("Config");
            TreeNode TreeNode11 = new TreeNode("Errors and Infos");
            TreeNode TreeNode12 = new TreeNode("Save As / Export");
            TreeNode TreeNode14 = new TreeNode("Screenshot Manager");
            TreeNode TreeNode15 = new TreeNode("Connection");
            TreeNode TreeNode16 = new TreeNode("Options");
            TreeNode TreeNode17 = new TreeNode("Update");
            TreeNode TreeNode18 = new TreeNode("SSH File Transfer");
            TreeNode TreeNode19 = new TreeNode("Quick Connect");
            TreeNode TreeNode20 = new TreeNode("Import From Active Directory");
            TreeNode TreeNode21 = new TreeNode("External Applications");
            TreeNode TreeNode22 = new TreeNode("Port Scan");
            TreeNode TreeNode23 = new TreeNode("User Interface", new TreeNode[] { TreeNode8, TreeNode9, TreeNode10, TreeNode11, TreeNode12, TreeNode14, TreeNode15, TreeNode16, TreeNode17, TreeNode18, TreeNode19, TreeNode20, TreeNode21, TreeNode22 });
            TreeNode TreeNode24 = new TreeNode("Quick Reference");
            TreeNode TreeNode25 = new TreeNode("Help", new TreeNode[] { TreeNode1, TreeNode7, TreeNode23, TreeNode24 });

            wbHelp = new WebBrowser();
            wbHelp.DocumentTitleChanged += new EventHandler(wbHelp_DocumentTitleChanged);
            tvIndex = new TreeView();
            tvIndex.NodeMouseClick += new TreeNodeMouseClickEventHandler(tvIndex_NodeMouseClick);
            tvIndex.AfterSelect    += new TreeViewEventHandler(tvIndex_AfterSelect);
            imgListHelp             = new ImageList(components);
            pnlSplitter             = new SplitContainer();
            lblDocName              = new Label();
            pnlSplitter.Panel1.SuspendLayout();
            pnlSplitter.Panel2.SuspendLayout();
            pnlSplitter.SuspendLayout();
            SuspendLayout();
            //
            //wbHelp
            //
            wbHelp.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom)
                             | AnchorStyles.Left)
                            | AnchorStyles.Right;
            wbHelp.Location               = new System.Drawing.Point(1, 36);
            wbHelp.MinimumSize            = new System.Drawing.Size(20, 20);
            wbHelp.Name                   = "wbHelp";
            wbHelp.ScriptErrorsSuppressed = true;
            wbHelp.Size                   = new System.Drawing.Size(327, 286);
            wbHelp.TabIndex               = 1;
            //
            //tvIndex
            //
            tvIndex.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom)
                              | AnchorStyles.Left)
                             | AnchorStyles.Right;
            tvIndex.BorderStyle   = BorderStyle.None;
            tvIndex.HideSelection = false;
            tvIndex.Location      = new System.Drawing.Point(1, 1);
            tvIndex.Name          = "tvIndex";
            TreeNode1.Name        = "Node0";
            TreeNode1.Tag         = "Introduction";
            TreeNode1.Text        = "Introduction";
            TreeNode2.Name        = "Node0";
            TreeNode2.Tag         = "Prerequisites";
            TreeNode2.Text        = "Prerequisites";
            TreeNode3.Name        = "Node3";
            TreeNode3.Tag         = "Installation";
            TreeNode3.Text        = "Installation";
            TreeNode4.Name        = "Node4";
            TreeNode4.Tag         = "Configuration";
            TreeNode4.Text        = "Configuration";
            TreeNode5.Name        = "Node0";
            TreeNode5.Tag         = "ConfigurationSQL";
            TreeNode5.Text        = "SQL Configuration";
            TreeNode6.Name        = "Node5";
            TreeNode6.Tag         = "CMDSwitches";
            TreeNode6.Text        = "Command-Line Switches";
            TreeNode7.Name        = "Node1";
            TreeNode7.Text        = "Getting Started";
            TreeNode8.Name        = "Node7";
            TreeNode8.Tag         = "MainMenu";
            TreeNode8.Text        = "Main Menu";
            TreeNode9.Name        = "Node8";
            TreeNode9.Tag         = "Connections";
            TreeNode9.Text        = "Connections";
            TreeNode10.Name       = "Node9";
            TreeNode10.Tag        = "Config";
            TreeNode10.Text       = "Config";
            TreeNode11.Name       = "Node10";
            TreeNode11.Tag        = "ErrorsAndInfos";
            TreeNode11.Text       = "Errors and Infos";
            TreeNode12.Name       = "Node11";
            TreeNode12.Tag        = "SaveAsExport";
            TreeNode12.Text       = "Save As / Export";
            TreeNode14.Name       = "Node13";
            TreeNode14.Tag        = "ScreenshotManager";
            TreeNode14.Text       = "Screenshot Manager";
            TreeNode15.Name       = "Node14";
            TreeNode15.Tag        = "Connection";
            TreeNode15.Text       = "Connection";
            TreeNode16.Name       = "Node15";
            TreeNode16.Tag        = "Options";
            TreeNode16.Text       = "Options";
            TreeNode17.Name       = "Node16";
            TreeNode17.Tag        = "Update";
            TreeNode17.Text       = "Update";
            TreeNode18.Name       = "Node17";
            TreeNode18.Tag        = "SSHFileTransfer";
            TreeNode18.Text       = "SSH File Transfer";
            TreeNode19.Name       = "Node18";
            TreeNode19.Tag        = "QuickConnect";
            TreeNode19.Text       = "Quick Connect";
            TreeNode20.Name       = "Node19";
            TreeNode20.Tag        = "ImportFromAD";
            TreeNode20.Text       = "Import From Active Directory";
            TreeNode21.Name       = "Node1";
            TreeNode21.Tag        = "ExternalTools";
            TreeNode21.Text       = "External Tools";
            TreeNode22.Name       = "Node0";
            TreeNode22.Tag        = "PortScan";
            TreeNode22.Text       = "Port Scan";
            TreeNode23.Name       = "Node6";
            TreeNode23.Text       = "User Interface";
            TreeNode24.Name       = "Node20";
            TreeNode24.Tag        = "QuickReference";
            TreeNode24.Text       = "Quick Reference";
            TreeNode25.Name       = "Node0";
            TreeNode25.Text       = "Help";
            TreeNode25.Tag        = "Index";
            tvIndex.Nodes.AddRange(new TreeNode[] { TreeNode25 });
            tvIndex.ShowRootLines = false;
            tvIndex.Size          = new System.Drawing.Size(207, 321);
            tvIndex.TabIndex      = 0;
            //
            //imgListHelp
            //
            imgListHelp.ColorDepth       = ColorDepth.Depth32Bit;
            imgListHelp.ImageSize        = new System.Drawing.Size(16, 16);
            imgListHelp.TransparentColor = System.Drawing.Color.Transparent;
            //
            //pnlSplitter
            //
            pnlSplitter.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom)
                                  | AnchorStyles.Left)
                                 | AnchorStyles.Right;
            pnlSplitter.FixedPanel = FixedPanel.Panel1;
            pnlSplitter.Location   = new System.Drawing.Point(0, 0);
            pnlSplitter.Name       = "pnlSplitter";
            //
            //pnlSplitter.Panel1
            //
            pnlSplitter.Panel1.Controls.Add(tvIndex);
            //
            //pnlSplitter.Panel2
            //
            pnlSplitter.Panel2.Controls.Add(lblDocName);
            pnlSplitter.Panel2.Controls.Add(wbHelp);
            pnlSplitter.Size             = new System.Drawing.Size(542, 323);
            pnlSplitter.SplitterDistance = 209;
            pnlSplitter.TabIndex         = 2;
            //
            //lblDocName
            //
            lblDocName.Anchor = (AnchorStyles.Top | AnchorStyles.Left)
                                | AnchorStyles.Right;
            lblDocName.BackColor = System.Drawing.Color.DimGray;
            lblDocName.Font      = new System.Drawing.Font("Segoe UI", 12.0F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, Convert.ToByte(0));
            lblDocName.ForeColor = System.Drawing.Color.White;
            lblDocName.Location  = new System.Drawing.Point(1, 1);
            lblDocName.Name      = "lblDocName";
            lblDocName.Size      = new System.Drawing.Size(327, 35);
            lblDocName.TabIndex  = 2;
            lblDocName.Text      = "Introduction";
            lblDocName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            //
            //Help
            //
            ClientSize = new System.Drawing.Size(542, 323);
            Controls.Add(pnlSplitter);
            Icon    = Resources.Help_Icon;
            Name    = "Help";
            TabText = "Help";
            Text    = "Help";
            pnlSplitter.Panel1.ResumeLayout(false);
            pnlSplitter.Panel2.ResumeLayout(false);
            pnlSplitter.ResumeLayout(false);
            ResumeLayout(false);
        }
示例#24
0
 private void InitializeComponent()
 {
     _actionsTxt      = new RichTextBox();
     _splitContainer1 = new SplitContainer();
     _viewLogBtn      = new Button();
     _closeBtn        = new Button();
     _progressBar     = new ProgressBar();
     _splitContainer1.Panel1.SuspendLayout();
     _splitContainer1.Panel2.SuspendLayout();
     _splitContainer1.SuspendLayout();
     SuspendLayout();
     _actionsTxt.Dock                 = DockStyle.Fill;
     _actionsTxt.Location             = new Point(0, 0);
     _actionsTxt.Name                 = "_actionsTxt";
     _actionsTxt.ReadOnly             = true;
     _actionsTxt.Size                 = new Size(338, 141);
     _actionsTxt.TabIndex             = 0;
     _actionsTxt.Text                 = "";
     _splitContainer1.Dock            = DockStyle.Fill;
     _splitContainer1.IsSplitterFixed = true;
     _splitContainer1.Location        = new Point(0, 0);
     _splitContainer1.Name            = "_splitContainer1";
     _splitContainer1.Orientation     = Orientation.Horizontal;
     _splitContainer1.Panel1.Controls.Add(_actionsTxt);
     _splitContainer1.Panel2.Controls.Add(_progressBar);
     _splitContainer1.Panel2.Controls.Add(_viewLogBtn);
     _splitContainer1.Panel2.Controls.Add(_closeBtn);
     _splitContainer1.Size             = new Size(338, 171);
     _splitContainer1.SplitterDistance = 141;
     _splitContainer1.TabIndex         = 1;
     _viewLogBtn.Enabled  = false;
     _viewLogBtn.Location = new Point(84, 2);
     _viewLogBtn.Name     = "_viewLogBtn";
     _viewLogBtn.Size     = new Size(75, 23);
     _viewLogBtn.TabIndex = 1;
     _viewLogBtn.Text     = "View Log";
     _viewLogBtn.UseVisualStyleBackColor = true;
     _viewLogBtn.Click += ViewLogBtn_Click;
     _closeBtn.Enabled  = false;
     _closeBtn.Location = new Point(3, 2);
     _closeBtn.Name     = "_closeBtn";
     _closeBtn.Size     = new Size(75, 23);
     _closeBtn.TabIndex = 0;
     _closeBtn.Text     = "Close";
     _closeBtn.UseVisualStyleBackColor = true;
     _closeBtn.Click      += CloseBtn_Click;
     _progressBar.Location = new Point(165, 2);
     _progressBar.Name     = "_progressBar";
     _progressBar.Size     = new Size(170, 23);
     _progressBar.TabIndex = 2;
     AutoScaleDimensions   = new SizeF(6f, 13f);
     AutoScaleMode         = AutoScaleMode.Font;
     ClientSize            = new Size(338, 171);
     Controls.Add(_splitContainer1);
     FormBorderStyle = FormBorderStyle.FixedToolWindow;
     Name            = "ActionsWindow";
     Text            = "ExecuteActions";
     _splitContainer1.Panel1.ResumeLayout(false);
     _splitContainer1.Panel2.ResumeLayout(false);
     _splitContainer1.ResumeLayout(false);
     ResumeLayout(false);
 }
示例#25
0
 public BinaryCompareTabPage(FileInfo[] files)
 {
     components      = new Container();
     leftFilesList   = new BindingList <FileInfo>();
     leftBlocksList  = new BindingList <ByteBlock>();
     rightFilesList  = new BindingList <FileInfo>();
     rightBlocksList = new BindingList <ByteBlock>();
     if (files.Length > 0)
     {
         leftFilesList.Add(files[0]);
         if (files.Length > 1)
         {
             rightFilesList.Add(files[1]);
             for (int i = 2; i < files.Length; i++)
             {
                 leftFilesList.Add(files[i]);
                 rightFilesList.Add(files[i]);
             }
         }
     }
     leftFilesBindingSource   = new BindingSource(components);
     leftBlocksBindingSource  = new BindingSource(components);
     rightFilesBindingSource  = new BindingSource(components);
     rightBlocksBindingSource = new BindingSource(components);
     SuspendLayout();
     outerTableLayoutPanel = new TableLayoutPanel();
     outerTableLayoutPanel.SuspendLayout();
     Controls.Add(outerTableLayoutPanel);
     outerTableLayoutPanel.RowCount = 2;
     outerTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100.0f));
     outerTableLayoutPanel.RowStyles.Add(new RowStyle());
     outerTableLayoutPanel.ColumnCount = 3;
     outerTableLayoutPanel.ColumnStyles.Add(new ColumnStyle());
     outerTableLayoutPanel.ColumnStyles.Add(new ColumnStyle());
     outerTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100.0f));
     splitContainer = new SplitContainer();
     splitContainer.SuspendLayout();
     outerTableLayoutPanel.Controls.Add(splitContainer, 0, 0);
     outerTableLayoutPanel.SetColumnSpan(splitContainer, 3);
     // #region leftTableLayoutPanel
     leftTableLayoutPanel = new TableLayoutPanel();
     leftTableLayoutPanel.SuspendLayout();
     splitContainer.Panel1.Controls.Add(leftTableLayoutPanel);
     leftTableLayoutPanel.RowCount = 2;
     leftTableLayoutPanel.RowStyles.Add(new RowStyle());
     leftTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100.0f));
     leftTableLayoutPanel.ColumnCount = 2;
     leftTableLayoutPanel.ColumnStyles.Add(new ColumnStyle());
     leftTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100.0f));
     leftFileLabel = new Label();
     leftTableLayoutPanel.Controls.Add(leftFileLabel, 0, 0);
     leftFileComboBox = new ComboBox();
     leftTableLayoutPanel.Controls.Add(leftFileComboBox, 1, 0);
     leftBlocksDataGridView = new DataGridView();
     leftTableLayoutPanel.Controls.Add(leftBlocksDataGridView, 1, 0);
     leftTableLayoutPanel.SetColumnSpan(leftBlocksDataGridView, 2);
     // #endregion
     // #region rightTableLayoutPanel
     rightTableLayoutPanel = new TableLayoutPanel();
     rightTableLayoutPanel.SuspendLayout();
     splitContainer.Panel2.Controls.Add(rightTableLayoutPanel);
     rightTableLayoutPanel.RowCount = 2;
     rightTableLayoutPanel.RowStyles.Add(new RowStyle());
     rightTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100.0f));
     rightTableLayoutPanel.ColumnCount = 2;
     rightTableLayoutPanel.ColumnStyles.Add(new ColumnStyle());
     rightTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100.0f));
     rightFileLabel = new Label();
     rightTableLayoutPanel.Controls.Add(rightFileLabel, 0, 0);
     rightFileComboBox = new ComboBox();
     rightTableLayoutPanel.Controls.Add(rightFileComboBox, 1, 0);
     rightBlocksDataGridView = new DataGridView();
     rightTableLayoutPanel.Controls.Add(rightBlocksDataGridView, 1, 0);
     rightTableLayoutPanel.SetColumnSpan(rightBlocksDataGridView, 2);
     // #endregion
     lineNumberHeadingLabel = new Label();
     outerTableLayoutPanel.Controls.Add(lineNumberHeadingLabel, 0, 1);
     lineNumberValueLabel = new Label();
     outerTableLayoutPanel.Controls.Add(lineNumberValueLabel, 1, 1);
     lineOverLineTextBox = new TextBox();
     outerTableLayoutPanel.Controls.Add(lineOverLineTextBox, 2, 1);
 }
示例#26
0
        private void Init()
        {
            if (s_schemaLoader == null)
            {
                s_schemaLoader = new SchemaLoader();
            }
            m_PropertyGrid = new PropertyGrid(PropertyGridMode.PropertySorting | PropertyGridMode.DisplayDescriptions | PropertyGridMode.HideResetAllButton);
            m_treeControl  = new TreeControl();
            m_menu         = new MenuStrip();
            var fileMenu = new ToolStripMenuItem();
            var newMenu  = new ToolStripMenuItem();
            var openMenu = new ToolStripMenuItem();

            var exitMenu = new ToolStripMenuItem();
            var splitter = new SplitContainer();

            m_menu.SuspendLayout();
            splitter.BeginInit();
            splitter.Panel1.SuspendLayout();
            splitter.Panel2.SuspendLayout();
            splitter.SuspendLayout();

            SuspendLayout();

            // m_menu
            m_menu.Location = new System.Drawing.Point(0, 0);
            m_menu.Name     = "m_menu";
            m_menu.TabIndex = 0;
            m_menu.Text     = "m_menu";
            m_menu.Items.Add(fileMenu);


            // file
            fileMenu.Name             = "fileToolStripMenuItem";
            fileMenu.Size             = new System.Drawing.Size(37, 20);
            fileMenu.Text             = "File".Localize();
            fileMenu.DropDownOpening += new EventHandler(fileMenu_DropDownOpening);
            fileMenu.DropDownItems.AddRange(new ToolStripItem[]
            {
                newMenu,
                openMenu,
                m_openFolderMenu,
                m_saveMenu,
                m_saveAsMenu,
                exitMenu
            });

            // new
            newMenu.Name         = "newToolStripMenuItem";
            newMenu.ShortcutKeys = Keys.Control | Keys.N;
            newMenu.Text         = "New".Localize();
            newMenu.Click       += NewToolStripMenuItem_Click;

            //open
            openMenu.Name         = "openToolStripMenuItem";
            openMenu.ShortcutKeys = Keys.Control | Keys.O;
            openMenu.Text         = "Open...".Localize();
            openMenu.Click       += OpenToolStripMenuItem_Click;


            // open containing folder
            m_openFolderMenu.Name   = "OpenFolderMenu";
            m_openFolderMenu.Text   = "Open Containing Folder".Localize();
            m_openFolderMenu.Click += new EventHandler(OpenFolderMenu_Click);

            //save
            m_saveMenu.Name         = "saveToolStripMenuItem";
            m_saveMenu.ShortcutKeys = Keys.Control | Keys.S;
            m_saveMenu.Text         = "Save".Localize();
            m_saveMenu.Click       += SaveToolStripMenuItem_Click;

            // save as
            m_saveAsMenu.Name   = "saveAsToolStripMenuItem";
            m_saveAsMenu.Text   = "Save As...".Localize();
            m_saveAsMenu.Click += SaveAsToolStripMenuItem_Click;

            // exit
            exitMenu.Name   = "exitToolStripMenuItem";
            exitMenu.Text   = "Exit".Localize();
            exitMenu.Click += ExitToolStripMenuItem_Click;

            // tree control
            m_treeControl.Dock          = DockStyle.Fill;
            m_treeControl.Name          = "m_treeControl";
            m_treeControl.TabIndex      = 1;
            m_treeControl.Width         = 150;
            m_treeControl.ShowRoot      = false;
            m_treeControl.AllowDrop     = false;
            m_treeControl.SelectionMode = SelectionMode.One;
            m_treeControlAdapter        = new TreeControlAdapter(m_treeControl);

            // propertyGrid1
            m_PropertyGrid.Dock            = DockStyle.Fill;
            m_PropertyGrid.Name            = "propertyGrid1";
            m_PropertyGrid.TabIndex        = 3;
            m_PropertyGrid.PropertySorting = PropertySorting.None;

            // splitter
            splitter.Dock = DockStyle.Fill;
            splitter.Name = "splitContainer1";
            splitter.Panel1.Controls.Add(m_treeControl);
            splitter.Panel2.Controls.Add(m_PropertyGrid);
            splitter.SplitterDistance = 100;
            splitter.TabIndex         = 1;

            AutoScaleMode = AutoScaleMode.Font;
            ClientSize    = new System.Drawing.Size(600, 400);
            Controls.Add(splitter);
            Controls.Add(m_menu);
            MainMenuStrip = m_menu;
            Name          = "SkinEditor";
            Icon          = GdiUtil.CreateIcon(ResourceUtil.GetImage(Sce.Atf.Resources.AtfIconImage));
            UpdateTitleText();
            m_menu.ResumeLayout(false);
            m_menu.PerformLayout();
            splitter.Panel1.ResumeLayout(false);
            splitter.Panel2.ResumeLayout(false);
            splitter.EndInit();
            splitter.ResumeLayout(false);

            ResumeLayout(false);
            PerformLayout();
            splitter.SplitterDistance = 170;
        }
示例#27
0
        private void Initialize()
        {
            #region [declare new]

            components      = new Container();
            splitTimer      = new Timer(components);
            split_container = new SplitContainer();
            fpanel          = new XShadowPanel();
            finner_panel    = new Panel();
            btn_list        = new OfficeButton();
            btn_new         = new OfficeButton();
            btn_edit        = new OfficeButton();
            btn_delete      = new OfficeButton();
            btn_print       = new OfficeButton();
            btn_splitter    = new OfficeButton();
            lbl_header      = new Header();
            btn_close       = new CloseButton();

            txt_receipt_no     = new XTextBox();
            lbl_receipt_no     = new XLabel();
            txt_receipt_date   = new xDatepicker();
            lbl_receipt_date   = new XLabel();
            txt_party_id       = new LookupBox();
            lbl_party_id       = new XLabel();
            txt_receipttype_id = new LookupBox();
            lbl_receipttype_id = new XLabel();
            txt_cheq_no        = new XTextBox();
            lbl_cheq_no        = new XLabel();
            txt_receipt_amount = new XTextBox();
            lbl_receipt_amount = new XLabel();
            txt_cheq_date      = new XTextBox();
            lbl_cheq_date      = new XLabel();
            txt_bank_id        = new LookupBox();
            lbl_bank_id        = new XLabel();
            editgrid           = new EditGridView();
            txt_total_amount   = new XTextBox();
            lbl_total_amount   = new XLabel();

            txt_notes  = new RichTextBox();
            lbl_notes  = new XLabel();
            btn_save   = new OfficeButton();
            btn_active = new OfficeButton();

            #endregion [declare new]

            #region [container suspend]

            ((ISupportInitialize)(split_container)).BeginInit();
            ((ISupportInitialize)(editgrid)).BeginInit();
            split_container.Panel1.SuspendLayout();
            split_container.Panel2.SuspendLayout();
            split_container.SuspendLayout();
            fpanel.SuspendLayout();
            finner_panel.SuspendLayout();
            SuspendLayout();

            #endregion [container suspend]

            #region [splitTimer]

            splitTimer.Interval = 2;
            splitTimer.Tick    += new EventHandler(SplitTimer_Tick);

            #endregion [splitTimer]

            #region [split_container]

            split_container.Dock             = DockStyle.Fill;
            split_container.Location         = new Point(0, 0);
            split_container.Name             = "split_container";
            split_container.BackColor        = XTheme.Splitcontainer_colour;
            split_container.Size             = XSize.FSplitcontainer;
            split_container.SplitterDistance = XSize.Screen_Width;
            split_container.TabIndex         = XTab.Splitcontainer;

            // split_container.Panel1

            split_container.Panel1.Controls.Add(fpanel);

            #region [split_container.Panel2]

            split_container.Panel2.Controls.Add(btn_print);
            split_container.Panel2.Controls.Add(btn_delete);
            split_container.Panel2.Controls.Add(btn_edit);
            split_container.Panel2.Controls.Add(btn_new);
            split_container.Panel2.Controls.Add(btn_list);
            split_container.Panel2.Controls.Add(btn_splitter);

            btn_list.Font     = XFont.BtnFont;
            btn_list.Location = XLayout.FormFirstBtn;
            btn_list.Size     = XSize.BtnOne;
            btn_list.TabIndex = 1;
            btn_list.Name     = "btn_list";
            btn_list.Text     = "&List";
            btn_list.Themes   = XTheme.BlueBtn;
            btn_list.Click   += Btn_list_Click;

            btn_new.Font     = XFont.BtnFont;
            btn_new.Location = XLayout.BtnLocation(btn_list.Location);
            btn_new.Size     = XSize.BtnOne;
            btn_new.TabIndex = XTab.Index(btn_list.TabIndex);
            btn_new.Name     = "btn_new";
            btn_new.Text     = "&New";
            btn_new.Themes   = XTheme.BlueBtn;
            btn_new.Click   += Btn_new_Click;

            btn_edit.Font     = XFont.BtnFont;
            btn_edit.Location = XLayout.BtnLocation(btn_new.Location);
            btn_edit.Size     = XSize.BtnOne;
            btn_edit.TabIndex = XTab.Index(btn_new.TabIndex);
            btn_edit.Name     = "btn_edit";
            btn_edit.Text     = "&Edit";
            btn_edit.Themes   = XTheme.BlueBtn;
            btn_edit.Click   += Btn_edit_Click;

            btn_delete.Font     = XFont.BtnFont;
            btn_delete.Location = XLayout.BtnLocation(btn_edit.Location);
            btn_delete.Size     = XSize.BtnOne;
            btn_delete.TabIndex = XTab.Index(btn_edit.TabIndex);
            btn_delete.Name     = "btn_delete";
            btn_delete.Text     = "&Delete";
            btn_delete.Themes   = XTheme.BlueBtn;
            btn_delete.Click   += Btn_delete_Click;

            btn_print.Font     = XFont.BtnFont;
            btn_print.Location = XLayout.BtnLocation(btn_delete.Location);
            btn_print.Size     = XSize.BtnOne;
            btn_print.TabIndex = XTab.Index(btn_delete.TabIndex);
            btn_print.Name     = "btn_print";
            btn_print.Text     = "&Print";
            btn_print.Themes   = XTheme.BlueBtn;
            btn_print.Click   += Btn_print_Click;

            btn_splitter.Font     = XFont.BtnFont;
            btn_splitter.Location = XLayout.Splitter;
            btn_splitter.Size     = XSize.Splitter;
            btn_splitter.TabIndex = XTab.Index(btn_print.TabIndex);
            btn_splitter.Name     = "btn_splitter";
            btn_splitter.Text     = "⁞⁞";
            btn_splitter.Themes   = XTheme.WhiteBtn;
            btn_splitter.Click   += new EventHandler(Btn_splitter_Click);

            #endregion [split_container.Panel2]

            #endregion [split_container]

            #region [fpanel]

            fpanel.Name      = "fpanel";
            fpanel.Anchor    = XAnchor.LTR;
            fpanel.Size      = XSize.FPanel;
            fpanel.Location  = XLayout.FPanel;
            fpanel.BackColor = XTheme.FPanel;
            fpanel.Controls.Add(finner_panel);
            fpanel.Controls.Add(btn_close);
            fpanel.Controls.Add(lbl_header);

            #endregion [fpanel]

            #region [finner_panel]

            finner_panel.Anchor     = XAnchor.LTR;
            finner_panel.Cursor     = Cursors.Default;
            finner_panel.Name       = "finner_panel";
            finner_panel.Size       = XSize.FInnerPanel;
            finner_panel.Location   = XLayout.FInnerPanel;
            finner_panel.BackColor  = XTheme.FInnerpanel;
            finner_panel.AutoScroll = true;

            #region [adding controls]

            finner_panel.Controls.Add(txt_notes);
            finner_panel.Controls.Add(lbl_notes);
            finner_panel.Controls.Add(txt_receipt_no);
            finner_panel.Controls.Add(lbl_receipt_no);
            finner_panel.Controls.Add(txt_receipt_date);
            finner_panel.Controls.Add(lbl_receipt_date);
            finner_panel.Controls.Add(txt_party_id);
            finner_panel.Controls.Add(lbl_party_id);
            finner_panel.Controls.Add(txt_receipttype_id);
            finner_panel.Controls.Add(lbl_receipttype_id);
            finner_panel.Controls.Add(txt_cheq_no);
            finner_panel.Controls.Add(lbl_cheq_no);
            finner_panel.Controls.Add(txt_receipt_amount);
            finner_panel.Controls.Add(lbl_receipt_amount);
            finner_panel.Controls.Add(txt_cheq_date);
            finner_panel.Controls.Add(lbl_cheq_date);
            finner_panel.Controls.Add(txt_bank_id);
            finner_panel.Controls.Add(lbl_bank_id);
            finner_panel.Controls.Add(txt_total_amount);
            finner_panel.Controls.Add(lbl_total_amount);
            finner_panel.Controls.Add(editgrid);
            finner_panel.Controls.Add(btn_save);
            finner_panel.Controls.Add(btn_active);

            #endregion [adding controls]

            #region [Header]

            btn_close.Click += new EventHandler(Btn_close_Click);

            lbl_header.Text = "Receipt";

            #endregion [Header]

            #region [Properties of control]

            lbl_receipt_no.Font      = XFont.Font_10B;
            lbl_receipt_no.Name      = "lbl_receipt_no";
            lbl_receipt_no.Text      = "   Receipt no";
            lbl_receipt_no.Anchor    = XAnchor.LT;
            lbl_receipt_no.TextAlign = ContentAlignment.MiddleLeft;
            lbl_receipt_no.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_receipt_no.Size      = XSize.OneLabel;
            lbl_receipt_no.Location  = XLayout.FirstLabel;

            txt_receipt_no.Font              = XFont.TxtFont;
            txt_receipt_no.ForeColor         = XFontColor.TxtFontColor;
            txt_receipt_no.BackColor         = XTheme.TxtBackcolor;
            txt_receipt_no.Name              = "txt_receipt_no";
            txt_receipt_no.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_receipt_no.TextAlign         = HorizontalAlignment.Left;
            txt_receipt_no.Size              = XSize.TwoText;
            txt_receipt_no.Anchor            = XAnchor.LT;
            txt_receipt_no.Location          = XLayout.FirstText;
            txt_receipt_no.TabIndex          = XTab.Txt_TabIndex;
            txt_receipt_no.Enter            += new EventHandler(Txt_receipt_no_Enter);


            lbl_receipt_date.Font      = XFont.Font_10B;
            lbl_receipt_date.Name      = "lbl_receipt_date";
            lbl_receipt_date.Text      = "   Receipt date";
            lbl_receipt_date.Anchor    = XAnchor.LT;
            lbl_receipt_date.TextAlign = ContentAlignment.MiddleLeft;
            lbl_receipt_date.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_receipt_date.Size      = XSize.TwoLabel;
            lbl_receipt_date.Location  = XLayout.R1_2Label_2(lbl_receipt_no.Location);

            txt_receipt_date.Font         = XFont.TxtFont;
            txt_receipt_date.ForeColor    = XFontColor.TxtFontColor;
            txt_receipt_date.BackColor    = XTheme.TxtBackcolor;
            txt_receipt_date.Name         = "txt_receipt_date";
            txt_receipt_date.CustomFormat = "dd-MM-yyyy";
            txt_receipt_date.Format       = DateTimePickerFormat.Custom;
            txt_receipt_date.Size         = XSize.TwoText;
            txt_receipt_date.Anchor       = XAnchor.LTR;
            txt_receipt_date.Location     = XLayout.R1_2Text_2(txt_receipt_no.Location);
            txt_receipt_date.TabIndex     = XTab.Index(txt_receipt_no.TabIndex);
            txt_receipt_date.Enter       += new EventHandler(Txt_receipt_date_Enter);


            lbl_party_id.Font      = XFont.Font_10B;
            lbl_party_id.Name      = "lbl_party_id";
            lbl_party_id.Text      = "   Party";
            lbl_party_id.Anchor    = XAnchor.LT;
            lbl_party_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_party_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_party_id.Size      = XSize.OneLabel;
            lbl_party_id.Location  = XLayout.R1_Label(lbl_receipt_date.Location);

            txt_party_id.Font              = XFont.TxtFont;
            txt_party_id.ForeColor         = XFontColor.TxtFontColor;
            txt_party_id.BackColor         = XTheme.TxtBackcolor;
            txt_party_id.Name              = "txt_party_id";
            txt_party_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_party_id.TextAlign         = HorizontalAlignment.Left;
            txt_party_id.Size              = XSize.OneText;
            txt_party_id.Anchor            = XAnchor.LTR;
            txt_party_id.Location          = XLayout.R1_Text(txt_receipt_date.Location);
            txt_party_id.TabIndex          = XTab.Index(txt_receipt_date.TabIndex);
            txt_party_id.Enter            += new EventHandler(Txt_party_id_Enter);


            lbl_receipttype_id.Font      = XFont.Font_10B;
            lbl_receipttype_id.Name      = "lbl_receipttype_id";
            lbl_receipttype_id.Text      = "Receipt type";
            lbl_receipttype_id.Anchor    = XAnchor.LT;
            lbl_receipttype_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_receipttype_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_receipttype_id.Size      = XSize.OneLabel;
            lbl_receipttype_id.Location  = XLayout.R2_2Label_1(lbl_party_id.Location);

            txt_receipttype_id.Font              = XFont.TxtFont;
            txt_receipttype_id.ForeColor         = XFontColor.TxtFontColor;
            txt_receipttype_id.BackColor         = XTheme.TxtBackcolor;
            txt_receipttype_id.Name              = "txt_receipttype_id";
            txt_receipttype_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_receipttype_id.TextAlign         = HorizontalAlignment.Left;
            txt_receipttype_id.Size              = XSize.TwoText;
            txt_receipttype_id.Anchor            = XAnchor.LT;
            txt_receipttype_id.Location          = XLayout.R2_2Text_1(txt_party_id.Location);
            txt_receipttype_id.TabIndex          = XTab.Index(txt_party_id.TabIndex);
            txt_receipttype_id.Enter            += new EventHandler(Txt_receipttype_id_Enter);
            txt_receipttype_id.TextChanged      += Txt_receipttype_id_TextChanged;


            lbl_cheq_no.Font      = XFont.Font_10B;
            lbl_cheq_no.Name      = "lbl_cheq_no";
            lbl_cheq_no.Text      = "   Cheq no";
            lbl_cheq_no.Anchor    = XAnchor.LT;
            lbl_cheq_no.TextAlign = ContentAlignment.MiddleLeft;
            lbl_cheq_no.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_cheq_no.Size      = XSize.OneLabel;
            lbl_cheq_no.Location  = XLayout.R2_2Label_1(lbl_receipttype_id.Location);

            txt_cheq_no.Font              = XFont.TxtFont;
            txt_cheq_no.ForeColor         = XFontColor.TxtFontColor;
            txt_cheq_no.BackColor         = XTheme.TxtBackcolor;
            txt_cheq_no.Name              = "txt_cheq_no";
            txt_cheq_no.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_cheq_no.TextAlign         = HorizontalAlignment.Left;
            txt_cheq_no.Size              = XSize.TwoText;
            txt_cheq_no.Anchor            = XAnchor.LT;
            txt_cheq_no.Location          = XLayout.R2_2Text_1(txt_receipttype_id.Location);
            txt_cheq_no.TabIndex          = XTab.Index(txt_receipttype_id.TabIndex);
            txt_cheq_no.Enter            += new EventHandler(Txt_cheq_no_Enter);


            lbl_receipt_amount.Font      = XFont.Font_10B;
            lbl_receipt_amount.Name      = "lbl_receipt_amount";
            lbl_receipt_amount.Text      = "       Amount";
            lbl_receipt_amount.Anchor    = XAnchor.LT;
            lbl_receipt_amount.TextAlign = ContentAlignment.MiddleLeft;
            lbl_receipt_amount.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_receipt_amount.Size      = new Size(XSize.TwoLabelWidth, 48);
            lbl_receipt_amount.Location  = XLayout.R2_2Label_2(lbl_receipttype_id.Location);

            txt_receipt_amount.Font              = XFont.Font_20B;
            txt_receipt_amount.ForeColor         = XFontColor.TxtFontColor;
            txt_receipt_amount.BackColor         = XTheme.TxtBackcolor;
            txt_receipt_amount.Name              = "txt_receipt_amount";
            txt_receipt_amount.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_receipt_amount.TextAlign         = HorizontalAlignment.Right;
            txt_receipt_amount.Size              = new Size(XSize.TwoTxtColumn, 56);
            txt_receipt_amount.Anchor            = XAnchor.LTR;
            txt_receipt_amount.Location          = XLayout.R2_2Text_2(txt_receipttype_id.Location);
            txt_receipt_amount.TabIndex          = XTab.Index(txt_cheq_no.TabIndex);
            txt_receipt_amount.Enter            += new EventHandler(Txt_receipt_amount_Enter);


            lbl_cheq_date.Font      = XFont.Font_10B;
            lbl_cheq_date.Name      = "lbl_cheq_date";
            lbl_cheq_date.Text      = "   Cheq date";
            lbl_cheq_date.Anchor    = XAnchor.LT;
            lbl_cheq_date.TextAlign = ContentAlignment.MiddleLeft;
            lbl_cheq_date.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_cheq_date.Size      = XSize.OneLabel;
            lbl_cheq_date.Location  = XLayout.R2_2Label_1(lbl_cheq_no.Location);

            txt_cheq_date.Font              = XFont.TxtFont;
            txt_cheq_date.ForeColor         = XFontColor.TxtFontColor;
            txt_cheq_date.BackColor         = XTheme.TxtBackcolor;
            txt_cheq_date.Name              = "txt_cheq_date";
            txt_cheq_date.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_cheq_date.TextAlign         = HorizontalAlignment.Left;
            txt_cheq_date.Size              = XSize.TwoText;
            txt_cheq_date.Anchor            = XAnchor.LT;
            txt_cheq_date.Location          = XLayout.R2_2Text_1(txt_cheq_no.Location);
            txt_cheq_date.TabIndex          = XTab.Index(txt_receipt_amount.TabIndex);
            txt_cheq_date.Enter            += new EventHandler(Txt_cheq_date_Enter);


            lbl_bank_id.Font      = XFont.Font_10B;
            lbl_bank_id.Name      = "lbl_bank_id";
            lbl_bank_id.Text      = "   Bank";
            lbl_bank_id.Anchor    = XAnchor.LT;
            lbl_bank_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_bank_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_bank_id.Size      = XSize.OneLabel;
            lbl_bank_id.Location  = XLayout.R2_2Label_1(lbl_cheq_date.Location);

            txt_bank_id.Font              = XFont.TxtFont;
            txt_bank_id.ForeColor         = XFontColor.TxtFontColor;
            txt_bank_id.BackColor         = XTheme.TxtBackcolor;
            txt_bank_id.Name              = "txt_bank_id";
            txt_bank_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_bank_id.TextAlign         = HorizontalAlignment.Left;
            txt_bank_id.Size              = XSize.TwoText;
            txt_bank_id.Anchor            = XAnchor.LT;
            txt_bank_id.Location          = XLayout.R2_2Text_1(txt_cheq_date.Location);
            txt_bank_id.TabIndex          = XTab.Index(txt_cheq_date.TabIndex);
            txt_bank_id.Enter            += new EventHandler(Txt_bank_id_Enter);

            editgrid.Location  = new Point(XLayout.H_left, lbl_bank_id.Bottom + 10);
            editgrid.Name      = "editgrid";
            editgrid.Size      = new Size(finner_panel.Width - 50, 220);
            editgrid.TabIndex  = XTab.Index(txt_bank_id.TabIndex);
            editgrid.RowsLimit = 12;
            Point p = new Point(editgrid.Left, editgrid.Bottom - 10);

            lbl_total_amount.Font      = XFont.Font_10B;
            lbl_total_amount.Name      = "lbl_total_amount";
            lbl_total_amount.Text      = "Total amount";
            lbl_total_amount.Anchor    = XAnchor.LT;
            lbl_total_amount.TextAlign = ContentAlignment.MiddleLeft;
            lbl_total_amount.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_total_amount.Size      = XSize.FourLabel;
            lbl_total_amount.Location  = XLayout.R2_4Label_4(p);

            txt_total_amount.Font              = XFont.TxtFont;
            txt_total_amount.ForeColor         = XFontColor.TxtFontColor;
            txt_total_amount.BackColor         = XTheme.TxtBackcolor;
            txt_total_amount.Name              = "txt_total_amount";
            txt_total_amount.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_total_amount.ReadOnly          = true;
            txt_total_amount.Cursor            = Cursors.No;
            txt_total_amount.TextAlign         = HorizontalAlignment.Right;
            txt_total_amount.Size              = XSize.FourText;
            txt_total_amount.Anchor            = XAnchor.LTR;
            txt_total_amount.Location          = XLayout.R2_4Text_4(p);
            txt_total_amount.TabIndex          = XTab.Index(editgrid.TabIndex + 5);
            txt_total_amount.Enter            += new EventHandler(Txt_total_amount_Enter);


            lbl_notes.Font      = XFont.Font_10B;
            lbl_notes.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_notes.Location  = XLayout.LblNotes;
            lbl_notes.Size      = XSize.LblNotes;
            lbl_notes.Anchor    = XAnchor.LB;
            lbl_notes.Name      = "lbl_notes";
            lbl_notes.Text      = "   Notes";
            lbl_notes.TextAlign = ContentAlignment.MiddleLeft;
            lbl_notes.Click    += new EventHandler(Lbl_notes_Click);

            txt_notes.Font      = Theme.txtFont;
            txt_notes.ForeColor = Theme.txtForeColor;
            txt_notes.BackColor = Theme.White;
            txt_notes.Location  = XLayout.TxtNotes;
            txt_notes.Size      = XSize.TxtNotes;
            txt_notes.Name      = "txt_notes";
            txt_notes.Anchor    = XAnchor.LRB;
            txt_notes.TabIndex  = XTab.Index(txt_total_amount.TabIndex);
            txt_notes.Enter    += new EventHandler(Txt_notes_Enter);

            #endregion [Properties of control]

            #region [Properties of btn]

            btn_save.Anchor   = XAnchor.RB;
            btn_save.Font     = XFont.BtnFont;
            btn_save.Size     = XSize.BtnOne;
            btn_save.Location = XLayout.BtnSave;
            btn_save.TabIndex = XTab.Index(editgrid.TabIndex);
            btn_save.Name     = "btn_save";
            btn_save.Text     = "&SAVE";
            btn_save.Themes   = XTheme.BlueBtn;
            btn_save.Click   += new EventHandler(Btn_save_click);

            btn_active.Anchor   = XAnchor.RB;
            btn_active.Font     = XFont.BtnFont;
            btn_active.Size     = XSize.BtnOne;
            btn_active.Location = XLayout.BtnActive;
            btn_active.TabIndex = XTab.Index(btn_save.TabIndex);
            btn_active.Name     = "btn_active";
            btn_active.Text     = "&Active";
            btn_active.Click   += new EventHandler(Btn_active_Click);

            txt_notes.TabIndex = btn_active.TabIndex + 1;

            #endregion [Properties of btn]

            #endregion [finner_panel]

            #region [FReceipt]

            this.AutoScaleDimensions = new SizeF(6F, 13F);
            this.AutoScaleMode       = AutoScaleMode.Font;
            this.Controls.Add(this.split_container);
            this.Name = "fReceipt";
            this.Size = new Size(Screen.PrimaryScreen.Bounds.Width, ClientSize.Height);

            this.split_container.Panel1.ResumeLayout(false);
            this.split_container.Panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(editgrid)).EndInit();
            ((ISupportInitialize)(this.split_container)).EndInit();
            this.split_container.ResumeLayout(false);
            this.fpanel.ResumeLayout(false);
            this.finner_panel.ResumeLayout(false);
            this.finner_panel.PerformLayout();
            this.ResumeLayout(false);

            #endregion [Fpost]
        }
示例#28
0
        private void SetCurrentView(uint aView)
        {
            iViewStatus.Visible    = false;
            SplitContainer.Visible = false;
            SplitContainer.SuspendLayout();
            switch (aView)
            {
            case 0:
                SplitContainer.Panel1Collapsed = false;
                SplitContainer.Panel2Collapsed = false;
                SplitContainer.Panel1.Focus();
                break;

            case 1:
                SplitContainer.Panel1Collapsed = false;
                SplitContainer.Panel2Collapsed = true;
                SplitContainer.Panel1.Focus();
                break;

            case 2:
                SplitContainer.Panel1Collapsed = true;
                SplitContainer.Panel2Collapsed = false;
                SplitContainer.Panel2.Focus();
                break;

            case 3:
                iViewStatus.Focus();
                break;
            }
            SplitContainer.ResumeLayout(false);
            if (iCurrentView < 3)
            {
                WindowState                     = (iUiOptions.Fullscreen) ? FormWindowState.Maximized : FormWindowState.Normal;
                SplitContainer.Visible          = true;
                SplitContainer.SplitterDistance = iUiOptions.SplitterLocation;
                PanelTrackInfo.Visible          = true;
                ButtonSourceSelector.Visible    = true;
                ButtonRoomSelector.Visible      = true;
                PanelBreadcrumb.Visible         = true;
                ButtonRepeat.Visible            = true;
                ButtonShuffle.Visible           = true;
                ButtonSave.Visible              = true;
                ButtonWasteBin.Visible          = true;
                ButtonStandby.Visible           = true;
                ButtonUp.Visible                = true;
                ButtonView.Visible              = true;
                ButtonSize.Visible              = true;
                ButtonReceivers.Visible         = false;
                iViewStatus.Visible             = false;
            }
            else
            {
                SplitContainer.Visible       = false;
                PanelTrackInfo.Visible       = false;
                ButtonSourceSelector.Visible = false;
                ButtonRoomSelector.Visible   = false;
                PanelBreadcrumb.Visible      = false;
                ButtonRepeat.Visible         = false;
                ButtonShuffle.Visible        = false;
                ButtonSave.Visible           = false;
                ButtonWasteBin.Visible       = false;
                ButtonStandby.Visible        = false;
                ButtonUp.Visible             = false;
                ButtonView.Visible           = false;
                ButtonSize.Visible           = false;
                ButtonReceivers.Visible      = false;
                iViewStatus.Visible          = true;
                WindowState = FormWindowState.Maximized;
            }
        }
        private void Initialize()
        {
            #region [declare new]

            components      = new Container();
            splitTimer      = new Timer(components);
            split_container = new SplitContainer();
            fpanel          = new XShadowPanel();
            finner_panel    = new Panel();
            btn_list        = new OfficeButton();
            btn_new         = new OfficeButton();
            btn_edit        = new OfficeButton();
            btn_delete      = new OfficeButton();
            btn_print       = new OfficeButton();
            btn_splitter    = new OfficeButton();
            lbl_header      = new Header();
            btn_close       = new CloseButton();

            txt_ledgergroup_name = new XTextBox();
            lbl_ledgergroup_name = new XLabel();

            txt_notes  = new RichTextBox();
            lbl_notes  = new XLabel();
            btn_save   = new OfficeButton();
            btn_active = new OfficeButton();

            #endregion [declare new]

            #region [container suspend]

            ((ISupportInitialize)(split_container)).BeginInit();
            split_container.Panel1.SuspendLayout();
            split_container.Panel2.SuspendLayout();
            split_container.SuspendLayout();
            fpanel.SuspendLayout();
            finner_panel.SuspendLayout();
            SuspendLayout();

            #endregion [container suspend]

            #region [splitTimer]

            splitTimer.Interval = 2;
            splitTimer.Tick    += new EventHandler(SplitTimer_Tick);

            #endregion [splitTimer]

            #region [split_container]

            split_container.Dock             = DockStyle.Fill;
            split_container.Location         = new Point(0, 0);
            split_container.Name             = "split_container";
            split_container.BackColor        = XTheme.Splitcontainer_colour;
            split_container.Size             = XSize.FSplitcontainer;
            split_container.SplitterDistance = XSize.Screen_Width;
            split_container.TabIndex         = XTab.Splitcontainer;

            // split_container.Panel1

            split_container.Panel1.Controls.Add(fpanel);

            #region [split_container.Panel2]

            split_container.Panel2.Controls.Add(btn_print);
            split_container.Panel2.Controls.Add(btn_delete);
            split_container.Panel2.Controls.Add(btn_edit);
            split_container.Panel2.Controls.Add(btn_new);
            split_container.Panel2.Controls.Add(btn_list);
            split_container.Panel2.Controls.Add(btn_splitter);

            btn_list.Font     = XFont.BtnFont;
            btn_list.Location = XLayout.FormFirstBtn;
            btn_list.Size     = XSize.BtnOne;
            btn_list.TabIndex = 1;
            btn_list.Name     = "btn_list";
            btn_list.Text     = "&List";
            btn_list.Themes   = XTheme.BlueBtn;
            btn_list.Click   += Btn_list_Click;

            btn_new.Font     = XFont.BtnFont;
            btn_new.Location = XLayout.BtnLocation(btn_list.Location);
            btn_new.Size     = XSize.BtnOne;
            btn_new.TabIndex = XTab.Index(btn_list.TabIndex);
            btn_new.Name     = "btn_new";
            btn_new.Text     = "&New";
            btn_new.Themes   = XTheme.BlueBtn;
            btn_new.Click   += Btn_new_Click;

            btn_edit.Font     = XFont.BtnFont;
            btn_edit.Location = XLayout.BtnLocation(btn_new.Location);
            btn_edit.Size     = XSize.BtnOne;
            btn_edit.TabIndex = XTab.Index(btn_new.TabIndex);
            btn_edit.Name     = "btn_edit";
            btn_edit.Text     = "&Edit";
            btn_edit.Themes   = XTheme.BlueBtn;
            btn_edit.Click   += Btn_edit_Click;

            btn_delete.Font     = XFont.BtnFont;
            btn_delete.Location = XLayout.BtnLocation(btn_edit.Location);
            btn_delete.Size     = XSize.BtnOne;
            btn_delete.TabIndex = XTab.Index(btn_edit.TabIndex);
            btn_delete.Name     = "btn_delete";
            btn_delete.Text     = "&Delete";
            btn_delete.Themes   = XTheme.BlueBtn;
            btn_delete.Click   += Btn_delete_Click;

            btn_print.Font     = XFont.BtnFont;
            btn_print.Location = XLayout.BtnLocation(btn_delete.Location);
            btn_print.Size     = XSize.BtnOne;
            btn_print.TabIndex = XTab.Index(btn_delete.TabIndex);
            btn_print.Name     = "btn_print";
            btn_print.Text     = "&Print";
            btn_print.Themes   = XTheme.BlueBtn;
            btn_print.Click   += Btn_print_Click;

            btn_splitter.Font     = XFont.BtnFont;
            btn_splitter.Location = XLayout.Splitter;
            btn_splitter.Size     = XSize.Splitter;
            btn_splitter.TabIndex = XTab.Index(btn_print.TabIndex);
            btn_splitter.Name     = "btn_splitter";
            btn_splitter.Text     = "⁞⁞";
            btn_splitter.Themes   = XTheme.WhiteBtn;
            btn_splitter.Click   += new EventHandler(Btn_splitter_Click);

            #endregion [split_container.Panel2]

            #endregion [split_container]

            #region [fpanel]

            fpanel.Name      = "fpanel";
            fpanel.Anchor    = XAnchor.LTR;
            fpanel.Size      = XSize.FPanel;
            fpanel.Location  = XLayout.FPanel;
            fpanel.BackColor = XTheme.FPanel;
            fpanel.Controls.Add(finner_panel);
            fpanel.Controls.Add(btn_close);
            fpanel.Controls.Add(lbl_header);

            #endregion [fpanel]

            #region [finner_panel]

            finner_panel.Anchor     = XAnchor.LTR;
            finner_panel.Cursor     = Cursors.Default;
            finner_panel.Name       = "finner_panel";
            finner_panel.Size       = XSize.FInnerPanel;
            finner_panel.Location   = XLayout.FInnerPanel;
            finner_panel.BackColor  = XTheme.FInnerpanel;
            finner_panel.AutoScroll = true;

            #region [adding controls]

            finner_panel.Controls.Add(txt_notes);
            finner_panel.Controls.Add(lbl_notes);
            finner_panel.Controls.Add(txt_ledgergroup_name);
            finner_panel.Controls.Add(lbl_ledgergroup_name);
            finner_panel.Controls.Add(btn_save);
            finner_panel.Controls.Add(btn_active);

            #endregion [adding controls]

            #region [Header]

            btn_close.Click += new EventHandler(Btn_close_Click);

            lbl_header.Text = "Ledger group";

            #endregion [Header]

            #region [Properties of control]

            lbl_ledgergroup_name.Font      = XFont.Font_10B;
            lbl_ledgergroup_name.Name      = "lbl_ledgergroup_name";
            lbl_ledgergroup_name.Text      = "   Ledger group";
            lbl_ledgergroup_name.Anchor    = XAnchor.LT;
            lbl_ledgergroup_name.TextAlign = ContentAlignment.MiddleLeft;
            lbl_ledgergroup_name.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_ledgergroup_name.Size      = XSize.OneLabel;
            lbl_ledgergroup_name.Location  = XLayout.FirstLabel;

            txt_ledgergroup_name.Font              = XFont.TxtFont;
            txt_ledgergroup_name.ForeColor         = XFontColor.TxtFontColor;
            txt_ledgergroup_name.BackColor         = XTheme.TxtBackcolor;
            txt_ledgergroup_name.Name              = "txt_ledgergroup_name";
            txt_ledgergroup_name.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_ledgergroup_name.Size              = XSize.OneText;
            txt_ledgergroup_name.Anchor            = XAnchor.LTR;
            txt_ledgergroup_name.Location          = XLayout.FirstText;
            txt_ledgergroup_name.TabIndex          = XTab.Txt_TabIndex;
            txt_ledgergroup_name.Enter            += new EventHandler(Txt_ledgergroup_name_Enter);


            lbl_notes.Font      = XFont.Font_10B;
            lbl_notes.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_notes.Location  = XLayout.LblNotes;
            lbl_notes.Size      = XSize.LblNotes;
            lbl_notes.Anchor    = XAnchor.LB;
            lbl_notes.Name      = "lbl_notes";
            lbl_notes.Text      = "   Notes";
            lbl_notes.TextAlign = ContentAlignment.MiddleLeft;
            lbl_notes.Click    += new EventHandler(Lbl_notes_Click);

            txt_notes.Font      = Theme.txtFont;
            txt_notes.ForeColor = Theme.txtForeColor;
            txt_notes.BackColor = Theme.White;
            txt_notes.Location  = XLayout.TxtNotes;
            txt_notes.Size      = XSize.TxtNotes;
            txt_notes.Name      = "txt_notes";
            txt_notes.Anchor    = XAnchor.LRB;
            txt_notes.TabIndex  = XTab.Index(txt_notes.TabIndex);
            txt_notes.Enter    += new EventHandler(Txt_notes_Enter);

            #endregion [Properties of control]

            #region [Properties of btn]

            btn_save.Anchor   = XAnchor.RB;
            btn_save.Font     = XFont.BtnFont;
            btn_save.Size     = XSize.BtnOne;
            btn_save.Location = XLayout.BtnSave;
            btn_save.TabIndex = XTab.Index(txt_ledgergroup_name.TabIndex);
            btn_save.Name     = "btn_save";
            btn_save.Text     = "&SAVE";
            btn_save.Themes   = XTheme.BlueBtn;
            btn_save.Click   += new EventHandler(Btn_save_click);

            btn_active.Anchor   = XAnchor.RB;
            btn_active.Font     = XFont.BtnFont;
            btn_active.Size     = XSize.BtnOne;
            btn_active.Location = XLayout.BtnActive;
            btn_active.TabIndex = XTab.Index(btn_save.TabIndex);
            btn_active.Name     = "btn_active";
            btn_active.Text     = "&Active";
            btn_active.Click   += new EventHandler(Btn_active_Click);

            txt_notes.TabIndex = btn_active.TabIndex + 1;

            #endregion [Properties of btn]

            #endregion [finner_panel]

            #region [FLedgergroup]

            this.AutoScaleDimensions = new SizeF(6F, 13F);
            this.AutoScaleMode       = AutoScaleMode.Font;
            this.Controls.Add(this.split_container);
            this.Name = "fLedgergroup";
            this.Size = new Size(Screen.PrimaryScreen.Bounds.Width, ClientSize.Height);

            this.split_container.Panel1.ResumeLayout(false);
            this.split_container.Panel2.ResumeLayout(false);
            ((ISupportInitialize)(this.split_container)).EndInit();
            this.split_container.ResumeLayout(false);
            this.fpanel.ResumeLayout(false);
            this.finner_panel.ResumeLayout(false);
            this.finner_panel.PerformLayout();
            this.ResumeLayout(false);

            #endregion [Fpost]
        }
示例#30
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     splitContainer = new SplitContainer();
     btnClear       = new ButtonEx();
     listBox        = new ListBoxEx();
     previewBox     = new TextBoxEx();
     btnCancel      = new ButtonEx();
     btnCopy        = new ButtonEx();
     btnPaste       = new ButtonEx();
     splitContainer.Panel1.SuspendLayout();
     splitContainer.Panel2.SuspendLayout();
     splitContainer.SuspendLayout();
     SuspendLayout();
     //
     // splitContainer
     //
     splitContainer.Dock             = DockStyle.Fill;
     splitContainer.FixedPanel       = FixedPanel.Panel1;
     splitContainer.Location         = new Point(0, 0);
     splitContainer.Name             = "splitContainer";
     splitContainer.Orientation      = Orientation.Horizontal;
     splitContainer.Panel1MinSize    = 100;
     splitContainer.Panel2MinSize    = 100;
     splitContainer.Size             = new Size(482, 453);
     splitContainer.SplitterDistance = 171;
     splitContainer.TabIndex         = 0;
     //
     // splitContainer.Panel1
     //
     splitContainer.Panel1.Controls.Add(btnClear);
     splitContainer.Panel1.Controls.Add(listBox);
     //
     // splitContainer.Panel2
     //
     splitContainer.Panel2.Controls.Add(previewBox);
     splitContainer.Panel2.Controls.Add(btnCopy);
     splitContainer.Panel2.Controls.Add(btnCancel);
     splitContainer.Panel2.Controls.Add(btnPaste);
     //
     // listBox
     //
     listBox.Anchor                = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     listBox.DisplayMember         = "Text";
     listBox.IntegralHeight        = false;
     listBox.ItemHeight            = 20;
     listBox.Location              = new Point(6, 10);
     listBox.Name                  = "listBox";
     listBox.Size                  = new Size(470, 106);
     listBox.TabIndex              = 0;
     listBox.DrawMode              = DrawMode.OwnerDrawFixed;
     listBox.DrawItem             += ListBox_DrawItem;
     listBox.SelectedIndexChanged += ListBox_SelectedIndexChanged;
     //
     // btnPaste
     //
     btnPaste.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
     btnPaste.DialogResult            = DialogResult.OK;
     btnPaste.Enabled                 = false;
     btnPaste.Location                = new Point(269, 232);
     btnPaste.Name                    = "btnPaste";
     btnPaste.Size                    = new Size(100, 34);
     btnPaste.TabIndex                = 0;
     btnPaste.Text                    = "Paste";
     btnPaste.UseMnemonic             = false;
     btnPaste.UseVisualStyleBackColor = true;
     //
     // btnCancel
     //
     btnCancel.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
     btnCancel.DialogResult            = DialogResult.Cancel;
     btnCancel.Location                = new Point(377, 232);
     btnCancel.Name                    = "btnCancel";
     btnCancel.Size                    = new Size(100, 34);
     btnCancel.TabIndex                = 1;
     btnCancel.Text                    = "Cancel";
     btnCancel.UseMnemonic             = false;
     btnCancel.UseVisualStyleBackColor = true;
     //
     // btnCopy
     //
     btnCopy.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
     btnCopy.Enabled                 = false;
     btnCopy.Location                = new Point(161, 232);
     btnCopy.Name                    = "btnCopy";
     btnCopy.Size                    = new Size(100, 34);
     btnCopy.TabIndex                = 2;
     btnCopy.Text                    = "Copy";
     btnCopy.UseMnemonic             = false;
     btnCopy.UseVisualStyleBackColor = true;
     btnCopy.Click                  += BtnCopy_Click;
     //
     // btnClear
     //
     btnClear.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
     btnClear.Enabled                 = false;
     btnClear.Location                = new Point(377, 124);
     btnClear.Name                    = "btnClear";
     btnClear.Size                    = new Size(100, 34);
     btnClear.TabIndex                = 1;
     btnClear.Text                    = "Clear";
     btnClear.UseMnemonic             = false;
     btnClear.UseVisualStyleBackColor = true;
     btnClear.Click                  += BtnClear_Click;
     //
     // preview
     //
     previewBox.Anchor      = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     previewBox.BackColor   = SystemColors.Window;
     previewBox.BorderStyle = BorderStyle.FixedSingle;
     previewBox.Location    = new Point(6, 0);
     previewBox.Multiline   = true;
     previewBox.Name        = "preview";
     previewBox.ReadOnly    = true;
     previewBox.Size        = new Size(470, 224);
     previewBox.TabIndex    = 3;
     previewBox.Text        = "";
     previewBox.WordWrap    = false;
     //
     // ClipboardHistoryDialog
     //
     AcceptButton        = btnPaste;
     AutoScaleDimensions = new SizeF(8f, 20f);
     AutoScaleMode       = AutoScaleMode.Font;
     CancelButton        = btnCancel;
     ClientSize          = new Size(484, 454);
     Controls.Add(splitContainer);
     FormBorderStyle = FormBorderStyle.Sizable;
     MaximizeBox     = false;
     MinimizeBox     = false;
     MinimumSize     = new Size(300, 420);
     Name            = "ClipboardHistoryDialog";
     ShowIcon        = false;
     ShowInTaskbar   = false;
     StartPosition   = FormStartPosition.CenterParent;
     Text            = "Clipboard History";
     Padding         = new Padding(10);
     splitContainer.Panel1.ResumeLayout(false);
     splitContainer.Panel2.ResumeLayout(false);
     splitContainer.ResumeLayout(false);
     ResumeLayout(false);
 }