private void UpdateCollapse()
 {
     if (m_bCollapsed)
     {
         m_Groupbox.SuspendLayout();
         m_Groupbox.MinimumSize = m_CollapsedSize;
         m_Groupbox.MaximumSize = m_CollapsedSize;
         m_Groupbox.Text        = "";
         m_ClickPanel.Click    += m_ClickHandler;
         m_CollapseButton.Left  = 6;
         m_CollapseButton.Top   = 1;
         for (int nInd = 0; nInd < m_Groupbox.Controls.Count; nInd++)
         {
             m_Groupbox.Controls[nInd].Visible = false;
         }
         m_Groupbox.Width     = 25;
         m_ClickPanel.Visible = true;
         m_Groupbox.ResumeLayout(true);
     }
     else
     {
         m_Groupbox.SuspendLayout();
         m_Groupbox.MinimumSize = m_MinimumSize;
         m_Groupbox.MaximumSize = m_MaximumSize;
         m_Groupbox.Text        = m_sOriginalCaption;
         m_Groupbox.Width       = m_Size.Width;
         m_CollapseButton.Left  = m_Size.Width - 2 * m_CollapseButton.Width;
         m_CollapseButton.Top   = 1;
         m_ClickPanel.Click    -= m_ClickHandler;
         for (int nInd = 0; nInd < m_Groupbox.Controls.Count; nInd++)
         {
             bool    bVisible   = true;
             Control objControl = m_Groupbox.Controls[nInd];
             if (!objControl.Enabled)
             {
                 //If control is not enabled, maybe we should not make it visible, depending on the tag value true/false
                 try
                 {
                     if (objControl.Tag != null)
                     {
                         if (((bool)objControl.Tag) == false)
                         {
                             bVisible = false;
                         }
                     }
                 }
                 catch { }
             }
             if (bVisible)
             {
                 objControl.Visible = true;
             }
         }
         m_Groupbox.ResumeLayout(true);
     }
     m_CollapseButton.Visible = true;
 }
Пример #2
0
 private void InitializeComponent()
 {
     textBox1 = new TextBox();
     GroupBox.SuspendLayout();
     SuspendLayout();
     //
     // groupBox1
     //
     GroupBox.Controls.Add(textBox1);
     GroupBox.Text = "Caption";
     GroupBox.Controls.SetChildIndex(textBox1, 0);
     GroupBox.Controls.SetChildIndex(StatusLabel, 0);
     //
     // lblStatus
     //
     StatusLabel.Location = new Point(12, 20);
     //
     // textBox1
     //
     textBox1.Location     = new Point(44, 17);
     textBox1.Name         = "textBox1";
     textBox1.Size         = new Size(440, 20);
     textBox1.TabIndex     = 3;
     textBox1.TextChanged += TextBox1TextChanged;
     textBox1.Click       += TextBox1Click;
     //
     // IntElement
     //
     AutoScaleDimensions = new SizeF(6F, 13F);
     Name = "IntElement";
     GroupBox.ResumeLayout(false);
     GroupBox.PerformLayout();
     ResumeLayout(false);
 }
Пример #3
0
        public Control CreateControl()
        {
            var btnCheck = new Button();

            btnCheck.Anchor   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            btnCheck.Location = new Point(6, 42);
            btnCheck.Size     = new Size(265, 23);
            btnCheck.Text     = "Check for updates now";
            btnCheck.Click   += new EventHandler(CheckUpdatesButton_Click);

            chkEnabled          = new CheckBox();
            chkEnabled.AutoSize = true;
            chkEnabled.Location = new Point(10, 19);
            chkEnabled.Size     = new Size(148, 17);
            chkEnabled.Text     = "Check for updates at start";

            control = new GroupBox();
            control.SuspendLayout();
            control.Controls.Add(btnCheck);
            control.Controls.Add(chkEnabled);
            control.Location = new Point(0, 0);
            control.Margin   = new Padding(0);
            control.Size     = new Size(277, 70);
            control.Text     = "Updates";
            control.ResumeLayout(false);
            control.PerformLayout();
            return(control);
        }
Пример #4
0
        private void InitializeComponent()
        {
            comboBox1 = new ComboBox();
            GroupBox.SuspendLayout();
            SuspendLayout();

            // groupBox1
            GroupBox.Controls.Add(comboBox1);
            GroupBox.Size = new Size(492, 46);
            GroupBox.Text = "Caption";
            GroupBox.Controls.SetChildIndex(comboBox1, 0);
            GroupBox.Controls.SetChildIndex(StatusLabel, 0);

            // lblStatus
            StatusLabel.Location = new Point(12, 20);

            // comboBox1
            comboBox1.DropDownStyle     = ComboBoxStyle.DropDownList;
            comboBox1.FormattingEnabled = true;
            comboBox1.Location          = new Point(44, 17);
            comboBox1.Name                  = "comboBox1";
            comboBox1.Size                  = new Size(440, 21);
            comboBox1.TabIndex              = 5;
            comboBox1.SelectedValueChanged += ComboBox1SelectedValueChanged;
            comboBox1.Click                += ComboBox1Click;

            // ListElement
            AutoScaleDimensions = new SizeF(6F, 13F);
            Name = "ListElement";
            Size = new Size(492, 46);
            GroupBox.ResumeLayout(false);
            ResumeLayout(false);
        }
Пример #5
0
            public PonySettingsPanel()
            {
                radioHeart = new RadioButton();
                radioStar  = new RadioButton();

                radioStar.Click  += switchBitmap;
                radioHeart.Click += switchBitmap;

                bool isHeart = getSettingValue(SHAPE_PONY_TYPE, 1) == 1;

                if (isHeart)
                {
                    radioHeart.Checked = true;
                }
                else
                {
                    radioStar.Checked = true;
                }

                GroupBox group = new GroupBox();

                group.SuspendLayout();
                SuspendLayout();

                radioHeart.AutoSize   = true;
                radioHeart.Location   = new Point(50, 32);
                radioHeart.TabStop    = false;
                radioHeart.Appearance = Appearance.Button;
                radioHeart.FlatStyle  = FlatStyle.Flat;
                radioHeart.FlatAppearance.BorderSize       = 0;
                radioHeart.FlatAppearance.CheckedBackColor = SystemColors.ControlDark;
                radioHeart.Padding = new Padding(6);
                radioHeart.Image   = Properties.Resources.emblem_favorite_32;

                radioStar.AutoSize   = true;
                radioStar.Location   = new Point(50, 92);
                radioStar.TabStop    = false;
                radioStar.Appearance = Appearance.Button;
                radioStar.FlatStyle  = FlatStyle.Flat;
                radioStar.FlatAppearance.BorderSize       = 0;
                radioStar.FlatAppearance.CheckedBackColor = SystemColors.ControlDark;
                radioStar.Padding = new Padding(6);
                radioStar.Image   = Properties.Resources.yellow_star_32;

                group.Controls.Add(radioStar);
                group.Controls.Add(radioHeart);
                group.Dock     = DockStyle.Top;
                group.AutoSize = true;
                group.Location = new Point(0, 0);
                group.TabStop  = false;
                group.Text     = "Image to Draw";

                Padding = new Padding(12);
                Controls.Add(group);

                group.ResumeLayout(false);
                group.PerformLayout();
                ResumeLayout(false);
            }
Пример #6
0
        //*************************************
        //           GUI Routines
        //*************************************

        private void AddFDVSliceControls(Slice slc)
        {
            lock (this)
            {
                int index = _fdvSlices.IndexOf(slc);
                label1.Visible = false;

                this.SuspendLayout();

                TextBox             txtIn    = new TextBox();
                TextBox             txtOut   = new TextBox();
                VerticalProgressBar bar      = new VerticalProgressBar();
                GroupBox            groupbox = new GroupBox();
                groupbox.SuspendLayout();
                //
                // groupBox
                //
                groupbox.Controls.Add(txtIn);
                groupbox.Controls.Add(txtOut);
                groupbox.Controls.Add(bar);
                groupbox.Location = new Point(10, 10 + index * 110);
                groupbox.Name     = "grpSlice" + index;
                groupbox.Size     = new Size(260, 100);
                groupbox.Text     = "Slice " + SliceIndexToLetter(slc.Index);
                //
                // txtIn
                //
                txtIn.Location = new Point(40, 30);
                txtIn.Name     = "txtIn" + slc.Index;
                txtIn.Size     = new Size(200, 20);
                txtIn.ReadOnly = true;
                //
                // txtOut
                //
                txtOut.Location        = new Point(40, 60);
                txtOut.Name            = "txtOut" + slc.Index;
                txtOut.Size            = new Size(200, 20);
                txtOut.PreviewKeyDown += new PreviewKeyDownEventHandler(txtOut_PreviewKeyDown);
                //
                // bar
                //
                bar.Location = new Point(10, 20);
                bar.Name     = "bar" + slc.Index;
                bar.Size     = new Size(20, 70);
                bar.Value    = 25;
                //
                // Form1
                //
                if (groupbox.Bottom > this.Height)
                {
                    this.Height += 110;
                }
                this.Controls.Add(groupbox);
                groupbox.ResumeLayout();
                this.ResumeLayout(false);
                this.PerformLayout();
            }
        }
Пример #7
0
 public void SetFocus(TypeEditor viewerMode)
 {
     if (viewerMode == TypeEditor.ACTIVITY)
     {
         AEConfigPanel.Visible = true;
         AEConfigPanel.ResumeLayout(false);
     }
     routeData.Visible = true;
     routeData.ResumeLayout(false);
 }
Пример #8
0
        private void InitializeComponent()
        {
            GroupBox6   = new GroupBox();
            GDU_DISPLAY = new GDU();
            GroupBox6.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)GDU_DISPLAY).BeginInit();
            SuspendLayout();
            //
            // GroupBox6
            //
            GroupBox6.BackColor             = Color.Transparent;
            GroupBox6.BackgroundImage       = My.Resources.Resources.Dell_UltraSharp_27;
            GroupBox6.BackgroundImageLayout = ImageLayout.Stretch;
            GroupBox6.Controls.Add(GDU_DISPLAY);
            GroupBox6.Dock      = DockStyle.Fill;
            GroupBox6.ForeColor = Color.Lime;
            GroupBox6.Location  = new Point(0, 0);
            GroupBox6.Margin    = new Padding(3, 4, 3, 4);
            GroupBox6.Name      = "GroupBox6";
            GroupBox6.Padding   = new Padding(3, 4, 3, 4);
            GroupBox6.Size      = new Size(998, 698);
            GroupBox6.TabIndex  = 3;
            GroupBox6.TabStop   = false;
            //
            // GDU_DISPLAY
            //
            GDU_DISPLAY.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;

            GDU_DISPLAY.Current_X_Position = 0;
            GDU_DISPLAY.Current_Y_Position = 0;
            GDU_DISPLAY.Direction          = 0;
            GDU_DISPLAY.Location           = new Point(12, 20);
            GDU_DISPLAY.Name            = "GDU_DISPLAY";
            GDU_DISPLAY.Size            = new Size(980, 485);
            GDU_DISPLAY.TabIndex        = 0;
            GDU_DISPLAY.TabStop         = false;
            GDU_DISPLAY.TurtleColor     = Color.Black;
            GDU_DISPLAY.TurtlePenSize   = 3;
            GDU_DISPLAY.TurtlePenUP_DWN = false;
            GDU_DISPLAY.TurtlePosition  = new Point(0, 0);
            GDU_DISPLAY.TurtleShow      = false;
            //
            // SAL_ZX21_GDU
            //
            AutoScaleDimensions = new SizeF(6.0f, 13.0f);
            AutoScaleMode       = AutoScaleMode.Font;
            ClientSize          = new Size(998, 698);
            Controls.Add(GroupBox6);
            FormBorderStyle = FormBorderStyle.SizableToolWindow;
            Name            = "SAL_ZX21_GDU";
            Text            = "S.A.L2020© ";
            GroupBox6.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)GDU_DISPLAY).EndInit();
            ResumeLayout(false);
        }
Пример #9
0
        public void InitializeComponent(TabPage pluginScreenSpace)
        {
            _mainGroupBox = new GroupBox {
                Location = new Point(12, 12), Text = "监听设置", AutoSize = true, AutoSizeMode = AutoSizeMode.GrowAndShrink
            };
            _lbPort = new Label {
                AutoSize = true, Text = "端口:", Location = new Point(10, 33)
            };
            TextPort = new NumericUpDown {
                Location = new Point(85, 30), DecimalPlaces = 0, Maximum = 65535, Value = 2019, Size = new Size(100, 35)
            };
            ButtonStart = new Button {
                Text = "启动", Location = new Point(190, 30), Size = new Size(75, TextPort.Height)
            };
            ButtonStop = new Button {
                Text = "停止", Location = new Point(270, 30), Size = new Size(75, TextPort.Height), Enabled = false
            };
            _autoStart = new CheckBox {
                AutoSize = true, Text = "自动启动", Location = new Point(350, 33)
            };

            lstMessages = new ListBox {
                Location = new Point(10, TextPort.Height * 2 + 20), FormattingEnabled = true, ScrollAlwaysVisible = true, HorizontalScrollbar = true, Size = new Size(440, 500),
            };
            cmdClearMessages = new Button {
                Location = new Point(10, lstMessages.Location.Y + lstMessages.Height + 10), Size = new Size(200, TextPort.Height), Text = "清空日志", UseVisualStyleBackColor = true
            };
            cmdCopyProblematic = new Button {
                Location = new Point(220, lstMessages.Location.Y + lstMessages.Height + 10), Size = new Size(200, TextPort.Height), Text = "复制到剪贴板", UseVisualStyleBackColor = true
            };

            LoadSettings();
            _mainGroupBox.Controls.Add(_lbPort);
            _mainGroupBox.Controls.Add(TextPort);
            _mainGroupBox.Controls.Add(ButtonStart);
            _mainGroupBox.Controls.Add(ButtonStop);
            _mainGroupBox.Controls.Add(_autoStart);

            _mainGroupBox.Controls.Add(lstMessages);
            _mainGroupBox.Controls.Add(cmdClearMessages);
            _mainGroupBox.Controls.Add(cmdCopyProblematic);


            pluginScreenSpace.Controls.Add(_mainGroupBox);
            pluginScreenSpace.AutoSize = true;

            cmdCopyProblematic.Click += cmdCopyProblematic_Click;
            cmdClearMessages.Click   += cmdClearMessages_Click;

            _mainGroupBox.ResumeLayout(false);
            _mainGroupBox.PerformLayout();
            ResumeLayout(false);
            PerformLayout();
        }
Пример #10
0
 private void InitializeComponent()
 {
     groupBox1           = new GroupBox();
     renderOptionsPanel  = new RenderOptionsPanel();
     renderProgressPanel = new RenderProgressPanel2();
     groupBox1.SuspendLayout();
     SuspendLayout();
     //
     // groupBox1
     //
     groupBox1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom
                        | AnchorStyles.Left;
     groupBox1.BackColor = SystemColors.Control;
     groupBox1.Controls.Add(renderOptionsPanel);
     groupBox1.Location = new Point(2, 3);
     groupBox1.Name     = "groupBox1";
     groupBox1.Size     = new Size(272, 542);
     groupBox1.TabIndex = 2;
     groupBox1.TabStop  = false;
     groupBox1.Text     = "Mashup Render Options";
     //
     // renderOptionsPanel
     //
     renderOptionsPanel.BackColor = SystemColors.Control;
     renderOptionsPanel.Dock      = DockStyle.Fill;
     renderOptionsPanel.Location  = new Point(3, 18);
     renderOptionsPanel.Margin    = new Padding(4, 4, 4, 4);
     renderOptionsPanel.Name      = "renderOptionsPanel";
     renderOptionsPanel.Size      = new Size(266, 521);
     renderOptionsPanel.TabIndex  = 0;
     //
     // renderProgressPanel
     //
     renderProgressPanel.Anchor = AnchorStyles.Top | AnchorStyles.Bottom
                                  | AnchorStyles.Left
                                  | AnchorStyles.Right;
     renderProgressPanel.BackColor = SystemColors.Control;
     renderProgressPanel.Location  = new Point(280, 12);
     renderProgressPanel.Margin    = new Padding(4, 4, 4, 4);
     renderProgressPanel.Name      = "renderProgressPanel";
     renderProgressPanel.Size      = new Size(799, 533);
     renderProgressPanel.TabIndex  = 1;
     //
     // RenderWindow
     //
     ClientSize = new Size(1081, 547);
     Controls.Add(groupBox1);
     Controls.Add(renderProgressPanel);
     Name = "RenderWindow";
     Text = "Render";
     groupBox1.ResumeLayout(false);
     ResumeLayout(false);
 }
Пример #11
0
            public ArrowSettingsPanel()
            {
                radioOne = new RadioButton {
                    Image = Properties.Resources.arrow_1
                };
                buttons.Add(radioOne);

                radioTwo = new RadioButton {
                    Image = Properties.Resources.arrow_2
                };
                buttons.Add(radioTwo);

                GroupBox group = new GroupBox();

                group.SuspendLayout();
                SuspendLayout();

                int i = 0;

                int arrowType = getSettingValue(SHAPE_ARROW_TYPE, 0);

                foreach (RadioButton b in buttons)
                {
                    if (i == arrowType)
                    {
                        b.Checked = true;
                    }
                    b.AutoSize   = true;
                    b.Appearance = Appearance.Button;
                    b.FlatStyle  = FlatStyle.Flat;
                    b.FlatAppearance.BorderSize       = 0;
                    b.FlatAppearance.CheckedBackColor = SystemColors.ControlDark;
                    b.Location = new Point(32, 24 + 60 * i++);
                    b.Padding  = new Padding(6);
                    b.TabStop  = false;
                    b.Click   += switchArrow;

                    group.Controls.Add(b);
                }

                group.Dock     = DockStyle.Top;
                group.TabStop  = false;
                group.Text     = "Arrow Type";
                group.AutoSize = true;

                Padding = new Padding(12);
                Controls.Add(group);

                group.ResumeLayout(false);
                group.PerformLayout();
                ResumeLayout(false);
            }
        private void InitializeComponent()
        {
            var resources = new System.ComponentModel.ComponentResourceManager(typeof(SAL_ZX21_VDU));

            GroupBox1          = new GroupBox();
            Zx81_DisplayScreen = new RichTextBox();
            GroupBox1.SuspendLayout();
            SuspendLayout();
            //
            // GroupBox1
            //
            GroupBox1.BackColor = Color.Transparent;
            GroupBox1.Controls.Add(Zx81_DisplayScreen);
            GroupBox1.Dock     = DockStyle.Top;
            GroupBox1.Location = new Point(0, 0);
            GroupBox1.Name     = "GroupBox1";
            GroupBox1.Size     = new Size(670, 474);
            GroupBox1.TabIndex = 0;
            GroupBox1.TabStop  = false;
            //
            // Zx81_DisplayScreen
            //
            Zx81_DisplayScreen.BackColor   = Color.WhiteSmoke;
            Zx81_DisplayScreen.BorderStyle = BorderStyle.FixedSingle;
            Zx81_DisplayScreen.Cursor      = Cursors.Arrow;
            Zx81_DisplayScreen.Dock        = DockStyle.Fill;
            Zx81_DisplayScreen.Font        = new Font("Consolas", 14.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0));
            Zx81_DisplayScreen.Location    = new Point(3, 16);
            Zx81_DisplayScreen.Name        = "Zx81_DisplayScreen";
            Zx81_DisplayScreen.Size        = new Size(664, 455);
            Zx81_DisplayScreen.TabIndex    = 0;
            Zx81_DisplayScreen.Text        = "SpydazWeb AI ZX81 Copyright © 2020" + '\n' + "Ready." + '\n';
            //
            // FormDisplayConsole
            //
            AutoScaleDimensions   = new SizeF(6.0f, 13.0f);
            AutoScaleMode         = AutoScaleMode.Font;
            BackgroundImage       = My.Resources.Resources.Dell_UltraSharp_27;
            BackgroundImageLayout = ImageLayout.Stretch;
            ClientSize            = new Size(670, 672);
            Controls.Add(GroupBox1);
            DoubleBuffered  = true;
            FormBorderStyle = FormBorderStyle.SizableToolWindow;
            Icon            = (Icon)resources.GetObject("$this.Icon");
            MaximumSize     = new Size(938, 711);
            MinimumSize     = new Size(680, 711);
            Name            = "FormDisplayConsole";
            Text            = "SpydazWeb AI ZX2020";
            GroupBox1.ResumeLayout(false);
            ResumeLayout(false);
        }
Пример #13
0
 private void InitializeComponent()
 {
     btnAddData    = new Button();
     comboFeatures = new ComboBox();
     GroupBox.SuspendLayout();
     SuspendLayout();
     //
     // groupBox1
     //
     GroupBox.Controls.Add(comboFeatures);
     GroupBox.Controls.Add(btnAddData);
     GroupBox.Size = new Size(492, 46);
     GroupBox.Text = "Caption";
     GroupBox.Controls.SetChildIndex(btnAddData, 0);
     GroupBox.Controls.SetChildIndex(comboFeatures, 0);
     GroupBox.Controls.SetChildIndex(StatusLabel, 0);
     //
     // lblStatus
     //
     StatusLabel.Location = new Point(12, 20);
     //
     // btnAddData
     //
     btnAddData.Image    = Images.AddLayer;
     btnAddData.Location = new Point(460, 14);
     btnAddData.Name     = "btnAddData";
     btnAddData.Size     = new Size(26, 26);
     btnAddData.TabIndex = 4;
     btnAddData.UseVisualStyleBackColor = true;
     btnAddData.Click += BtnAddDataClick;
     //
     // comboFeatures
     //
     comboFeatures.DropDownStyle     = ComboBoxStyle.DropDownList;
     comboFeatures.FormattingEnabled = true;
     comboFeatures.Location          = new Point(44, 17);
     comboFeatures.Name                  = "comboFeatures";
     comboFeatures.Size                  = new Size(410, 21);
     comboFeatures.TabIndex              = 5;
     comboFeatures.SelectedValueChanged += ComboFeatureSelectedValueChanged;
     comboFeatures.Click                += DialogElement_Click;
     //
     // LineElement
     //
     AutoScaleDimensions = new SizeF(6F, 13F);
     Name = "LineElement";
     Size = new Size(492, 46);
     GroupBox.ResumeLayout(false);
     ResumeLayout(false);
 }
Пример #14
0
 private void UpdateCollapse()
 {
     if (m_bCollapsed)
     {
         m_Groupbox.SuspendLayout();
         m_Groupbox.MinimumSize = m_CollapsedSize;
         m_Groupbox.MaximumSize = m_CollapsedSize;
         m_Groupbox.Text        = "";
         m_ClickPanel.Click    += m_ClickHandler;
         m_CollapseButton.Left  = 6;
         m_CollapseButton.Top   = 1;
         for (int nInd = 0; nInd < m_Groupbox.Controls.Count; nInd++)
         {
             m_Groupbox.Controls[nInd].Visible = false;
         }
         m_Groupbox.Width     = 25;
         m_ClickPanel.Visible = true;
         m_Groupbox.ResumeLayout(true);
     }
     else
     {
         m_Groupbox.SuspendLayout();
         m_Groupbox.MinimumSize = m_MinimumSize;
         m_Groupbox.MaximumSize = m_MaximumSize;
         m_Groupbox.Text        = m_sOriginalCaption;
         m_Groupbox.Width       = m_Size.Width;
         m_CollapseButton.Left  = m_Size.Width - 2 * m_CollapseButton.Width;
         m_CollapseButton.Top   = 1;
         m_ClickPanel.Click    -= m_ClickHandler;
         for (int nInd = 0; nInd < m_Groupbox.Controls.Count; nInd++)
         {
             m_Groupbox.Controls[nInd].Visible = true;
         }
         m_Groupbox.ResumeLayout(true);
     }
     m_CollapseButton.Visible = true;
 }
Пример #15
0
 private void InitializeComponent()
 {
     _driverName = _installer.GetDriverNames();
     _driversBox = new GroupBox();
     _installBtn = new Button();
     SuspendLayout();
     _driversBox.Text      = "Install Drivers";
     _driversBox.FlatStyle = FlatStyle.Flat;
     _driversBox.Controls.Add(_installBtn);
     Controls.Add(_driversBox);
     _installer = new MiInstaller();
     component  = _installer.Container;
     //
     // driversBox
     //
     _driversBox.Controls.Add(_installBtn);
     _driversBox.Location = new Point(32, 26);
     _driversBox.Name     = "_driversBox";
     _driversBox.Size     = new Size(417, 266);
     _driversBox.TabIndex = 0;
     _driversBox.TabStop  = false;
     _driversBox.Text     = "Install Drivers";
     //
     // installBtn
     //
     _installBtn.Location = new Point(332, 233);
     _installBtn.Name     = "_installBtn";
     _installBtn.Size     = new Size(80, 27);
     _installBtn.TabIndex = 1;
     _installBtn.Text     = "Install";
     _installBtn.UseVisualStyleBackColor = true;
     _installBtn.Click += ConfirmInstall;
     //
     // driverNames
     //
     _driverListBox.DataSource = _driverName; // TODO fix exception
     //
     // Form1
     //
     AutoScaleMode = AutoScaleMode.Inherit;
     ClientSize    = new Size(489, 326);
     Controls.Add(_driversBox);
     Name = "Form1";
     Text = "Install Drivers";
     _driversBox.ResumeLayout(false);
     ResumeLayout(false);
     PerformLayout();
 }
Пример #16
0
        private void ShowListQuiz(Exam examFind)
        {
            using (var _dbContext = new QuizContextDB())
            {
                int dem = 0, demAnswer = 1;
                int y = 60, x = 55;
                int grVertical = 0;
                foreach (Quiz quiz in _dbContext.Quizs.ToList().Where(p => p.ExamID == this.examID))
                {
                    dem++;
                    this.demQuantityQuiz++;
                    this.nameGr = quiz.QuizID.ToString();
                    GroupBox nameGr = new GroupBox();
                    nameGr.SuspendLayout();
                    nameGr.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));

                    nameGr.Controls.Add(CreateTitleQuiz(quiz.QuizName, dem));
                    foreach (Answer answer in _dbContext.Answers.ToList().Where(p => p.QuizID == quiz.QuizID))
                    {
                        if (demAnswer == 2)
                        {
                            x += 45;
                        }
                        if (demAnswer >= 3)
                        {
                            _ = x == 100 ? x = 55 : x += 45;
                            y = 550;
                        }
                        nameGr.Controls.Add(CreateAwserQuiz(answer.ContentAnswer, demAnswer, x, y, answer.AnswerID));
                        demAnswer++;
                    }
                    nameGr.Location = new System.Drawing.Point(0, grVertical);
                    nameGr.Name     = this.nameGr; //nameGr.ToString()
                    nameGr.Size     = new System.Drawing.Size(1110, 137);
                    nameGr.TabIndex = 6;
                    nameGr.TabStop  = false;
                    nameGr.ResumeLayout(false);
                    nameGr.PerformLayout();
                    grVertical += 135;
                    demAnswer   = 1;
                    y           = 60;
                    x           = 55;
                    this.panelAllQuiz.Controls.Add(nameGr);
                }
                lblTotalDone.Text = dem.ToString();
            }
        }
Пример #17
0
 private void InitializeComponent()
 {
     btnAddData = new Button();
     textBox1   = new TextBox();
     GroupBox.SuspendLayout();
     SuspendLayout();
     //
     // groupBox1
     //
     GroupBox.Controls.Add(textBox1);
     GroupBox.Controls.Add(btnAddData);
     GroupBox.Controls.SetChildIndex(StatusLabel, 0);
     GroupBox.Controls.SetChildIndex(btnAddData, 0);
     GroupBox.Controls.SetChildIndex(textBox1, 0);
     //
     // lblStatus
     //
     StatusLabel.Location = new Point(12, 20);
     //
     // btnAddData
     //
     btnAddData.Image    = Images.AddLayer;
     btnAddData.Location = new Point(460, 14);
     btnAddData.Name     = "btnAddData";
     btnAddData.Size     = new Size(26, 26);
     btnAddData.TabIndex = 5;
     btnAddData.UseVisualStyleBackColor = true;
     btnAddData.Click += BtnAddDataClick;
     //
     // textBox1
     //
     textBox1.Location = new Point(44, 17);
     textBox1.Name     = "textBox1";
     textBox1.ReadOnly = true;
     textBox1.Size     = new Size(410, 20);
     textBox1.TabIndex = 6;
     //
     // PolygonElementOut
     //
     AutoScaleDimensions = new SizeF(6F, 13F);
     Name = "LineElementOut";
     GroupBox.ResumeLayout(false);
     GroupBox.PerformLayout();
     ResumeLayout(false);
 }
Пример #18
0
 private void InitializeComponent()
 {
     System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle = new System.Windows.Forms.DataGridViewCellStyle();
     groupBox3 = new System.Windows.Forms.GroupBox();
     dgvPatron = new System.Windows.Forms.DataGridView();
     groupBox3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)dgvPatron).BeginInit();
     SuspendLayout();
     groupBox3.Controls.Add(dgvPatron);
     groupBox3.Font                            = new System.Drawing.Font("Segoe UI", 8.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     groupBox3.Location                        = new System.Drawing.Point(3, 0);
     groupBox3.Name                            = "groupBox3";
     groupBox3.Size                            = new System.Drawing.Size(990, 552);
     groupBox3.TabIndex                        = 29;
     groupBox3.TabStop                         = false;
     groupBox3.Text                            = "DANH SÁCH";
     dgvPatron.AllowUserToAddRows              = false;
     dgvPatron.AllowUserToDeleteRows           = false;
     dataGridViewCellStyle.Font                = new System.Drawing.Font("Microsoft Sans Serif", 7f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
     dgvPatron.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle;
     dgvPatron.AutoSizeColumnsMode             = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
     dgvPatron.ColumnHeadersHeightSizeMode     = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     dgvPatron.Dock                            = System.Windows.Forms.DockStyle.Fill;
     dgvPatron.Location                        = new System.Drawing.Point(3, 18);
     dgvPatron.Name                            = "dgvPatron";
     dgvPatron.ReadOnly                        = true;
     dgvPatron.RowHeadersWidth                 = 20;
     dgvPatron.Size                            = new System.Drawing.Size(984, 531);
     dgvPatron.TabIndex                        = 18;
     base.AutoScaleDimensions                  = new System.Drawing.SizeF(8f, 16f);
     base.AutoScaleMode                        = System.Windows.Forms.AutoScaleMode.Font;
     base.Controls.Add(groupBox3);
     Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
     base.Margin = new System.Windows.Forms.Padding(4);
     base.Name   = "UCDataPatronZ308";
     base.Size   = new System.Drawing.Size(1000, 565);
     base.Load  += new System.EventHandler(UCNhanVien_Load);
     groupBox3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)dgvPatron).EndInit();
     ResumeLayout(false);
 }
Пример #19
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     groupBox1   = new GroupBox();
     editFormat1 = new EditFormat();
     groupBox1.SuspendLayout();
     SuspendLayout();
     //
     // groupBox1
     //
     groupBox1.Controls.Add(editFormat1);
     groupBox1.Dock     = DockStyle.Fill;
     groupBox1.Location = new System.Drawing.Point(0, 0);
     groupBox1.Name     = "groupBox1";
     groupBox1.Size     = new System.Drawing.Size(312, 208);
     groupBox1.TabIndex = 0;
     groupBox1.TabStop  = false;
     groupBox1.Text     = "Audio format";
     //
     // editFormat1
     //
     editFormat1.Dock          = DockStyle.Fill;
     editFormat1.Location      = new System.Drawing.Point(3, 16);
     editFormat1.Name          = "editFormat1";
     editFormat1.ReadOnly      = false;
     editFormat1.Size          = new System.Drawing.Size(306, 189);
     editFormat1.TabIndex      = 0;
     editFormat1.ConfigChange += new System.EventHandler(editFormat1_ConfigChange);
     //
     // EditWaveWriter
     //
     Controls.Add(groupBox1);
     Name = "EditWaveWriter";
     Size = new System.Drawing.Size(312, 208);
     groupBox1.ResumeLayout(false);
     ResumeLayout(false);
 }
Пример #20
0
        private void InitializeComponent()
        {
            var resources = new System.ComponentModel.ComponentResourceManager(typeof(PokedexOrderEditor));

            GroupBox1 = new GroupBox();
            _ListBox1 = new ListBox();
            _ListBox1.SelectedIndexChanged += new EventHandler(ListBox1_SelectedIndexChanged);
            GroupBox2 = new GroupBox();
            ListBox2  = new ListBox();
            GroupBox3 = new GroupBox();
            _ListBox3 = new ListBox();
            _ListBox3.SelectedIndexChanged += new EventHandler(ListBox3_SelectedIndexChanged);
            _Button1        = new Button();
            _Button1.Click += new EventHandler(Button1_Click);
            GroupBox4       = new GroupBox();
            ListBox4        = new ListBox();
            GroupBox1.SuspendLayout();
            GroupBox2.SuspendLayout();
            GroupBox3.SuspendLayout();
            GroupBox4.SuspendLayout();
            SuspendLayout();
            //
            // GroupBox1
            //
            GroupBox1.Controls.Add(_ListBox1);
            GroupBox1.Location = new Point(16, 27);
            GroupBox1.Margin   = new Padding(4, 4, 4, 4);
            GroupBox1.Name     = "GroupBox1";
            GroupBox1.Padding  = new Padding(4, 4, 4, 4);
            GroupBox1.Size     = new Size(164, 403);
            GroupBox1.TabIndex = 1;
            GroupBox1.TabStop  = false;
            GroupBox1.Text     = "Pokémon";
            //
            // ListBox1
            //
            _ListBox1.FormattingEnabled = true;
            _ListBox1.ItemHeight        = 16;
            _ListBox1.Location          = new Point(8, 23);
            _ListBox1.Margin            = new Padding(4, 4, 4, 4);
            _ListBox1.Name     = "_ListBox1";
            _ListBox1.Size     = new Size(145, 372);
            _ListBox1.TabIndex = 1;
            //
            // GroupBox2
            //
            GroupBox2.Controls.Add(ListBox2);
            GroupBox2.Location = new Point(188, 27);
            GroupBox2.Margin   = new Padding(4, 4, 4, 4);
            GroupBox2.Name     = "GroupBox2";
            GroupBox2.Padding  = new Padding(4, 4, 4, 4);
            GroupBox2.Size     = new Size(203, 129);
            GroupBox2.TabIndex = 2;
            GroupBox2.TabStop  = false;
            GroupBox2.Text     = "National";
            //
            // ListBox2
            //
            ListBox2.FormattingEnabled = true;
            ListBox2.ItemHeight        = 16;
            ListBox2.Items.AddRange(new object[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "100", "101", "102", "103", "104", "105", "106", "107", "108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123", "124", "125", "126", "127", "128", "129", "130", "131", "132", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "148", "149", "150", "151", "152", "153", "154", "155", "156", "157", "158", "159", "160", "161", "162", "163", "164", "165", "166", "167", "168", "169", "170", "171", "172", "173", "174", "175", "176", "177", "178", "179", "180", "181", "182", "183", "184", "185", "186", "187", "188", "189", "190", "191", "192", "193", "194", "195", "196", "197", "198", "199", "200", "201", "202", "203", "204", "205", "206", "207", "208", "209", "210", "211", "212", "213", "214", "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244", "245", "246", "247", "248", "249", "250", "251", "252", "253", "254", "255", "256", "257", "258", "259", "260", "261", "262", "263", "264", "265", "266", "267", "268", "269", "270", "271", "272", "273", "274", "275", "276", "277", "278", "279", "280", "281", "282", "283", "284", "285", "286", "287", "288", "289", "290", "291", "292", "293", "294", "295", "296", "297", "298", "299", "300", "301", "302", "303", "304", "305", "306", "307", "308", "309", "310", "311", "312", "313", "314", "315", "316", "317", "318", "319", "320", "321", "322", "323", "324", "325", "326", "327", "328", "329", "330", "331", "332", "333", "334", "335", "336", "337", "338", "339", "340", "341", "342", "343", "344", "345", "346", "347", "348", "349", "350", "351", "352", "353", "354", "355", "356", "357", "358", "359", "360", "361", "362", "363", "364", "365", "366", "367", "368", "369", "370", "371", "372", "373", "374", "375", "376", "377", "378", "379", "380", "381", "382", "383", "384", "385", "386", "387", "388", "389", "390", "391", "392", "393", "394", "395", "396", "397", "398", "399", "400", "401", "402", "403", "404", "405", "406", "407", "408", "409", "410", "411", "412", "413", "414", "415", "416", "417", "418", "419", "420", "421", "422", "423", "424", "425", "426", "427", "428", "429", "430", "431", "432", "433", "434", "435", "436", "437", "438", "439", "440", "441", "442", "443", "444", "445", "446", "447", "448", "449", "450", "451", "452", "453", "454", "455", "456", "457", "458", "459", "460", "461", "462", "463", "464", "465", "466", "467", "468", "469", "470", "471", "472", "473", "474", "475", "476", "477", "478", "479", "480", "481", "482", "483", "484", "485", "486", "487", "488", "489", "490", "491", "492", "493", "494", "495", "496", "497", "498", "499", "500", "501", "502", "503", "504", "505", "506", "507", "508", "509", "510", "511", "512", "513", "514", "515", "516", "517", "518", "519", "520", "521", "522", "523", "524", "525", "526", "527", "528", "529", "530", "531", "532", "533", "534", "535", "536", "537", "538", "539", "540", "541", "542", "543", "544", "545", "546", "547", "548", "549", "550", "551", "552", "553", "554", "555", "556", "557", "558", "559", "560", "561", "562", "563", "564", "565", "566", "567", "568", "569", "570", "571", "572", "573", "574", "575", "576", "577", "578", "579", "580", "581", "582", "583", "584", "585", "586", "587", "588", "589", "590", "591", "592", "593", "594", "595", "596", "597", "598", "599", "600", "601", "602", "603", "604", "605", "606", "607", "608", "609", "610", "611", "612", "613", "614", "615", "616", "617", "618", "619", "620", "621", "622", "623", "624", "625", "626", "627", "628", "629", "630", "631", "632", "633", "634", "635", "636", "637", "638", "639", "640", "641", "642", "643", "644", "645", "646", "647", "648", "649", "650", "651", "652", "653", "654", "655", "656", "657", "658", "659", "660", "661", "662", "663", "664", "665", "666", "667", "668", "669", "670", "671", "672", "673", "674", "675", "676", "677", "678", "679", "680", "681", "682", "683", "684", "685", "686", "687", "688", "689", "690", "691", "692", "693", "694", "695", "696", "697", "698", "699", "700", "701", "702", "703", "704", "705", "706", "707", "708", "709", "710", "711", "712", "713", "714", "715", "716", "717", "718", "719", "720", "721", "722", "723", "724", "725", "726", "727", "728", "729", "730", "731", "732", "733", "734", "735", "736", "737", "738", "739", "740", "741", "742", "743", "744", "745", "746", "747", "748", "749", "750", "751", "752", "753", "754", "755", "756", "757", "758", "759", "760", "761", "762", "763", "764", "765", "766", "767", "768", "769", "770", "771", "772", "773", "774", "775", "776", "777", "778", "779", "780", "781", "782", "783", "784", "785", "786", "787", "788", "789", "790", "791", "792", "793", "794", "795", "796", "797", "798", "799", "800", "801", "802", "803", "804", "805", "806", "807", "808", "809", "810", "811", "812", "813", "814", "815", "816", "817", "818", "819", "820", "821", "822", "823", "824", "825", "826", "827", "828", "829", "830", "831", "832", "833", "834", "835", "836", "837", "838", "839", "840", "841", "842", "843", "844", "845", "846", "847", "848", "849", "850", "851", "852", "853", "854", "855", "856", "857", "858", "859", "860", "861", "862", "863", "864", "865", "866", "867", "868", "869", "870", "871", "872", "873", "874", "875", "876", "877", "878", "879", "880", "881", "882", "883", "884", "885", "886", "887", "888", "889", "890", "891", "892", "893", "894", "895", "896", "897", "898", "899", "900", "901", "902", "903", "904", "905", "906", "907", "908", "909", "910", "911", "912", "913", "914", "915", "916", "917", "918", "919", "920", "921", "922", "923", "924", "925", "926", "927", "928", "929", "930", "931", "932", "933", "934", "935", "936", "937", "938", "939", "940", "941", "942", "943", "944", "945", "946", "947", "948", "949", "950", "951", "952", "953", "954", "955", "956", "957", "958", "959", "960", "961", "962", "963", "964", "965", "966", "967", "968", "969", "970", "971", "972", "973", "974", "975", "976", "977", "978", "979", "980", "981", "982", "983", "984", "985", "986", "987", "988", "989", "990", "991", "992", "993", "994", "995", "996", "997", "998", "999" });
            ListBox2.Location = new Point(8, 23);
            ListBox2.Margin   = new Padding(4, 4, 4, 4);
            ListBox2.Name     = "ListBox2";
            ListBox2.Size     = new Size(173, 84);
            ListBox2.TabIndex = 0;
            //
            // GroupBox3
            //
            GroupBox3.Controls.Add(_ListBox3);
            GroupBox3.Location = new Point(188, 164);
            GroupBox3.Margin   = new Padding(4, 4, 4, 4);
            GroupBox3.Name     = "GroupBox3";
            GroupBox3.Padding  = new Padding(4, 4, 4, 4);
            GroupBox3.Size     = new Size(203, 129);
            GroupBox3.TabIndex = 3;
            GroupBox3.TabStop  = false;
            GroupBox3.Text     = "Hoenn";
            //
            // ListBox3
            //
            _ListBox3.FormattingEnabled = true;
            _ListBox3.ItemHeight        = 16;
            _ListBox3.Items.AddRange(new object[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "100", "101", "102", "103", "104", "105", "106", "107", "108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123", "124", "125", "126", "127", "128", "129", "130", "131", "132", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "148", "149", "150", "151", "152", "153", "154", "155", "156", "157", "158", "159", "160", "161", "162", "163", "164", "165", "166", "167", "168", "169", "170", "171", "172", "173", "174", "175", "176", "177", "178", "179", "180", "181", "182", "183", "184", "185", "186", "187", "188", "189", "190", "191", "192", "193", "194", "195", "196", "197", "198", "199", "200", "201", "202", "203", "204", "205", "206", "207", "208", "209", "210", "211", "212", "213", "214", "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244", "245", "246", "247", "248", "249", "250", "251", "252", "253", "254", "255", "256", "257", "258", "259", "260", "261", "262", "263", "264", "265", "266", "267", "268", "269", "270", "271", "272", "273", "274", "275", "276", "277", "278", "279", "280", "281", "282", "283", "284", "285", "286", "287", "288", "289", "290", "291", "292", "293", "294", "295", "296", "297", "298", "299", "300", "301", "302", "303", "304", "305", "306", "307", "308", "309", "310", "311", "312", "313", "314", "315", "316", "317", "318", "319", "320", "321", "322", "323", "324", "325", "326", "327", "328", "329", "330", "331", "332", "333", "334", "335", "336", "337", "338", "339", "340", "341", "342", "343", "344", "345", "346", "347", "348", "349", "350", "351", "352", "353", "354", "355", "356", "357", "358", "359", "360", "361", "362", "363", "364", "365", "366", "367", "368", "369", "370", "371", "372", "373", "374", "375", "376", "377", "378", "379", "380", "381", "382", "383", "384", "385", "386", "387", "388", "389", "390", "391", "392", "393", "394", "395", "396", "397", "398", "399", "400", "401", "402", "403", "404", "405", "406", "407", "408", "409", "410", "411", "412", "413", "414", "415", "416", "417", "418", "419", "420", "421", "422", "423", "424", "425", "426", "427", "428", "429", "430", "431", "432", "433", "434", "435", "436", "437", "438", "439", "440", "441", "442", "443", "444", "445", "446", "447", "448", "449", "450", "451", "452", "453", "454", "455", "456", "457", "458", "459", "460", "461", "462", "463", "464", "465", "466", "467", "468", "469", "470", "471", "472", "473", "474", "475", "476", "477", "478", "479", "480", "481", "482", "483", "484", "485", "486", "487", "488", "489", "490", "491", "492", "493", "494", "495", "496", "497", "498", "499", "500", "501", "502", "503", "504", "505", "506", "507", "508", "509", "510", "511", "512", "513", "514", "515", "516", "517", "518", "519", "520", "521", "522", "523", "524", "525", "526", "527", "528", "529", "530", "531", "532", "533", "534", "535", "536", "537", "538", "539", "540", "541", "542", "543", "544", "545", "546", "547", "548", "549", "550", "551", "552", "553", "554", "555", "556", "557", "558", "559", "560", "561", "562", "563", "564", "565", "566", "567", "568", "569", "570", "571", "572", "573", "574", "575", "576", "577", "578", "579", "580", "581", "582", "583", "584", "585", "586", "587", "588", "589", "590", "591", "592", "593", "594", "595", "596", "597", "598", "599", "600", "601", "602", "603", "604", "605", "606", "607", "608", "609", "610", "611", "612", "613", "614", "615", "616", "617", "618", "619", "620", "621", "622", "623", "624", "625", "626", "627", "628", "629", "630", "631", "632", "633", "634", "635", "636", "637", "638", "639", "640", "641", "642", "643", "644", "645", "646", "647", "648", "649", "650", "651", "652", "653", "654", "655", "656", "657", "658", "659", "660", "661", "662", "663", "664", "665", "666", "667", "668", "669", "670", "671", "672", "673", "674", "675", "676", "677", "678", "679", "680", "681", "682", "683", "684", "685", "686", "687", "688", "689", "690", "691", "692", "693", "694", "695", "696", "697", "698", "699", "700", "701", "702", "703", "704", "705", "706", "707", "708", "709", "710", "711", "712", "713", "714", "715", "716", "717", "718", "719", "720", "721", "722", "723", "724", "725", "726", "727", "728", "729", "730", "731", "732", "733", "734", "735", "736", "737", "738", "739", "740", "741", "742", "743", "744", "745", "746", "747", "748", "749", "750", "751", "752", "753", "754", "755", "756", "757", "758", "759", "760", "761", "762", "763", "764", "765", "766", "767", "768", "769", "770", "771", "772", "773", "774", "775", "776", "777", "778", "779", "780", "781", "782", "783", "784", "785", "786", "787", "788", "789", "790", "791", "792", "793", "794", "795", "796", "797", "798", "799", "800", "801", "802", "803", "804", "805", "806", "807", "808", "809", "810", "811", "812", "813", "814", "815", "816", "817", "818", "819", "820", "821", "822", "823", "824", "825", "826", "827", "828", "829", "830", "831", "832", "833", "834", "835", "836", "837", "838", "839", "840", "841", "842", "843", "844", "845", "846", "847", "848", "849", "850", "851", "852", "853", "854", "855", "856", "857", "858", "859", "860", "861", "862", "863", "864", "865", "866", "867", "868", "869", "870", "871", "872", "873", "874", "875", "876", "877", "878", "879", "880", "881", "882", "883", "884", "885", "886", "887", "888", "889", "890", "891", "892", "893", "894", "895", "896", "897", "898", "899", "900", "901", "902", "903", "904", "905", "906", "907", "908", "909", "910", "911", "912", "913", "914", "915", "916", "917", "918", "919", "920", "921", "922", "923", "924", "925", "926", "927", "928", "929", "930", "931", "932", "933", "934", "935", "936", "937", "938", "939", "940", "941", "942", "943", "944", "945", "946", "947", "948", "949", "950", "951", "952", "953", "954", "955", "956", "957", "958", "959", "960", "961", "962", "963", "964", "965", "966", "967", "968", "969", "970", "971", "972", "973", "974", "975", "976", "977", "978", "979", "980", "981", "982", "983", "984", "985", "986", "987", "988", "989", "990", "991", "992", "993", "994", "995", "996", "997", "998", "999" });
            _ListBox3.Location = new Point(8, 23);
            _ListBox3.Margin   = new Padding(4, 4, 4, 4);
            _ListBox3.Name     = "_ListBox3";
            _ListBox3.Size     = new Size(173, 84);
            _ListBox3.TabIndex = 0;
            //
            // Button1
            //
            _Button1.Location = new Point(16, 438);
            _Button1.Margin   = new Padding(4, 4, 4, 4);
            _Button1.Name     = "_Button1";
            _Button1.Size     = new Size(375, 49);
            _Button1.TabIndex = 4;
            _Button1.Text     = "Save";
            _Button1.UseVisualStyleBackColor = true;
            //
            // GroupBox4
            //
            GroupBox4.Controls.Add(ListBox4);
            GroupBox4.Location = new Point(188, 301);
            GroupBox4.Margin   = new Padding(4);
            GroupBox4.Name     = "GroupBox4";
            GroupBox4.Padding  = new Padding(4);
            GroupBox4.Size     = new Size(203, 129);
            GroupBox4.TabIndex = 5;
            GroupBox4.TabStop  = false;
            GroupBox4.Text     = "Hoenn to National";
            //
            // ListBox4
            //
            ListBox4.FormattingEnabled = true;
            ListBox4.ItemHeight        = 16;
            ListBox4.Items.AddRange(new object[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "100", "101", "102", "103", "104", "105", "106", "107", "108", "109", "110", "111", "112", "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123", "124", "125", "126", "127", "128", "129", "130", "131", "132", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "144", "145", "146", "147", "148", "149", "150", "151", "152", "153", "154", "155", "156", "157", "158", "159", "160", "161", "162", "163", "164", "165", "166", "167", "168", "169", "170", "171", "172", "173", "174", "175", "176", "177", "178", "179", "180", "181", "182", "183", "184", "185", "186", "187", "188", "189", "190", "191", "192", "193", "194", "195", "196", "197", "198", "199", "200", "201", "202", "203", "204", "205", "206", "207", "208", "209", "210", "211", "212", "213", "214", "215", "216", "217", "218", "219", "220", "221", "222", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244", "245", "246", "247", "248", "249", "250", "251", "252", "253", "254", "255", "256", "257", "258", "259", "260", "261", "262", "263", "264", "265", "266", "267", "268", "269", "270", "271", "272", "273", "274", "275", "276", "277", "278", "279", "280", "281", "282", "283", "284", "285", "286", "287", "288", "289", "290", "291", "292", "293", "294", "295", "296", "297", "298", "299", "300", "301", "302", "303", "304", "305", "306", "307", "308", "309", "310", "311", "312", "313", "314", "315", "316", "317", "318", "319", "320", "321", "322", "323", "324", "325", "326", "327", "328", "329", "330", "331", "332", "333", "334", "335", "336", "337", "338", "339", "340", "341", "342", "343", "344", "345", "346", "347", "348", "349", "350", "351", "352", "353", "354", "355", "356", "357", "358", "359", "360", "361", "362", "363", "364", "365", "366", "367", "368", "369", "370", "371", "372", "373", "374", "375", "376", "377", "378", "379", "380", "381", "382", "383", "384", "385", "386", "387", "388", "389", "390", "391", "392", "393", "394", "395", "396", "397", "398", "399", "400", "401", "402", "403", "404", "405", "406", "407", "408", "409", "410", "411", "412", "413", "414", "415", "416", "417", "418", "419", "420", "421", "422", "423", "424", "425", "426", "427", "428", "429", "430", "431", "432", "433", "434", "435", "436", "437", "438", "439", "440", "441", "442", "443", "444", "445", "446", "447", "448", "449", "450", "451", "452", "453", "454", "455", "456", "457", "458", "459", "460", "461", "462", "463", "464", "465", "466", "467", "468", "469", "470", "471", "472", "473", "474", "475", "476", "477", "478", "479", "480", "481", "482", "483", "484", "485", "486", "487", "488", "489", "490", "491", "492", "493", "494", "495", "496", "497", "498", "499", "500", "501", "502", "503", "504", "505", "506", "507", "508", "509", "510", "511", "512", "513", "514", "515", "516", "517", "518", "519", "520", "521", "522", "523", "524", "525", "526", "527", "528", "529", "530", "531", "532", "533", "534", "535", "536", "537", "538", "539", "540", "541", "542", "543", "544", "545", "546", "547", "548", "549", "550", "551", "552", "553", "554", "555", "556", "557", "558", "559", "560", "561", "562", "563", "564", "565", "566", "567", "568", "569", "570", "571", "572", "573", "574", "575", "576", "577", "578", "579", "580", "581", "582", "583", "584", "585", "586", "587", "588", "589", "590", "591", "592", "593", "594", "595", "596", "597", "598", "599", "600", "601", "602", "603", "604", "605", "606", "607", "608", "609", "610", "611", "612", "613", "614", "615", "616", "617", "618", "619", "620", "621", "622", "623", "624", "625", "626", "627", "628", "629", "630", "631", "632", "633", "634", "635", "636", "637", "638", "639", "640", "641", "642", "643", "644", "645", "646", "647", "648", "649", "650", "651", "652", "653", "654", "655", "656", "657", "658", "659", "660", "661", "662", "663", "664", "665", "666", "667", "668", "669", "670", "671", "672", "673", "674", "675", "676", "677", "678", "679", "680", "681", "682", "683", "684", "685", "686", "687", "688", "689", "690", "691", "692", "693", "694", "695", "696", "697", "698", "699", "700", "701", "702", "703", "704", "705", "706", "707", "708", "709", "710", "711", "712", "713", "714", "715", "716", "717", "718", "719", "720", "721", "722", "723", "724", "725", "726", "727", "728", "729", "730", "731", "732", "733", "734", "735", "736", "737", "738", "739", "740", "741", "742", "743", "744", "745", "746", "747", "748", "749", "750", "751", "752", "753", "754", "755", "756", "757", "758", "759", "760", "761", "762", "763", "764", "765", "766", "767", "768", "769", "770", "771", "772", "773", "774", "775", "776", "777", "778", "779", "780", "781", "782", "783", "784", "785", "786", "787", "788", "789", "790", "791", "792", "793", "794", "795", "796", "797", "798", "799", "800", "801", "802", "803", "804", "805", "806", "807", "808", "809", "810", "811", "812", "813", "814", "815", "816", "817", "818", "819", "820", "821", "822", "823", "824", "825", "826", "827", "828", "829", "830", "831", "832", "833", "834", "835", "836", "837", "838", "839", "840", "841", "842", "843", "844", "845", "846", "847", "848", "849", "850", "851", "852", "853", "854", "855", "856", "857", "858", "859", "860", "861", "862", "863", "864", "865", "866", "867", "868", "869", "870", "871", "872", "873", "874", "875", "876", "877", "878", "879", "880", "881", "882", "883", "884", "885", "886", "887", "888", "889", "890", "891", "892", "893", "894", "895", "896", "897", "898", "899", "900", "901", "902", "903", "904", "905", "906", "907", "908", "909", "910", "911", "912", "913", "914", "915", "916", "917", "918", "919", "920", "921", "922", "923", "924", "925", "926", "927", "928", "929", "930", "931", "932", "933", "934", "935", "936", "937", "938", "939", "940", "941", "942", "943", "944", "945", "946", "947", "948", "949", "950", "951", "952", "953", "954", "955", "956", "957", "958", "959", "960", "961", "962", "963", "964", "965", "966", "967", "968", "969", "970", "971", "972", "973", "974", "975", "976", "977", "978", "979", "980", "981", "982", "983", "984", "985", "986", "987", "988", "989", "990", "991", "992", "993", "994", "995", "996", "997", "998", "999" });
            ListBox4.Location = new Point(8, 23);
            ListBox4.Margin   = new Padding(4);
            ListBox4.Name     = "ListBox4";
            ListBox4.Size     = new Size(173, 84);
            ListBox4.TabIndex = 0;
            //
            // PokedexOrderEditor
            //
            AutoScaleDimensions = new SizeF(8.0f, 16.0f);
            AutoScaleMode       = AutoScaleMode.Font;
            ClientSize          = new Size(406, 497);
            Controls.Add(GroupBox4);
            Controls.Add(_Button1);
            Controls.Add(GroupBox3);
            Controls.Add(GroupBox2);
            Controls.Add(GroupBox1);
            FormBorderStyle = FormBorderStyle.FixedSingle;
            Icon            = (Icon)resources.GetObject("$this.Icon");
            Margin          = new Padding(4, 4, 4, 4);
            MaximizeBox     = false;
            Name            = "PokedexOrderEditor";
            StartPosition   = FormStartPosition.CenterScreen;
            Text            = "Pokédex Order Editor";
            GroupBox1.ResumeLayout(false);
            GroupBox2.ResumeLayout(false);
            GroupBox3.ResumeLayout(false);
            GroupBox4.ResumeLayout(false);
            Load += new EventHandler(PokedexOrderEditor_Load);
            ResumeLayout(false);
        }
Пример #21
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DTCForm));
     picMilOn          = new System.Windows.Forms.PictureBox();
     groupMIL          = new System.Windows.Forms.GroupBox();
     lblMilStatus      = new System.Windows.Forms.Label();
     picMIL            = new System.Windows.Forms.PictureBox();
     picMilOff         = new System.Windows.Forms.PictureBox();
     groupPermanent    = new System.Windows.Forms.GroupBox();
     richTextPermanent = new System.Windows.Forms.RichTextBox();
     btnRefresh        = new System.Windows.Forms.Button();
     btnErase          = new System.Windows.Forms.Button();
     groupTotal        = new System.Windows.Forms.GroupBox();
     lblTotalCodes     = new System.Windows.Forms.Label();
     groupCodes        = new System.Windows.Forms.GroupBox();
     richTextDTC       = new System.Windows.Forms.RichTextBox();
     groupPending      = new System.Windows.Forms.GroupBox();
     richTextPending   = new System.Windows.Forms.RichTextBox();
     ((System.ComponentModel.ISupportInitialize)(picMilOn)).BeginInit();
     groupMIL.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(picMIL)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(picMilOff)).BeginInit();
     groupPermanent.SuspendLayout();
     groupTotal.SuspendLayout();
     groupCodes.SuspendLayout();
     groupPending.SuspendLayout();
     SuspendLayout();
     //
     // picMilOn
     //
     picMilOn.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     picMilOn.Image       = ((System.Drawing.Image)(resources.GetObject("picMilOn.Image")));
     picMilOn.Location    = new System.Drawing.Point(15, 25);
     picMilOn.Name        = "picMilOn";
     picMilOn.Size        = new System.Drawing.Size(100, 50);
     picMilOn.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     picMilOn.TabIndex    = 0;
     picMilOn.TabStop     = false;
     picMilOn.Visible     = false;
     //
     // groupMIL
     //
     groupMIL.Controls.Add(lblMilStatus);
     groupMIL.Controls.Add(picMIL);
     groupMIL.Controls.Add(picMilOff);
     groupMIL.Controls.Add(picMilOn);
     groupMIL.Location = new System.Drawing.Point(15, 15);
     groupMIL.Name     = "groupMIL";
     groupMIL.Size     = new System.Drawing.Size(130, 155);
     groupMIL.TabIndex = 1;
     groupMIL.TabStop  = false;
     groupMIL.Text     = "Check Engine Lamp";
     //
     // lblMilStatus
     //
     lblMilStatus.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     lblMilStatus.Font        = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     lblMilStatus.Location    = new System.Drawing.Point(15, 90);
     lblMilStatus.Name        = "lblMilStatus";
     lblMilStatus.Size        = new System.Drawing.Size(100, 50);
     lblMilStatus.TabIndex    = 1;
     lblMilStatus.Text        = "ON";
     lblMilStatus.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // picMIL
     //
     picMIL.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     picMIL.Location    = new System.Drawing.Point(15, 25);
     picMIL.Name        = "picMIL";
     picMIL.Size        = new System.Drawing.Size(100, 50);
     picMIL.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     picMIL.TabIndex    = 3;
     picMIL.TabStop     = false;
     //
     // picMilOff
     //
     picMilOff.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     picMilOff.Image       = ((System.Drawing.Image)(resources.GetObject("picMilOff.Image")));
     picMilOff.Location    = new System.Drawing.Point(15, 25);
     picMilOff.Name        = "picMilOff";
     picMilOff.Size        = new System.Drawing.Size(100, 50);
     picMilOff.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     picMilOff.TabIndex    = 2;
     picMilOff.TabStop     = false;
     picMilOff.Visible     = false;
     //
     // groupPermanent
     //
     groupPermanent.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     groupPermanent.Controls.Add(richTextPermanent);
     groupPermanent.Location = new System.Drawing.Point(160, 15);
     groupPermanent.Name     = "groupPermanent";
     groupPermanent.Size     = new System.Drawing.Size(399, 161);
     groupPermanent.TabIndex = 2;
     groupPermanent.TabStop  = false;
     groupPermanent.Text     = "Permanent Trouble Codes";
     //
     // richTextPermanent
     //
     richTextPermanent.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)));
     richTextPermanent.Location = new System.Drawing.Point(16, 24);
     richTextPermanent.Name     = "richTextPermanent";
     richTextPermanent.ReadOnly = true;
     richTextPermanent.Size     = new System.Drawing.Size(364, 120);
     richTextPermanent.TabIndex = 0;
     richTextPermanent.Text     = "";
     //
     // btnRefresh
     //
     btnRefresh.Location = new System.Drawing.Point(15, 283);
     btnRefresh.Name     = "btnRefresh";
     btnRefresh.Size     = new System.Drawing.Size(130, 25);
     btnRefresh.TabIndex = 3;
     btnRefresh.Text     = "&Refresh";
     btnRefresh.Click   += new System.EventHandler(btnRefresh_Click);
     //
     // btnErase
     //
     btnErase.Location = new System.Drawing.Point(15, 320);
     btnErase.Name     = "btnErase";
     btnErase.Size     = new System.Drawing.Size(130, 25);
     btnErase.TabIndex = 4;
     btnErase.Text     = "&Erase Codes";
     btnErase.Click   += new System.EventHandler(btnErase_Click);
     //
     // groupTotal
     //
     groupTotal.Controls.Add(lblTotalCodes);
     groupTotal.Location = new System.Drawing.Point(15, 185);
     groupTotal.Name     = "groupTotal";
     groupTotal.Size     = new System.Drawing.Size(130, 90);
     groupTotal.TabIndex = 5;
     groupTotal.TabStop  = false;
     groupTotal.Visible  = false;
     //
     // lblTotalCodes
     //
     lblTotalCodes.Font      = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     lblTotalCodes.Location  = new System.Drawing.Point(15, 25);
     lblTotalCodes.Name      = "lblTotalCodes";
     lblTotalCodes.Size      = new System.Drawing.Size(100, 50);
     lblTotalCodes.TabIndex  = 2;
     lblTotalCodes.Text      = "0";
     lblTotalCodes.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     lblTotalCodes.Visible   = false;
     //
     // groupCodes
     //
     groupCodes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
     groupCodes.Controls.Add(richTextDTC);
     groupCodes.Location = new System.Drawing.Point(159, 183);
     groupCodes.Name     = "groupCodes";
     groupCodes.Size     = new System.Drawing.Size(399, 161);
     groupCodes.TabIndex = 6;
     groupCodes.TabStop  = false;
     groupCodes.Text     = "Stored Trouble Codes";
     //
     // richTextDTC
     //
     richTextDTC.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)));
     richTextDTC.Location = new System.Drawing.Point(17, 21);
     richTextDTC.Name     = "richTextDTC";
     richTextDTC.ReadOnly = true;
     richTextDTC.Size     = new System.Drawing.Size(364, 124);
     richTextDTC.TabIndex = 1;
     richTextDTC.Text     = "";
     //
     // groupPending
     //
     groupPending.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
     groupPending.Controls.Add(richTextPending);
     groupPending.Location = new System.Drawing.Point(159, 352);
     groupPending.Name     = "groupPending";
     groupPending.Size     = new System.Drawing.Size(399, 161);
     groupPending.TabIndex = 7;
     groupPending.TabStop  = false;
     groupPending.Text     = "Pending Trouble Codes";
     //
     // richTextPending
     //
     richTextPending.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)));
     richTextPending.Location = new System.Drawing.Point(17, 21);
     richTextPending.Name     = "richTextPending";
     richTextPending.ReadOnly = true;
     richTextPending.Size     = new System.Drawing.Size(364, 124);
     richTextPending.TabIndex = 1;
     richTextPending.Text     = "";
     //
     // DTCForm
     //
     AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     BackColor         = System.Drawing.SystemColors.Control;
     ClientSize        = new System.Drawing.Size(574, 580);
     ControlBox        = false;
     Controls.Add(groupPending);
     Controls.Add(groupCodes);
     Controls.Add(groupTotal);
     Controls.Add(btnErase);
     Controls.Add(btnRefresh);
     Controls.Add(groupPermanent);
     Controls.Add(groupMIL);
     FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     MaximizeBox     = false;
     MinimizeBox     = false;
     MinimumSize     = new System.Drawing.Size(300, 405);
     Name            = "DTCForm";
     ShowInTaskbar   = false;
     Text            = "Diagnostic Trouble Codes";
     Activated      += new System.EventHandler(DTCForm_Activated);
     Load           += new System.EventHandler(DTCForm_Load);
     Resize         += new System.EventHandler(DTCForm_Resize);
     ((System.ComponentModel.ISupportInitialize)(picMilOn)).EndInit();
     groupMIL.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(picMIL)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(picMilOff)).EndInit();
     groupPermanent.ResumeLayout(false);
     groupTotal.ResumeLayout(false);
     groupCodes.ResumeLayout(false);
     groupPending.ResumeLayout(false);
     ResumeLayout(false);
 }
Пример #22
0
 private void InitializeComponent()
 {
     groupBox1 = new System.Windows.Forms.GroupBox();
     checkBox3 = new System.Windows.Forms.CheckBox();
     checkBox2 = new System.Windows.Forms.CheckBox();
     checkBox1 = new System.Windows.Forms.CheckBox();
     label1    = new System.Windows.Forms.Label();
     textBox1  = new System.Windows.Forms.TextBox();
     label2    = new System.Windows.Forms.Label();
     textBox2  = new System.Windows.Forms.TextBox();
     button1   = new System.Windows.Forms.Button();
     button2   = new System.Windows.Forms.Button();
     groupBox1.SuspendLayout();
     SuspendLayout();
     groupBox1.Controls.Add(checkBox3);
     groupBox1.Controls.Add(checkBox2);
     groupBox1.Controls.Add(checkBox1);
     groupBox1.Location = new System.Drawing.Point(12, 12);
     groupBox1.Name     = "groupBox1";
     groupBox1.Size     = new System.Drawing.Size(363, 98);
     groupBox1.TabIndex = 0;
     groupBox1.TabStop  = false;
     groupBox1.Text     = "Тип сообщения";
     checkBox3.Location = new System.Drawing.Point(206, 40);
     checkBox3.Name     = "checkBox3";
     checkBox3.Size     = new System.Drawing.Size(125, 24);
     checkBox3.TabIndex = 2;
     checkBox3.Text     = "Предупреждение";
     checkBox3.UseVisualStyleBackColor = true;
     checkBox2.Location = new System.Drawing.Point(121, 40);
     checkBox2.Name     = "checkBox2";
     checkBox2.Size     = new System.Drawing.Size(104, 24);
     checkBox2.TabIndex = 1;
     checkBox2.Text     = "Ошибка";
     checkBox2.UseVisualStyleBackColor = true;
     checkBox1.Location = new System.Drawing.Point(29, 40);
     checkBox1.Name     = "checkBox1";
     checkBox1.Size     = new System.Drawing.Size(104, 24);
     checkBox1.TabIndex = 0;
     checkBox1.Text     = "Стандарт";
     checkBox1.UseVisualStyleBackColor = true;
     label1.Location                 = new System.Drawing.Point(12, 125);
     label1.Name                     = "label1";
     label1.Size                     = new System.Drawing.Size(151, 14);
     label1.TabIndex                 = 1;
     label1.Text                     = "Заголовок сообщения";
     textBox1.Location               = new System.Drawing.Point(12, 142);
     textBox1.Name                   = "textBox1";
     textBox1.Size                   = new System.Drawing.Size(363, 20);
     textBox1.TabIndex               = 2;
     label2.Location                 = new System.Drawing.Point(12, 176);
     label2.Name                     = "label2";
     label2.Size                     = new System.Drawing.Size(151, 14);
     label2.TabIndex                 = 3;
     label2.Text                     = "Текст сообщения";
     textBox2.Location               = new System.Drawing.Point(12, 193);
     textBox2.Multiline              = true;
     textBox2.Name                   = "textBox2";
     textBox2.ScrollBars             = System.Windows.Forms.ScrollBars.Vertical;
     textBox2.Size                   = new System.Drawing.Size(363, 67);
     textBox2.TabIndex               = 4;
     button1.Location                = new System.Drawing.Point(277, 279);
     button1.Name                    = "button1";
     button1.Size                    = new System.Drawing.Size(98, 23);
     button1.TabIndex                = 5;
     button1.Text                    = "Отправить";
     button1.UseVisualStyleBackColor = true;
     button1.Click                  += new System.EventHandler(Button1Click);
     button2.Location                = new System.Drawing.Point(159, 279);
     button2.Name                    = "button2";
     button2.Size                    = new System.Drawing.Size(112, 23);
     button2.TabIndex                = 6;
     button2.Text                    = "Тестировать";
     button2.UseVisualStyleBackColor = true;
     button2.Click                  += new System.EventHandler(Button2Click);
     base.AutoScaleDimensions        = new System.Drawing.SizeF(6f, 13f);
     base.AutoScaleMode              = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize                 = new System.Drawing.Size(397, 320);
     base.Controls.Add(button2);
     base.Controls.Add(button1);
     base.Controls.Add(textBox2);
     base.Controls.Add(label2);
     base.Controls.Add(textBox1);
     base.Controls.Add(label1);
     base.Controls.Add(groupBox1);
     base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     base.Name            = "MessageView";
     Text = "Отправить сообщение";
     groupBox1.ResumeLayout(false);
     ResumeLayout(false);
     PerformLayout();
 }
Пример #23
0
	public MainForm ()
	{
		System.Resources.ResourceManager resources = new System.Resources.ResourceManager (typeof (MainForm));
		_affectedFilesLabel = new Label ();
		AffectedFiles = new ListView ();
		ItemColumn = new ColumnHeader ();
		_groupBox = new GroupBox ();
		_optionsPanel = new Panel ();
		_optionsButton = new Button ();
		OptionsPanel = new Panel ();
		panel4 = new Panel ();
		panel5 = new Panel ();
		_groupBox.SuspendLayout ();
		_optionsPanel.SuspendLayout ();
		OptionsPanel.SuspendLayout ();
		panel4.SuspendLayout ();
		panel5.SuspendLayout ();
		SuspendLayout ();
		// 
		// _affectedFilesLabel
		// 
		_affectedFilesLabel.AccessibleDescription = resources.GetString ("affectedFilesLabel.AccessibleDescription");
		_affectedFilesLabel.AccessibleName = resources.GetString ("affectedFilesLabel.AccessibleName");
		_affectedFilesLabel.Anchor = ((AnchorStyles) (resources.GetObject ("affectedFilesLabel.Anchor")));
		_affectedFilesLabel.AutoSize = ((bool) (resources.GetObject ("affectedFilesLabel.AutoSize")));
		_affectedFilesLabel.Dock = ((DockStyle) (resources.GetObject ("affectedFilesLabel.Dock")));
		_affectedFilesLabel.Enabled = ((bool) (resources.GetObject ("affectedFilesLabel.Enabled")));
		_affectedFilesLabel.Font = ((System.Drawing.Font) (resources.GetObject ("affectedFilesLabel.Font")));
		_affectedFilesLabel.Image = ((System.Drawing.Image) (resources.GetObject ("affectedFilesLabel.Image")));
		_affectedFilesLabel.ImageAlign = ((System.Drawing.ContentAlignment) (resources.GetObject ("affectedFilesLabel.ImageAlign")));
		_affectedFilesLabel.ImageIndex = ((int) (resources.GetObject ("affectedFilesLabel.ImageIndex")));
		_affectedFilesLabel.ImeMode = ((ImeMode) (resources.GetObject ("affectedFilesLabel.ImeMode")));
		_affectedFilesLabel.Location = ((System.Drawing.Point) (resources.GetObject ("affectedFilesLabel.Location")));
		_affectedFilesLabel.Name = "_affectedFilesLabel";
		_affectedFilesLabel.RightToLeft = ((RightToLeft) (resources.GetObject ("affectedFilesLabel.RightToLeft")));
		_affectedFilesLabel.Size = ((System.Drawing.Size) (resources.GetObject ("affectedFilesLabel.Size")));
		_affectedFilesLabel.TabIndex = ((int) (resources.GetObject ("affectedFilesLabel.TabIndex")));
		_affectedFilesLabel.Text = resources.GetString ("affectedFilesLabel.Text");
		_affectedFilesLabel.TextAlign = ((System.Drawing.ContentAlignment) (resources.GetObject ("affectedFilesLabel.TextAlign")));
		_affectedFilesLabel.Visible = ((bool) (resources.GetObject ("affectedFilesLabel.Visible")));
		// 
		// AffectedFiles
		// 
		AffectedFiles.Anchor = ((AnchorStyles) (resources.GetObject ("AffectedFiles.Anchor")));
		AffectedFiles.FullRowSelect = true;
		AffectedFiles.HideSelection = false;
		AffectedFiles.Location = ((System.Drawing.Point) (resources.GetObject ("AffectedFiles.Location")));
		AffectedFiles.Size = new Size (195, 120);
		AffectedFiles.View = View.Details;
		// 
		// ItemColumn
		// 
		ItemColumn.Text = "Items";
		ItemColumn.Width = 150;
		AffectedFiles.Columns.Add (ItemColumn);
		// 
		// _groupBox
		// 
		_groupBox.FlatStyle = FlatStyle.System;
		_groupBox.Location = ((System.Drawing.Point) (resources.GetObject ("groupBox.Location")));
		_groupBox.Size = new Size (195, 100);
		_groupBox.TabStop = false;
		_groupBox.Text = "Group";
		// 
		// _optionsPanel
		// 
		_optionsPanel.AccessibleDescription = resources.GetString ("panel.AccessibleDescription");
		_optionsPanel.AccessibleName = resources.GetString ("panel.AccessibleName");
		_optionsPanel.Anchor = ((AnchorStyles) (resources.GetObject ("panel.Anchor")));
		_optionsPanel.AutoScroll = ((bool) (resources.GetObject ("panel.AutoScroll")));
		_optionsPanel.AutoScrollMargin = ((System.Drawing.Size) (resources.GetObject ("panel.AutoScrollMargin")));
		_optionsPanel.AutoScrollMinSize = ((System.Drawing.Size) (resources.GetObject ("panel.AutoScrollMinSize")));
		_optionsPanel.BackgroundImage = ((System.Drawing.Image) (resources.GetObject ("panel.BackgroundImage")));
		_optionsPanel.Controls.Add (_optionsButton);
		_optionsPanel.Dock = ((DockStyle) (resources.GetObject ("panel.Dock")));
		_optionsPanel.Enabled = ((bool) (resources.GetObject ("panel.Enabled")));
		_optionsPanel.Font = ((System.Drawing.Font) (resources.GetObject ("panel.Font")));
		_optionsPanel.ImeMode = ((ImeMode) (resources.GetObject ("panel.ImeMode")));
		_optionsPanel.Location = ((System.Drawing.Point) (resources.GetObject ("panel.Location")));
		_optionsPanel.RightToLeft = ((RightToLeft) (resources.GetObject ("panel.RightToLeft")));
		_optionsPanel.Size = ((System.Drawing.Size) (resources.GetObject ("panel.Size")));
		_optionsPanel.TabIndex = ((int) (resources.GetObject ("panel.TabIndex")));
		_optionsPanel.Visible = ((bool) (resources.GetObject ("panel.Visible")));
		// 
		// _optionsButton
		// 
		_optionsButton.AccessibleDescription = resources.GetString ("_optionsButton.AccessibleDescription");
		_optionsButton.AccessibleName = resources.GetString ("_optionsButton.AccessibleName");
		_optionsButton.Anchor = ((AnchorStyles) (resources.GetObject ("_optionsButton.Anchor")));
		_optionsButton.BackgroundImage = ((System.Drawing.Image) (resources.GetObject ("_optionsButton.BackgroundImage")));
		_optionsButton.Dock = ((DockStyle) (resources.GetObject ("_optionsButton.Dock")));
		_optionsButton.Enabled = ((bool) (resources.GetObject ("_optionsButton.Enabled")));
		_optionsButton.FlatStyle = ((FlatStyle) (resources.GetObject ("_optionsButton.FlatStyle")));
		_optionsButton.Font = ((System.Drawing.Font) (resources.GetObject ("_optionsButton.Font")));
		_optionsButton.Image = ((System.Drawing.Image) (resources.GetObject ("_optionsButton.Image")));
		_optionsButton.ImageAlign = ((System.Drawing.ContentAlignment) (resources.GetObject ("_optionsButton.ImageAlign")));
		_optionsButton.ImageIndex = ((int) (resources.GetObject ("_optionsButton.ImageIndex")));
		_optionsButton.ImeMode = ((ImeMode) (resources.GetObject ("_optionsButton.ImeMode")));
		_optionsButton.Location = ((System.Drawing.Point) (resources.GetObject ("_optionsButton.Location")));
		_optionsButton.Name = "_optionsButton";
		_optionsButton.RightToLeft = ((RightToLeft) (resources.GetObject ("_optionsButton.RightToLeft")));
		_optionsButton.Size = ((System.Drawing.Size) (resources.GetObject ("_optionsButton.Size")));
		_optionsButton.TabIndex = ((int) (resources.GetObject ("_optionsButton.TabIndex")));
		_optionsButton.Text = resources.GetString ("_optionsButton.Text");
		_optionsButton.TextAlign = ((System.Drawing.ContentAlignment) (resources.GetObject ("_optionsButton.TextAlign")));
		_optionsButton.Visible = ((bool) (resources.GetObject ("_optionsButton.Visible")));
		_optionsButton.Click += new System.EventHandler (OptionsButton_Click);
		// 
		// OptionsPanel
		// 
		OptionsPanel.AccessibleDescription = resources.GetString ("OptionsPanel.AccessibleDescription");
		OptionsPanel.AccessibleName = resources.GetString ("OptionsPanel.AccessibleName");
		OptionsPanel.Anchor = ((AnchorStyles) (resources.GetObject ("OptionsPanel.Anchor")));
		OptionsPanel.AutoScroll = ((bool) (resources.GetObject ("OptionsPanel.AutoScroll")));
		OptionsPanel.AutoScrollMargin = ((System.Drawing.Size) (resources.GetObject ("OptionsPanel.AutoScrollMargin")));
		OptionsPanel.AutoScrollMinSize = ((System.Drawing.Size) (resources.GetObject ("OptionsPanel.AutoScrollMinSize")));
		OptionsPanel.BackgroundImage = ((System.Drawing.Image) (resources.GetObject ("OptionsPanel.BackgroundImage")));
		OptionsPanel.Controls.Add (_groupBox);
		OptionsPanel.Dock = ((DockStyle) (resources.GetObject ("OptionsPanel.Dock")));
		OptionsPanel.Enabled = ((bool) (resources.GetObject ("OptionsPanel.Enabled")));
		OptionsPanel.Font = ((System.Drawing.Font) (resources.GetObject ("OptionsPanel.Font")));
		OptionsPanel.ImeMode = ((ImeMode) (resources.GetObject ("OptionsPanel.ImeMode")));
		OptionsPanel.Location = ((System.Drawing.Point) (resources.GetObject ("OptionsPanel.Location")));
		OptionsPanel.RightToLeft = ((RightToLeft) (resources.GetObject ("OptionsPanel.RightToLeft")));
		OptionsPanel.Size = ((System.Drawing.Size) (resources.GetObject ("OptionsPanel.Size")));
		OptionsPanel.TabIndex = ((int) (resources.GetObject ("OptionsPanel.TabIndex")));
		OptionsPanel.Text = resources.GetString ("OptionsPanel.Text");
		OptionsPanel.Visible = ((bool) (resources.GetObject ("OptionsPanel.Visible")));
		// 
		// panel4
		// 
		panel4.AccessibleDescription = resources.GetString ("panel4.AccessibleDescription");
		panel4.AccessibleName = resources.GetString ("panel4.AccessibleName");
		panel4.Anchor = ((AnchorStyles) (resources.GetObject ("panel4.Anchor")));
		panel4.AutoScroll = ((bool) (resources.GetObject ("panel4.AutoScroll")));
		panel4.AutoScrollMargin = ((System.Drawing.Size) (resources.GetObject ("panel4.AutoScrollMargin")));
		panel4.AutoScrollMinSize = ((System.Drawing.Size) (resources.GetObject ("panel4.AutoScrollMinSize")));
		panel4.BackgroundImage = ((System.Drawing.Image) (resources.GetObject ("panel4.BackgroundImage")));
		panel4.Controls.Add (AffectedFiles);
		panel4.Controls.Add (panel5);
		panel4.Dock = ((DockStyle) (resources.GetObject ("panel4.Dock")));
		panel4.DockPadding.Right = 15;
		panel4.Enabled = ((bool) (resources.GetObject ("panel4.Enabled")));
		panel4.Font = ((System.Drawing.Font) (resources.GetObject ("panel4.Font")));
		panel4.ImeMode = ((ImeMode) (resources.GetObject ("panel4.ImeMode")));
		panel4.Location = ((System.Drawing.Point) (resources.GetObject ("panel4.Location")));
		panel4.RightToLeft = ((RightToLeft) (resources.GetObject ("panel4.RightToLeft")));
		panel4.Size = ((System.Drawing.Size) (resources.GetObject ("panel4.Size")));
		panel4.TabIndex = ((int) (resources.GetObject ("panel4.TabIndex")));
		panel4.Text = resources.GetString ("panel4.Text");
		panel4.Visible = ((bool) (resources.GetObject ("panel4.Visible")));
		// 
		// panel5
		// 
		panel5.AccessibleDescription = resources.GetString ("panel5.AccessibleDescription");
		panel5.AccessibleName = resources.GetString ("panel5.AccessibleName");
		panel5.Anchor = ((AnchorStyles) (resources.GetObject ("panel5.Anchor")));
		panel5.AutoScroll = ((bool) (resources.GetObject ("panel5.AutoScroll")));
		panel5.AutoScrollMargin = ((System.Drawing.Size) (resources.GetObject ("panel5.AutoScrollMargin")));
		panel5.AutoScrollMinSize = ((System.Drawing.Size) (resources.GetObject ("panel5.AutoScrollMinSize")));
		panel5.BackgroundImage = ((System.Drawing.Image) (resources.GetObject ("panel5.BackgroundImage")));
		panel5.Controls.Add (_affectedFilesLabel);
		panel5.Dock = ((DockStyle) (resources.GetObject ("panel5.Dock")));
		panel5.Enabled = ((bool) (resources.GetObject ("panel5.Enabled")));
		panel5.Font = ((System.Drawing.Font) (resources.GetObject ("panel5.Font")));
		panel5.ImeMode = ((ImeMode) (resources.GetObject ("panel5.ImeMode")));
		panel5.Location = ((System.Drawing.Point) (resources.GetObject ("panel5.Location")));
		panel5.RightToLeft = ((RightToLeft) (resources.GetObject ("panel5.RightToLeft")));
		panel5.Size = ((System.Drawing.Size) (resources.GetObject ("panel5.Size")));
		panel5.TabIndex = ((int) (resources.GetObject ("panel5.TabIndex")));
		panel5.Text = resources.GetString ("panel5.Text");
		panel5.Visible = ((bool) (resources.GetObject ("panel5.Visible")));
		// 
		// MainForm
		// 
		ClientSize = new Size (300, 300);
		Controls.Add (panel4);
		Controls.Add (OptionsPanel);
		Controls.Add (_optionsPanel);
		Location = new Point (200, 100);
		MinimizeBox = false;
		ShowInTaskbar = false;
		StartPosition = FormStartPosition.Manual;
		Text = "bug #81718";
		Closing += new CancelEventHandler (MainForm_Closing);
		Load += new EventHandler (MainForm_Load);
		_groupBox.ResumeLayout (false);
		_optionsPanel.ResumeLayout (false);
		OptionsPanel.ResumeLayout (false);
		panel4.ResumeLayout (false);
		panel5.ResumeLayout (false);
		ResumeLayout (false);
	}
Пример #24
0
 private void InitializeComponent()
 {
     components              = new Container();
     getStartedBox           = new GroupBox();
     textBox                 = new TextBox();
     pinNameTable            = new TableLayoutPanel();
     pinText                 = new TextBox();
     addPushPinButton        = new Button();
     updatePushPinButton     = new Button();
     LockButtonTable         = new TableLayoutPanel();
     removePushPinButton     = new Button();
     removeAllPushpinsButton = new Button();
     unlockTransformButton   = new Button();
     lockTransformButton     = new Button();
     pinList                 = new DataGridView();
     pinIDcolumn             = new DataGridViewTextBoxColumn();
     pinNameColumn           = new DataGridViewTextBoxColumn();
     LocationColumn          = new DataGridViewTextBoxColumn();
     Error               = new DataGridViewTextBoxColumn();
     lockStatusText      = new TextBox();
     forceAffineCheckBox = new CheckBox();
     toolTip             = new ToolTip(components);
     panel1              = new Panel();
     getStartedBox.SuspendLayout();
     pinNameTable.SuspendLayout();
     LockButtonTable.SuspendLayout();
     ((ISupportInitialize)pinList).BeginInit();
     panel1.SuspendLayout();
     SuspendLayout();
     getStartedBox.Anchor    = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
     getStartedBox.BackColor = SystemColors.ControlLightLight;
     getStartedBox.Controls.Add(textBox);
     getStartedBox.Location   = new Point(9, 61);
     getStartedBox.Name       = "getStartedBox";
     getStartedBox.Size       = new Size(196, 95);
     getStartedBox.TabIndex   = 8;
     getStartedBox.TabStop    = false;
     textBox.BorderStyle      = BorderStyle.None;
     textBox.Dock             = DockStyle.Fill;
     textBox.Font             = new Font("Microsoft Sans Serif", 11f, FontStyle.Bold, GraphicsUnit.Point, 0);
     textBox.ForeColor        = Color.Red;
     textBox.Location         = new Point(3, 16);
     textBox.Multiline        = true;
     textBox.Name             = "textBox";
     textBox.Size             = new Size(190, 76);
     textBox.TabIndex         = 0;
     textBox.Text             = "Place corresponding points under crosshairs and click Add.";
     pinNameTable.Anchor      = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
     pinNameTable.ColumnCount = 4;
     pinNameTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
     pinNameTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
     pinNameTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
     pinNameTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
     pinNameTable.Controls.Add(pinText, 0, 0);
     pinNameTable.Controls.Add(addPushPinButton, 2, 0);
     pinNameTable.Controls.Add(updatePushPinButton, 3, 0);
     pinNameTable.Location = new Point(2, 3);
     pinNameTable.Name     = "pinNameTable";
     pinNameTable.RowCount = 1;
     pinNameTable.RowStyles.Add(new RowStyle(SizeType.Percent, 100f));
     pinNameTable.Size     = new Size(223, 24);
     pinNameTable.TabIndex = 10;
     pinText.Anchor        = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     pinNameTable.SetColumnSpan(pinText, 2);
     pinText.Location          = new Point(0, 0);
     pinText.Margin            = new Padding(0);
     pinText.Name              = "pinText";
     pinText.Size              = new Size(110, 20);
     pinText.TabIndex          = 2;
     addPushPinButton.Anchor   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
     addPushPinButton.Location = new Point(113, 0);
     addPushPinButton.Margin   = new Padding(3, 0, 0, 0);
     addPushPinButton.Name     = "addPushPinButton";
     addPushPinButton.Size     = new Size(52, 23);
     addPushPinButton.TabIndex = 0;
     addPushPinButton.Text     = "Add";
     toolTip.SetToolTip(addPushPinButton,
                        "To create a registration point, position the crosshairs over corresponding points on both maps.  Then click Add.");
     addPushPinButton.Click      += addPushPinButton_Click;
     updatePushPinButton.Anchor   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
     updatePushPinButton.Location = new Point(168, 0);
     updatePushPinButton.Margin   = new Padding(3, 0, 0, 0);
     updatePushPinButton.Name     = "updatePushPinButton";
     updatePushPinButton.Size     = new Size(55, 23);
     updatePushPinButton.TabIndex = 8;
     updatePushPinButton.Text     = "Update";
     toolTip.SetToolTip(updatePushPinButton,
                        "To move an existing point, highlight it on the list below.  Then reposition the crosshairs and click update.");
     updatePushPinButton.Click  += updatePushPinButton_Click;
     LockButtonTable.Anchor      = AnchorStyles.Bottom | AnchorStyles.Right;
     LockButtonTable.ColumnCount = 2;
     LockButtonTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     LockButtonTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     LockButtonTable.Controls.Add(removePushPinButton, 0, 0);
     LockButtonTable.Controls.Add(removeAllPushpinsButton, 1, 0);
     LockButtonTable.Controls.Add(unlockTransformButton, 0, 1);
     LockButtonTable.Controls.Add(lockTransformButton, 1, 1);
     LockButtonTable.Location = new Point(69, 293);
     LockButtonTable.Name     = "LockButtonTable";
     LockButtonTable.RowCount = 2;
     LockButtonTable.RowStyles.Add(new RowStyle());
     LockButtonTable.RowStyles.Add(new RowStyle());
     LockButtonTable.Size       = new Size(156, 59);
     LockButtonTable.TabIndex   = 9;
     removePushPinButton.Anchor =
         AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     removePushPinButton.Enabled  = false;
     removePushPinButton.Location = new Point(3, 3);
     removePushPinButton.Name     = "removePushPinButton";
     removePushPinButton.Size     = new Size(72, 23);
     removePushPinButton.TabIndex = 1;
     removePushPinButton.Text     = "Remove";
     toolTip.SetToolTip(removePushPinButton, "Removes the highlighted correspondence point.");
     removePushPinButton.Click     += removePushPinButton_Click;
     removeAllPushpinsButton.Anchor =
         AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     removeAllPushpinsButton.Enabled  = false;
     removeAllPushpinsButton.Location = new Point(81, 3);
     removeAllPushpinsButton.Name     = "removeAllPushpinsButton";
     removeAllPushpinsButton.Size     = new Size(72, 23);
     removeAllPushpinsButton.TabIndex = 4;
     removeAllPushpinsButton.Text     = "Remove All";
     toolTip.SetToolTip(removeAllPushpinsButton, "Removes all correspondence points.");
     removeAllPushpinsButton.Click += removeAllPushpinsButton_Click;
     unlockTransformButton.Anchor   =
         AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     unlockTransformButton.Location = new Point(3, 32);
     unlockTransformButton.Name     = "unlockTransformButton";
     unlockTransformButton.Size     = new Size(72, 24);
     unlockTransformButton.TabIndex = 0;
     unlockTransformButton.Text     = "Unlock";
     toolTip.SetToolTip(unlockTransformButton,
                        "Unlocks the source map from Virtual Earth, allowing additional points to be added.");
     unlockTransformButton.Click += unlockTransformButton_Click;
     lockTransformButton.Anchor   =
         AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     lockTransformButton.Location = new Point(81, 32);
     lockTransformButton.Name     = "lockTransformButton";
     lockTransformButton.Size     = new Size(72, 24);
     lockTransformButton.TabIndex = 0;
     lockTransformButton.Text     = "Lock";
     toolTip.SetToolTip(lockTransformButton,
                        "Warps the source map to fit Virtual Earth using the existing correspondence points.");
     lockTransformButton.Click      += lockTransformButton_Click;
     pinList.AllowUserToAddRows      = false;
     pinList.AllowUserToDeleteRows   = false;
     pinList.AllowUserToOrderColumns = true;
     pinList.AllowUserToResizeRows   = false;
     pinList.Anchor                      = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     pinList.BackgroundColor             = SystemColors.ButtonHighlight;
     pinList.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     pinList.Columns.AddRange(new DataGridViewColumn[]
     {
         pinIDcolumn, pinNameColumn, LocationColumn, Error
     });
     pinList.GridColor           = SystemColors.ActiveCaptionText;
     pinList.Location            = new Point(2, 32);
     pinList.Margin              = new Padding(2);
     pinList.MultiSelect         = false;
     pinList.Name                = "pinList";
     pinList.RowHeadersVisible   = false;
     pinList.RowTemplate.Height  = 24;
     pinList.SelectionMode       = DataGridViewSelectionMode.FullRowSelect;
     pinList.Size                = new Size(224, 202);
     pinList.TabIndex            = 7;
     pinList.DoubleClick        += pinList_ItemActivate;
     pinList.SelectionChanged   += pinList_SelectedIndexChanged;
     pinIDcolumn.AutoSizeMode    = DataGridViewAutoSizeColumnMode.Fill;
     pinIDcolumn.HeaderText      = "ID";
     pinIDcolumn.MinimumWidth    = 15;
     pinIDcolumn.Name            = "pinIDcolumn";
     pinIDcolumn.ReadOnly        = true;
     pinNameColumn.AutoSizeMode  = DataGridViewAutoSizeColumnMode.Fill;
     pinNameColumn.HeaderText    = "Name";
     pinNameColumn.Name          = "pinNameColumn";
     pinNameColumn.ReadOnly      = true;
     LocationColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
     LocationColumn.HeaderText   = "Location";
     LocationColumn.Name         = "LocationColumn";
     Error.AutoSizeMode          = DataGridViewAutoSizeColumnMode.Fill;
     Error.HeaderText            = "Error";
     Error.Name                   = "Error";
     lockStatusText.Anchor        = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     lockStatusText.BackColor     = SystemColors.ControlLightLight;
     lockStatusText.BorderStyle   = BorderStyle.None;
     lockStatusText.Location      = new Point(3, 239);
     lockStatusText.Multiline     = true;
     lockStatusText.Name          = "lockStatusText";
     lockStatusText.ReadOnly      = true;
     lockStatusText.Size          = new Size(223, 48);
     lockStatusText.TabIndex      = 6;
     lockStatusText.TabStop       = false;
     forceAffineCheckBox.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left;
     forceAffineCheckBox.AutoSize = true;
     forceAffineCheckBox.Location = new Point(9, 361);
     forceAffineCheckBox.Name     = "forceAffineCheckBox";
     forceAffineCheckBox.Size     = new Size(83, 17);
     forceAffineCheckBox.TabIndex = 11;
     forceAffineCheckBox.Text     = "Force Affine";
     toolTip.SetToolTip(forceAffineCheckBox,
                        "Selecting \"Affine\" forces MapCruncher to preserve straight lines in your map.  This reduces position accuracy.");
     forceAffineCheckBox.UseMnemonic             = false;
     forceAffineCheckBox.UseVisualStyleBackColor = true;
     forceAffineCheckBox.CheckedChanged         += checkBox1_CheckedChanged;
     panel1.Controls.Add(getStartedBox);
     panel1.Controls.Add(lockStatusText);
     panel1.Controls.Add(pinNameTable);
     panel1.Controls.Add(forceAffineCheckBox);
     panel1.Controls.Add(LockButtonTable);
     panel1.Controls.Add(pinList);
     panel1.Dock         = DockStyle.Fill;
     panel1.Location     = new Point(0, 0);
     panel1.Name         = "panel1";
     panel1.Size         = new Size(228, 388);
     panel1.TabIndex     = 12;
     AutoScaleDimensions = new SizeF(6f, 13f);
     AutoScaleMode       = AutoScaleMode.Font;
     Controls.Add(panel1);
     Name = "registrationControls";
     Size = new Size(228, 388);
     getStartedBox.ResumeLayout(false);
     getStartedBox.PerformLayout();
     pinNameTable.ResumeLayout(false);
     pinNameTable.PerformLayout();
     LockButtonTable.ResumeLayout(false);
     ((ISupportInitialize)pinList).EndInit();
     panel1.ResumeLayout(false);
     panel1.PerformLayout();
     ResumeLayout(false);
 }
Пример #25
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);
 }
Пример #26
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmDbSearch));

            repositoryItemPictureEdit1 = new RepositoryItemPictureEdit();
            repositoryItemDateEdit1    = new RepositoryItemDateEdit();
            groupBox1     = new GroupBox();
            labelControl6 = new LabelControl();
            cbSex         = new ComboBoxEdit();
            labelControl3 = new LabelControl();
            labelControl1 = new LabelControl();
            spinEdit1     = new SpinEdit();
            lbDate        = new LabelControl();
            tbScore       = new TextEdit();
            lbInfo        = new Label();
            btSearch      = new SimpleButton();
            btLoadPicture = new SimpleButton();
            pictureEdit1  = new PictureEdit();
            gbDate        = new GroupBox();
            labelControl5 = new LabelControl();
            labelControl4 = new LabelControl();
            dtBefore      = new DateEdit();
            dtFrom        = new DateEdit();
            gridControl1  = new GridControl();
            gridView1     = new GridView();
            colFaceID     = new GridColumn();
            colPicture    = new GridColumn();
            colName       = new GridColumn();
            colScore      = new GridColumn();
            colBirthday   = new GridColumn();
            colCategory   = new GridColumn();
            colPosition   = new GridColumn();
            btPrint       = new SimpleButton();
            labelControl2 = new LabelControl();
            marqueeProgressBarControl1 = new MarqueeProgressBarControl();
            btClearResults             = new SimpleButton();
            repositoryItemPictureEdit1.BeginInit();
            repositoryItemDateEdit1.BeginInit();
            repositoryItemDateEdit1.VistaTimeProperties.BeginInit();
            groupBox1.SuspendLayout();
            cbSex.Properties.BeginInit();
            spinEdit1.Properties.BeginInit();
            tbScore.Properties.BeginInit();
            pictureEdit1.Properties.BeginInit();
            gbDate.SuspendLayout();
            dtBefore.Properties.VistaTimeProperties.BeginInit();
            dtBefore.Properties.BeginInit();
            dtFrom.Properties.VistaTimeProperties.BeginInit();
            dtFrom.Properties.BeginInit();
            gridControl1.BeginInit();
            gridView1.BeginInit();
            marqueeProgressBarControl1.Properties.BeginInit();
            SuspendLayout();
            repositoryItemPictureEdit1.Name             = "repositoryItemPictureEdit1";
            repositoryItemPictureEdit1.PictureStoreMode = PictureStoreMode.ByteArray;
            repositoryItemPictureEdit1.SizeMode         = PictureSizeMode.Zoom;
            componentResourceManager.ApplyResources(repositoryItemDateEdit1, "repositoryItemDateEdit1");
            repositoryItemDateEdit1.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton((ButtonPredefines)componentResourceManager.GetObject("repositoryItemDateEdit1.Buttons"))
            });
            repositoryItemDateEdit1.Name = "repositoryItemDateEdit1";
            repositoryItemDateEdit1.VistaTimeProperties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            groupBox1.Controls.Add(labelControl6);
            groupBox1.Controls.Add(cbSex);
            groupBox1.Controls.Add(labelControl3);
            groupBox1.Controls.Add(labelControl1);
            groupBox1.Controls.Add(spinEdit1);
            groupBox1.Controls.Add(lbDate);
            groupBox1.Controls.Add(tbScore);
            groupBox1.Controls.Add(lbInfo);
            groupBox1.Controls.Add(btSearch);
            groupBox1.Controls.Add(btLoadPicture);
            groupBox1.Controls.Add(pictureEdit1);
            groupBox1.Controls.Add(gbDate);
            componentResourceManager.ApplyResources(groupBox1, "groupBox1");
            groupBox1.Name                = "groupBox1";
            groupBox1.TabStop             = false;
            groupBox1.Enter              += groupBox1_Enter;
            labelControl6.Appearance.Font = (Font)componentResourceManager.GetObject("labelControl6.Appearance.Font");
            componentResourceManager.ApplyResources(labelControl6, "labelControl6");
            labelControl6.Name = "labelControl6";
            componentResourceManager.ApplyResources(cbSex, "cbSex");
            cbSex.Name = "cbSex";
            cbSex.Properties.AutoHeight = (bool)componentResourceManager.GetObject("cbSex.Properties.AutoHeight");
            cbSex.Properties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton((ButtonPredefines)componentResourceManager.GetObject("cbSex.Properties.Buttons"))
            });
            cbSex.Properties.Items.AddRange(new object[2]
            {
                componentResourceManager.GetString("cbSex.Properties.Items"),
                componentResourceManager.GetString("cbSex.Properties.Items1")
            });
            labelControl3.Appearance.Font = (Font)componentResourceManager.GetObject("labelControl3.Appearance.Font");
            componentResourceManager.ApplyResources(labelControl3, "labelControl3");
            labelControl3.Name            = "labelControl3";
            labelControl1.Appearance.Font = (Font)componentResourceManager.GetObject("labelControl1.Appearance.Font");
            componentResourceManager.ApplyResources(labelControl1, "labelControl1");
            labelControl1.Name = "labelControl1";
            componentResourceManager.ApplyResources(spinEdit1, "spinEdit1");
            spinEdit1.Name = "spinEdit1";
            spinEdit1.Properties.AutoHeight = (bool)componentResourceManager.GetObject("spinEdit1.Properties.AutoHeight");
            spinEdit1.Properties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            lbDate.Appearance.Font = (Font)componentResourceManager.GetObject("lbDate.Appearance.Font");
            componentResourceManager.ApplyResources(lbDate, "lbDate");
            lbDate.Name = "lbDate";
            componentResourceManager.ApplyResources(tbScore, "tbScore");
            tbScore.Name = "tbScore";
            tbScore.Properties.Appearance.Font            = (Font)componentResourceManager.GetObject("tbScore.Properties.Appearance.Font");
            tbScore.Properties.Appearance.Options.UseFont = true;
            tbScore.TextChanged += tbScore_TextChanged;
            tbScore.Validating  += tbScore_Validating;
            componentResourceManager.ApplyResources(lbInfo, "lbInfo");
            lbInfo.Name = "lbInfo";
            btSearch.Appearance.Font            = (Font)componentResourceManager.GetObject("btSearch.Appearance.Font");
            btSearch.Appearance.Options.UseFont = true;
            componentResourceManager.ApplyResources(btSearch, "btSearch");
            btSearch.Name   = "btSearch";
            btSearch.Click += simpleButton2_Click;
            btLoadPicture.Appearance.Font            = (Font)componentResourceManager.GetObject("btLoadPicture.Appearance.Font");
            btLoadPicture.Appearance.Options.UseFont = true;
            componentResourceManager.ApplyResources(btLoadPicture, "btLoadPicture");
            btLoadPicture.Name   = "btLoadPicture";
            btLoadPicture.Click += btLoadPicture_Click;
            componentResourceManager.ApplyResources(pictureEdit1, "pictureEdit1");
            pictureEdit1.Name = "pictureEdit1";
            pictureEdit1.Properties.SizeMode = PictureSizeMode.Zoom;
            gbDate.Controls.Add(labelControl5);
            gbDate.Controls.Add(labelControl4);
            gbDate.Controls.Add(dtBefore);
            gbDate.Controls.Add(dtFrom);
            componentResourceManager.ApplyResources(gbDate, "gbDate");
            gbDate.Name    = "gbDate";
            gbDate.TabStop = false;
            labelControl5.Appearance.Font = (Font)componentResourceManager.GetObject("labelControl5.Appearance.Font");
            componentResourceManager.ApplyResources(labelControl5, "labelControl5");
            labelControl5.Name            = "labelControl5";
            labelControl4.Appearance.Font = (Font)componentResourceManager.GetObject("labelControl4.Appearance.Font");
            componentResourceManager.ApplyResources(labelControl4, "labelControl4");
            labelControl4.Name = "labelControl4";
            componentResourceManager.ApplyResources(dtBefore, "dtBefore");
            dtBefore.Name = "dtBefore";
            dtBefore.Properties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton((ButtonPredefines)componentResourceManager.GetObject("dtBefore.Properties.Buttons"))
            });
            dtBefore.Properties.VistaTimeProperties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            componentResourceManager.ApplyResources(dtFrom, "dtFrom");
            dtFrom.Name = "dtFrom";
            dtFrom.Properties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton((ButtonPredefines)componentResourceManager.GetObject("dtFrom.Properties.Buttons"))
            });
            dtFrom.Properties.VistaTimeProperties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            componentResourceManager.ApplyResources(gridControl1, "gridControl1");
            gridControl1.LookAndFeel.SkinName = "Office 2007 Blue";
            gridControl1.MainView             = gridView1;
            gridControl1.Name = "gridControl1";
            gridControl1.ViewCollection.AddRange(new BaseView[1]
            {
                gridView1
            });
            gridView1.ColumnPanelRowHeight = 50;
            gridView1.Columns.AddRange(new GridColumn[7]
            {
                colFaceID,
                colPicture,
                colName,
                colScore,
                colBirthday,
                colCategory,
                colPosition
            });
            gridView1.GridControl                      = gridControl1;
            gridView1.IndicatorWidth                   = 60;
            gridView1.Name                             = "gridView1";
            gridView1.OptionsBehavior.Editable         = false;
            gridView1.OptionsCustomization.AllowFilter = false;
            gridView1.OptionsFind.ClearFindOnClose     = false;
            gridView1.OptionsFind.FindDelay            = 10000;
            gridView1.OptionsFind.FindMode             = FindMode.Always;
            gridView1.OptionsFind.ShowCloseButton      = false;
            gridView1.OptionsSelection.MultiSelect     = true;
            gridView1.OptionsView.RowAutoHeight        = true;
            gridView1.OptionsView.ShowGroupPanel       = false;
            gridView1.SortInfo.AddRange(new GridColumnSortInfo[1]
            {
                new GridColumnSortInfo(colScore, ColumnSortOrder.Descending)
            });
            gridView1.CustomDrawRowIndicator                 += gridView1_CustomDrawRowIndicator;
            colFaceID.AppearanceCell.Font                     = (Font)componentResourceManager.GetObject("colFaceID.AppearanceCell.Font");
            colFaceID.AppearanceCell.Options.UseFont          = true;
            colFaceID.AppearanceHeader.Font                   = (Font)componentResourceManager.GetObject("colFaceID.AppearanceHeader.Font");
            colFaceID.AppearanceHeader.Options.UseFont        = true;
            colFaceID.AppearanceHeader.Options.UseTextOptions = true;
            colFaceID.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            componentResourceManager.ApplyResources(colFaceID, "colFaceID");
            colFaceID.FieldName = "FaceID";
            colFaceID.Name      = "colFaceID";
            colFaceID.OptionsColumn.AllowEdit                  = false;
            colFaceID.OptionsColumn.ReadOnly                   = true;
            colPicture.AppearanceCell.Font                     = (Font)componentResourceManager.GetObject("colPicture.AppearanceCell.Font");
            colPicture.AppearanceCell.Options.UseFont          = true;
            colPicture.AppearanceHeader.Font                   = (Font)componentResourceManager.GetObject("colPicture.AppearanceHeader.Font");
            colPicture.AppearanceHeader.Options.UseFont        = true;
            colPicture.AppearanceHeader.Options.UseTextOptions = true;
            colPicture.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            componentResourceManager.ApplyResources(colPicture, "colPicture");
            colPicture.ColumnEdit = repositoryItemPictureEdit1;
            colPicture.FieldName  = "Image";
            colPicture.Name       = "colPicture";
            colPicture.OptionsColumn.AllowEdit              = false;
            colPicture.OptionsColumn.AllowSort              = DefaultBoolean.False;
            colPicture.OptionsColumn.ReadOnly               = true;
            colName.AppearanceCell.Font                     = (Font)componentResourceManager.GetObject("colName.AppearanceCell.Font");
            colName.AppearanceCell.Options.UseFont          = true;
            colName.AppearanceHeader.Font                   = (Font)componentResourceManager.GetObject("colName.AppearanceHeader.Font");
            colName.AppearanceHeader.Options.UseFont        = true;
            colName.AppearanceHeader.Options.UseTextOptions = true;
            colName.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            componentResourceManager.ApplyResources(colName, "colName");
            colName.FieldName = "Name";
            colName.Name      = "colName";
            colName.OptionsColumn.AllowEdit                  = false;
            colName.OptionsColumn.ReadOnly                   = true;
            colScore.AppearanceCell.Font                     = (Font)componentResourceManager.GetObject("colScore.AppearanceCell.Font");
            colScore.AppearanceCell.Options.UseFont          = true;
            colScore.AppearanceHeader.Font                   = (Font)componentResourceManager.GetObject("colScore.AppearanceHeader.Font");
            colScore.AppearanceHeader.Options.UseFont        = true;
            colScore.AppearanceHeader.Options.UseTextOptions = true;
            colScore.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            colScore.AppearanceHeader.TextOptions.WordWrap   = WordWrap.Wrap;
            componentResourceManager.ApplyResources(colScore, "colScore");
            colScore.FieldName = "Score";
            colScore.Name      = "colScore";
            colScore.OptionsColumn.AllowEdit                    = false;
            colScore.OptionsColumn.FixedWidth                   = true;
            colScore.OptionsColumn.ReadOnly                     = true;
            colBirthday.AppearanceCell.Font                     = (Font)componentResourceManager.GetObject("colBirthday.AppearanceCell.Font");
            colBirthday.AppearanceCell.Options.UseFont          = true;
            colBirthday.AppearanceHeader.Font                   = (Font)componentResourceManager.GetObject("colBirthday.AppearanceHeader.Font");
            colBirthday.AppearanceHeader.Options.UseFont        = true;
            colBirthday.AppearanceHeader.Options.UseTextOptions = true;
            colBirthday.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            colBirthday.AppearanceHeader.TextOptions.WordWrap   = WordWrap.Wrap;
            componentResourceManager.ApplyResources(colBirthday, "colBirthday");
            colBirthday.ColumnEdit = repositoryItemDateEdit1;
            colBirthday.DisplayFormat.FormatString = "dd.MM.yyyy HH:mm:ss";
            colBirthday.DisplayFormat.FormatType   = FormatType.DateTime;
            colBirthday.FieldName = "Birthday";
            colBirthday.Name      = "colBirthday";
            colBirthday.OptionsColumn.AllowEdit                 = false;
            colBirthday.OptionsColumn.ReadOnly                  = true;
            colCategory.AppearanceCell.Font                     = (Font)componentResourceManager.GetObject("colCategory.AppearanceCell.Font");
            colCategory.AppearanceCell.Options.UseFont          = true;
            colCategory.AppearanceHeader.Font                   = (Font)componentResourceManager.GetObject("colCategory.AppearanceHeader.Font");
            colCategory.AppearanceHeader.Options.UseFont        = true;
            colCategory.AppearanceHeader.Options.UseTextOptions = true;
            colCategory.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            componentResourceManager.ApplyResources(colCategory, "colCategory");
            colCategory.FieldName = "Category";
            colCategory.Name      = "colCategory";
            colCategory.OptionsColumn.ReadOnly                  = true;
            colPosition.AppearanceCell.Font                     = (Font)componentResourceManager.GetObject("colPosition.AppearanceCell.Font");
            colPosition.AppearanceCell.Options.UseFont          = true;
            colPosition.AppearanceHeader.Font                   = (Font)componentResourceManager.GetObject("colPosition.AppearanceHeader.Font");
            colPosition.AppearanceHeader.Options.UseFont        = true;
            colPosition.AppearanceHeader.Options.UseTextOptions = true;
            colPosition.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            colPosition.AppearanceHeader.TextOptions.WordWrap   = WordWrap.Wrap;
            componentResourceManager.ApplyResources(colPosition, "colPosition");
            colPosition.FieldName = "Comment";
            colPosition.Name      = "colPosition";
            colPosition.OptionsColumn.AllowEdit = false;
            colPosition.OptionsColumn.ReadOnly  = true;
            componentResourceManager.ApplyResources(btPrint, "btPrint");
            btPrint.Appearance.Font            = (Font)componentResourceManager.GetObject("btPrint.Appearance.Font");
            btPrint.Appearance.Options.UseFont = true;
            btPrint.Name   = "btPrint";
            btPrint.Click += btPrint_Click;
            labelControl2.Appearance.Font = (Font)componentResourceManager.GetObject("labelControl2.Appearance.Font");
            componentResourceManager.ApplyResources(labelControl2, "labelControl2");
            labelControl2.Name = "labelControl2";
            componentResourceManager.ApplyResources(marqueeProgressBarControl1, "marqueeProgressBarControl1");
            marqueeProgressBarControl1.Name              = "marqueeProgressBarControl1";
            marqueeProgressBarControl1.EditValueChanged += marqueeProgressBarControl1_EditValueChanged;
            componentResourceManager.ApplyResources(btClearResults, "btClearResults");
            btClearResults.Appearance.Font            = (Font)componentResourceManager.GetObject("btClearResults.Appearance.Font");
            btClearResults.Appearance.Options.UseFont = true;
            btClearResults.Name        = "btClearResults";
            btClearResults.Click      += btClearResults_Click;
            Appearance.Font            = (Font)componentResourceManager.GetObject("frmDBSearch.Appearance.Font");
            Appearance.Options.UseFont = true;
            AutoScaleMode = AutoScaleMode.None;
            componentResourceManager.ApplyResources(this, "$this");
            Controls.Add(btClearResults);
            Controls.Add(labelControl2);
            Controls.Add(marqueeProgressBarControl1);
            Controls.Add(groupBox1);
            Controls.Add(btPrint);
            Controls.Add(gridControl1);
            FormBorderStyle = FormBorderStyle.None;
            Name            = "FrmDbSearch";
            ShowIcon        = false;
            WindowState     = FormWindowState.Maximized;
            FormClosing    += frmLogSearch_FormClosing;
            Load           += frmDBSearch_Load;
            Resize         += frmDBSearch_Resize;
            repositoryItemPictureEdit1.EndInit();
            repositoryItemDateEdit1.VistaTimeProperties.EndInit();
            repositoryItemDateEdit1.EndInit();
            groupBox1.ResumeLayout(false);
            groupBox1.PerformLayout();
            cbSex.Properties.EndInit();
            spinEdit1.Properties.EndInit();
            tbScore.Properties.EndInit();
            pictureEdit1.Properties.EndInit();
            gbDate.ResumeLayout(false);
            gbDate.PerformLayout();
            dtBefore.Properties.VistaTimeProperties.EndInit();
            dtBefore.Properties.EndInit();
            dtFrom.Properties.VistaTimeProperties.EndInit();
            dtFrom.Properties.EndInit();
            gridControl1.EndInit();
            gridView1.EndInit();
            marqueeProgressBarControl1.Properties.EndInit();
            ResumeLayout(false);
            PerformLayout();
        }
Пример #27
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()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormFinanceEtatsGlobal));
     gbEtatsGlobal       = new GroupBox();
     label6              = new Label();
     label5              = new Label();
     lblTotalPaiement    = new Label();
     label4              = new Label();
     lblTPS              = new Label();
     label3              = new Label();
     lblTVQ              = new Label();
     label2              = new Label();
     lblMontantExcluTaxe = new Label();
     label1              = new Label();
     lblMontantIncluTaxe = new Label();
     cbYear              = new ComboBox();
     cmdOK                    = new Button();
     groupBox1                = new GroupBox();
     label18                  = new Label();
     cbMonth                  = new ComboBox();
     label7                   = new Label();
     label8                   = new Label();
     lblTotalPaiementMonth    = new Label();
     label10                  = new Label();
     lblTPSMonth              = new Label();
     label12                  = new Label();
     lblTVQMonth              = new Label();
     label14                  = new Label();
     lblMontantExcluTaxeMonth = new Label();
     label16                  = new Label();
     lblMontantIncluTaxeMonth = new Label();
     cbYearMois               = new ComboBox();
     gbEtatsGlobal.SuspendLayout();
     groupBox1.SuspendLayout();
     SuspendLayout();
     //
     // gbEtatsGlobal
     //
     gbEtatsGlobal.Controls.Add(label6);
     gbEtatsGlobal.Controls.Add(label5);
     gbEtatsGlobal.Controls.Add(lblTotalPaiement);
     gbEtatsGlobal.Controls.Add(label4);
     gbEtatsGlobal.Controls.Add(lblTPS);
     gbEtatsGlobal.Controls.Add(label3);
     gbEtatsGlobal.Controls.Add(lblTVQ);
     gbEtatsGlobal.Controls.Add(label2);
     gbEtatsGlobal.Controls.Add(lblMontantExcluTaxe);
     gbEtatsGlobal.Controls.Add(label1);
     gbEtatsGlobal.Controls.Add(lblMontantIncluTaxe);
     gbEtatsGlobal.Controls.Add(cbYear);
     gbEtatsGlobal.Location = new System.Drawing.Point(16, 16);
     gbEtatsGlobal.Name     = "gbEtatsGlobal";
     gbEtatsGlobal.Size     = new System.Drawing.Size(232, 192);
     gbEtatsGlobal.TabIndex = 17;
     gbEtatsGlobal.TabStop  = false;
     gbEtatsGlobal.Text     = "Informations sur l\'anné en cours";
     //
     // label6
     //
     label6.Location  = new System.Drawing.Point(10, 32);
     label6.Name      = "label6";
     label6.Size      = new System.Drawing.Size(110, 21);
     label6.TabIndex  = 20;
     label6.Text      = "Année :";
     label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label5
     //
     label5.Location  = new System.Drawing.Point(10, 64);
     label5.Name      = "label5";
     label5.Size      = new System.Drawing.Size(110, 16);
     label5.TabIndex  = 9;
     label5.Text      = "Nombre de paiment :";
     label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblTotalPaiement
     //
     lblTotalPaiement.Location  = new System.Drawing.Point(127, 64);
     lblTotalPaiement.Name      = "lblTotalPaiement";
     lblTotalPaiement.Size      = new System.Drawing.Size(95, 16);
     lblTotalPaiement.TabIndex  = 8;
     lblTotalPaiement.Text      = "-";
     lblTotalPaiement.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label4
     //
     label4.Location  = new System.Drawing.Point(10, 112);
     label4.Name      = "label4";
     label4.Size      = new System.Drawing.Size(78, 16);
     label4.TabIndex  = 7;
     label4.Text      = "TPS :";
     label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblTPS
     //
     lblTPS.Location  = new System.Drawing.Point(127, 112);
     lblTPS.Name      = "lblTPS";
     lblTPS.Size      = new System.Drawing.Size(95, 16);
     lblTPS.TabIndex  = 6;
     lblTPS.Text      = "-";
     lblTPS.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label3
     //
     label3.Location  = new System.Drawing.Point(10, 136);
     label3.Name      = "label3";
     label3.Size      = new System.Drawing.Size(78, 16);
     label3.TabIndex  = 5;
     label3.Text      = "TVQ :";
     label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblTVQ
     //
     lblTVQ.Location  = new System.Drawing.Point(127, 136);
     lblTVQ.Name      = "lblTVQ";
     lblTVQ.Size      = new System.Drawing.Size(95, 16);
     lblTVQ.TabIndex  = 4;
     lblTVQ.Text      = "-";
     lblTVQ.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label2
     //
     label2.Location  = new System.Drawing.Point(10, 88);
     label2.Name      = "label2";
     label2.Size      = new System.Drawing.Size(78, 16);
     label2.TabIndex  = 3;
     label2.Text      = "Total partiel :";
     label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblMontantExcluTaxe
     //
     lblMontantExcluTaxe.Location  = new System.Drawing.Point(127, 88);
     lblMontantExcluTaxe.Name      = "lblMontantExcluTaxe";
     lblMontantExcluTaxe.Size      = new System.Drawing.Size(95, 16);
     lblMontantExcluTaxe.TabIndex  = 2;
     lblMontantExcluTaxe.Text      = "-";
     lblMontantExcluTaxe.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     label1.Location  = new System.Drawing.Point(10, 160);
     label1.Name      = "label1";
     label1.Size      = new System.Drawing.Size(78, 16);
     label1.TabIndex  = 1;
     label1.Text      = "Total  :";
     label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblMontantIncluTaxe
     //
     lblMontantIncluTaxe.Location  = new System.Drawing.Point(127, 160);
     lblMontantIncluTaxe.Name      = "lblMontantIncluTaxe";
     lblMontantIncluTaxe.Size      = new System.Drawing.Size(95, 16);
     lblMontantIncluTaxe.TabIndex  = 0;
     lblMontantIncluTaxe.Text      = "-";
     lblMontantIncluTaxe.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // cbYear
     //
     cbYear.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     cbYear.FormattingEnabled = true;
     cbYear.Items.AddRange(new object[] {
         "1995",
         "1996",
         "1997",
         "1998",
         "1999",
         "2000",
         "2001",
         "2002",
         "2003",
         "2004",
         "2005",
         "2006",
         "2007",
         "2008",
         "2009",
         "2010",
         "2011",
         "2012",
         "2013",
         "2014",
         "2015",
         "2016",
         "2017",
         "2018",
         "2019",
         "2020"
     });
     cbYear.Location              = new System.Drawing.Point(127, 32);
     cbYear.Name                  = "cbYear";
     cbYear.Size                  = new System.Drawing.Size(97, 21);
     cbYear.Sorted                = true;
     cbYear.TabIndex              = 19;
     cbYear.SelectedIndexChanged += new EventHandler(cbYear_SelectedIndexChanged);
     //
     // cmdOK
     //
     cmdOK.Anchor    = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
     cmdOK.FlatStyle = System.Windows.Forms.FlatStyle.System;
     cmdOK.Location  = new System.Drawing.Point(421, 216);
     cmdOK.Name      = "cmdOK";
     cmdOK.Size      = new System.Drawing.Size(75, 23);
     cmdOK.TabIndex  = 18;
     cmdOK.Text      = "OK";
     cmdOK.Click    += new EventHandler(cmdOK_Click);
     //
     // groupBox1
     //
     groupBox1.Controls.Add(label18);
     groupBox1.Controls.Add(cbMonth);
     groupBox1.Controls.Add(label7);
     groupBox1.Controls.Add(label8);
     groupBox1.Controls.Add(lblTotalPaiementMonth);
     groupBox1.Controls.Add(label10);
     groupBox1.Controls.Add(lblTPSMonth);
     groupBox1.Controls.Add(label12);
     groupBox1.Controls.Add(lblTVQMonth);
     groupBox1.Controls.Add(label14);
     groupBox1.Controls.Add(lblMontantExcluTaxeMonth);
     groupBox1.Controls.Add(label16);
     groupBox1.Controls.Add(lblMontantIncluTaxeMonth);
     groupBox1.Controls.Add(cbYearMois);
     groupBox1.Location = new System.Drawing.Point(256, 16);
     groupBox1.Name     = "groupBox1";
     groupBox1.Size     = new System.Drawing.Size(240, 192);
     groupBox1.TabIndex = 19;
     groupBox1.TabStop  = false;
     groupBox1.Text     = "Informations sur le mois ";
     //
     // label18
     //
     label18.Location  = new System.Drawing.Point(9, 40);
     label18.Name      = "label18";
     label18.Size      = new System.Drawing.Size(110, 21);
     label18.TabIndex  = 22;
     label18.Text      = "Mois :";
     label18.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // cbMonth
     //
     cbMonth.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     cbMonth.FormattingEnabled = true;
     cbMonth.Items.AddRange(new object[] {
         "Janvier",
         "Février",
         "Mars",
         "Avril",
         "Mai",
         "Juin",
         "Juillet",
         "Août",
         "Septembre",
         "Octobre",
         "Novembre",
         "Décembre"
     });
     cbMonth.Location              = new System.Drawing.Point(126, 40);
     cbMonth.Name                  = "cbMonth";
     cbMonth.Size                  = new System.Drawing.Size(106, 21);
     cbMonth.TabIndex              = 21;
     cbMonth.SelectedIndexChanged += new EventHandler(cbYearMois_SelectedIndexChanged);
     //
     // label7
     //
     label7.Location  = new System.Drawing.Point(10, 18);
     label7.Name      = "label7";
     label7.Size      = new System.Drawing.Size(110, 21);
     label7.TabIndex  = 20;
     label7.Text      = "Année :";
     label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label8
     //
     label8.Location  = new System.Drawing.Point(10, 72);
     label8.Name      = "label8";
     label8.Size      = new System.Drawing.Size(110, 16);
     label8.TabIndex  = 9;
     label8.Text      = "Nombre de paiment :";
     label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblTotalPaiementMonth
     //
     lblTotalPaiementMonth.Location  = new System.Drawing.Point(126, 72);
     lblTotalPaiementMonth.Name      = "lblTotalPaiementMonth";
     lblTotalPaiementMonth.Size      = new System.Drawing.Size(104, 16);
     lblTotalPaiementMonth.TabIndex  = 8;
     lblTotalPaiementMonth.Text      = "-";
     lblTotalPaiementMonth.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label10
     //
     label10.Location  = new System.Drawing.Point(10, 120);
     label10.Name      = "label10";
     label10.Size      = new System.Drawing.Size(78, 16);
     label10.TabIndex  = 7;
     label10.Text      = "TPS :";
     label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblTPSMonth
     //
     lblTPSMonth.Location  = new System.Drawing.Point(126, 120);
     lblTPSMonth.Name      = "lblTPSMonth";
     lblTPSMonth.Size      = new System.Drawing.Size(104, 16);
     lblTPSMonth.TabIndex  = 6;
     lblTPSMonth.Text      = "-";
     lblTPSMonth.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label12
     //
     label12.Location  = new System.Drawing.Point(10, 144);
     label12.Name      = "label12";
     label12.Size      = new System.Drawing.Size(78, 16);
     label12.TabIndex  = 5;
     label12.Text      = "TVQ :";
     label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblTVQMonth
     //
     lblTVQMonth.Location  = new System.Drawing.Point(126, 144);
     lblTVQMonth.Name      = "lblTVQMonth";
     lblTVQMonth.Size      = new System.Drawing.Size(104, 16);
     lblTVQMonth.TabIndex  = 4;
     lblTVQMonth.Text      = "-";
     lblTVQMonth.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label14
     //
     label14.Location  = new System.Drawing.Point(10, 96);
     label14.Name      = "label14";
     label14.Size      = new System.Drawing.Size(78, 16);
     label14.TabIndex  = 3;
     label14.Text      = "Total partiel :";
     label14.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblMontantExcluTaxeMonth
     //
     lblMontantExcluTaxeMonth.Location  = new System.Drawing.Point(126, 96);
     lblMontantExcluTaxeMonth.Name      = "lblMontantExcluTaxeMonth";
     lblMontantExcluTaxeMonth.Size      = new System.Drawing.Size(104, 16);
     lblMontantExcluTaxeMonth.TabIndex  = 2;
     lblMontantExcluTaxeMonth.Text      = "-";
     lblMontantExcluTaxeMonth.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label16
     //
     label16.Location  = new System.Drawing.Point(10, 168);
     label16.Name      = "label16";
     label16.Size      = new System.Drawing.Size(78, 16);
     label16.TabIndex  = 1;
     label16.Text      = "Total  :";
     label16.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblMontantIncluTaxeMonth
     //
     lblMontantIncluTaxeMonth.Location  = new System.Drawing.Point(126, 168);
     lblMontantIncluTaxeMonth.Name      = "lblMontantIncluTaxeMonth";
     lblMontantIncluTaxeMonth.Size      = new System.Drawing.Size(104, 16);
     lblMontantIncluTaxeMonth.TabIndex  = 0;
     lblMontantIncluTaxeMonth.Text      = "-";
     lblMontantIncluTaxeMonth.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // cbYearMois
     //
     cbYearMois.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     cbYearMois.FormattingEnabled = true;
     cbYearMois.Items.AddRange(new object[] {
         "1995",
         "1996",
         "1997",
         "1998",
         "1999",
         "2000",
         "2001",
         "2002",
         "2003",
         "2004",
         "2005",
         "2006",
         "2007",
         "2008",
         "2009",
         "2010",
         "2011",
         "2012",
         "2013",
         "2014",
         "2015",
         "2016",
         "2017",
         "2018",
         "2019",
         "2020"
     });
     cbYearMois.Location              = new System.Drawing.Point(126, 16);
     cbYearMois.Name                  = "cbYearMois";
     cbYearMois.Size                  = new System.Drawing.Size(106, 21);
     cbYearMois.Sorted                = true;
     cbYearMois.TabIndex              = 19;
     cbYearMois.SelectedIndexChanged += new EventHandler(cbYearMois_SelectedIndexChanged);
     //
     // FormFinanceEtatsGlobal
     //
     ClientSize = new System.Drawing.Size(506, 246);
     Controls.Add(groupBox1);
     Controls.Add(cmdOK);
     Controls.Add(gbEtatsGlobal);
     FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     Icon            = (System.Drawing.Icon)resources.GetObject("$this.Icon");
     MaximizeBox     = false;
     MinimizeBox     = false;
     Name            = "FormFinanceEtatsGlobal";
     StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     Text            = "États Global";
     gbEtatsGlobal.ResumeLayout(false);
     groupBox1.ResumeLayout(false);
     ResumeLayout(false);
 }
Пример #28
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Entree_Stock));

            btnNew       = new Button();
            btnDelete    = new Button();
            btnUpdate    = new Button();
            btnInit      = new Button();
            dgv1         = new DataGridView();
            Label3       = new Label();
            Label1       = new Label();
            Button1      = new Button();
            Button3      = new Button();
            GroupBox1    = new GroupBox();
            Button5      = new Button();
            REFART       = new ComboBox();
            Label5       = new Label();
            B_rechercher = new Button();
            Label6       = new Label();
            LIBART       = new ComboBox();
            ((ISupportInitialize)dgv1).BeginInit();
            GroupBox1.SuspendLayout();
            base.SuspendLayout();
            btnNew.BackColor             = Color.White;
            btnNew.BackgroundImageLayout = ImageLayout.Zoom;
            btnNew.Cursor     = Cursors.Hand;
            btnNew.Font       = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            btnNew.Image      = Resources.add_1_icon;
            btnNew.ImageAlign = ContentAlignment.MiddleLeft;
            btnNew.Location   = new Point(0, 308);
            btnNew.Margin     = new Padding(3, 4, 3, 4);
            btnNew.Name       = "btnNew";
            btnNew.Size       = new Size(113, 54);
            btnNew.TabIndex   = 18;
            btnNew.Text       = "Ajouter";
            btnNew.TextAlign  = ContentAlignment.MiddleRight;
            btnNew.UseVisualStyleBackColor = false;
            btnDelete.BackColor            = Color.White;
            btnDelete.Cursor     = Cursors.Hand;
            btnDelete.Font       = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            btnDelete.Image      = Resources.Button_Delete_icon;
            btnDelete.ImageAlign = ContentAlignment.MiddleLeft;
            btnDelete.Location   = new Point(0, 482);
            btnDelete.Margin     = new Padding(3, 4, 3, 4);
            btnDelete.Name       = "btnDelete";
            btnDelete.Size       = new Size(113, 46);
            btnDelete.TabIndex   = 16;
            btnDelete.Text       = "Supprimer";
            btnDelete.TextAlign  = ContentAlignment.MiddleRight;
            btnDelete.UseVisualStyleBackColor = false;
            btnUpdate.BackColor  = Color.White;
            btnUpdate.Cursor     = Cursors.Hand;
            btnUpdate.Font       = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            btnUpdate.Image      = Resources.edit_file_icon;
            btnUpdate.ImageAlign = ContentAlignment.MiddleLeft;
            btnUpdate.Location   = new Point(0, 397);
            btnUpdate.Margin     = new Padding(3, 4, 3, 4);
            btnUpdate.Name       = "btnUpdate";
            btnUpdate.Size       = new Size(113, 49);
            btnUpdate.TabIndex   = 14;
            btnUpdate.Text       = "Modifier";
            btnUpdate.TextAlign  = ContentAlignment.MiddleRight;
            btnUpdate.UseVisualStyleBackColor = false;
            btnInit.BackColor  = Color.White;
            btnInit.Cursor     = Cursors.Hand;
            btnInit.Font       = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            btnInit.Image      = Resources.Button_Refresh_icon;
            btnInit.ImageAlign = ContentAlignment.MiddleLeft;
            btnInit.Location   = new Point(0, 217);
            btnInit.Margin     = new Padding(3, 4, 3, 4);
            btnInit.Name       = "btnInit";
            btnInit.Size       = new Size(113, 52);
            btnInit.TabIndex   = 13;
            btnInit.Text       = "Initier";
            btnInit.TextAlign  = ContentAlignment.MiddleRight;
            btnInit.UseVisualStyleBackColor  = false;
            dgv1.AllowUserToAddRows          = false;
            dgv1.AllowUserToDeleteRows       = false;
            dgv1.AutoSizeRowsMode            = DataGridViewAutoSizeRowsMode.AllCells;
            dgv1.BackgroundColor             = Color.White;
            dgv1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            dgv1.Location                   = new Point(119, 198);
            dgv1.Margin                     = new Padding(3, 4, 3, 4);
            dgv1.Name                       = "dgv1";
            dgv1.ReadOnly                   = true;
            dgv1.Size                       = new Size(1125, 479);
            dgv1.TabIndex                   = 12;
            Label3.AutoSize                 = true;
            Label3.BackColor                = Color.Transparent;
            Label3.Cursor                   = Cursors.Hand;
            Label3.Font                     = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            Label3.Location                 = new Point(1032, 150);
            Label3.Name                     = "Label3";
            Label3.Size                     = new Size(91, 16);
            Label3.TabIndex                 = 31;
            Label3.Text                     = "Sorties Stock";
            Label1.AutoSize                 = true;
            Label1.BackColor                = Color.Transparent;
            Label1.Cursor                   = Cursors.Hand;
            Label1.Font                     = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            Label1.Location                 = new Point(907, 150);
            Label1.Name                     = "Label1";
            Label1.Size                     = new Size(87, 16);
            Label1.TabIndex                 = 30;
            Label1.Text                     = "Stock global";
            Button1.BackgroundImage         = (Image)componentResourceManager.GetObject("Button1.BackgroundImage");
            Button1.Cursor                  = Cursors.Hand;
            Button1.Location                = new Point(1044, 71);
            Button1.Margin                  = new Padding(3, 4, 3, 4);
            Button1.Name                    = "Button1";
            Button1.Size                    = new Size(70, 75);
            Button1.TabIndex                = 29;
            Button1.UseVisualStyleBackColor = true;
            Button3.BackgroundImage         = (Image)componentResourceManager.GetObject("Button3.BackgroundImage");
            Button3.Cursor                  = Cursors.Hand;
            Button3.Location                = new Point(910, 71);
            Button3.Margin                  = new Padding(3, 4, 3, 4);
            Button3.Name                    = "Button3";
            Button3.Size                    = new Size(73, 75);
            Button3.TabIndex                = 28;
            Button3.UseVisualStyleBackColor = true;
            GroupBox1.BackColor             = Color.Transparent;
            GroupBox1.BackgroundImageLayout = ImageLayout.Stretch;
            GroupBox1.Controls.Add(Button5);
            GroupBox1.Controls.Add(REFART);
            GroupBox1.Controls.Add(Label5);
            GroupBox1.Controls.Add(B_rechercher);
            GroupBox1.Controls.Add(Label6);
            GroupBox1.Controls.Add(LIBART);
            GroupBox1.Font     = new Font("Arial", 12f, FontStyle.Regular, GraphicsUnit.Point, 178);
            GroupBox1.Location = new Point(12, 71);
            GroupBox1.Name     = "GroupBox1";
            GroupBox1.Size     = new Size(794, 98);
            GroupBox1.TabIndex = 48;
            GroupBox1.TabStop  = false;
            GroupBox1.Text     = "Référence";
            Button5.Cursor     = Cursors.Hand;
            Button5.Location   = new Point(250, 40);
            Button5.Name       = "Button5";
            Button5.Size       = new Size(33, 28);
            Button5.TabIndex   = 46;
            Button5.Text       = "...";
            Button5.UseVisualStyleBackColor = true;
            REFART.AutoCompleteMode         = AutoCompleteMode.SuggestAppend;
            REFART.AutoCompleteSource       = AutoCompleteSource.ListItems;
            REFART.FormattingEnabled        = true;
            REFART.Location         = new Point(59, 41);
            REFART.Name             = "REFART";
            REFART.Size             = new Size(206, 26);
            REFART.TabIndex         = 14;
            Label5.AutoSize         = true;
            Label5.BackColor        = Color.Transparent;
            Label5.ForeColor        = SystemColors.ActiveCaption;
            Label5.Location         = new Point(307, 44);
            Label5.Name             = "Label5";
            Label5.Size             = new Size(54, 18);
            Label5.TabIndex         = 3;
            Label5.Text             = "Libelle";
            B_rechercher.BackColor  = Color.White;
            B_rechercher.Cursor     = Cursors.Hand;
            B_rechercher.Image      = Resources.Actions_document_find_icon1;
            B_rechercher.ImageAlign = ContentAlignment.MiddleLeft;
            B_rechercher.Location   = new Point(661, 35);
            B_rechercher.Name       = "B_rechercher";
            B_rechercher.Size       = new Size(106, 37);
            B_rechercher.TabIndex   = 2;
            B_rechercher.Text       = "Chercher";
            B_rechercher.TextAlign  = ContentAlignment.MiddleRight;
            B_rechercher.UseVisualStyleBackColor = false;
            Label6.AutoSize          = true;
            Label6.BackColor         = Color.Transparent;
            Label6.ForeColor         = SystemColors.ActiveCaption;
            Label6.Location          = new Point(6, 45);
            Label6.Name              = "Label6";
            Label6.Size              = new Size(47, 18);
            Label6.TabIndex          = 0;
            Label6.Text              = "Code";
            LIBART.FormattingEnabled = true;
            LIBART.Location          = new Point(367, 41);
            LIBART.Name              = "LIBART";
            LIBART.Size              = new Size(288, 26);
            LIBART.Sorted            = true;
            LIBART.TabIndex          = 6;
            base.AutoScaleDimensions = new SizeF(7f, 16f);
            base.AutoScaleMode       = AutoScaleMode.Font;
            BackColor       = Color.White;
            base.ClientSize = new Size(1361, 728);
            base.Controls.Add(GroupBox1);
            base.Controls.Add(Label3);
            base.Controls.Add(Label1);
            base.Controls.Add(Button1);
            base.Controls.Add(Button3);
            base.Controls.Add(btnNew);
            base.Controls.Add(btnDelete);
            base.Controls.Add(btnUpdate);
            base.Controls.Add(btnInit);
            base.Controls.Add(dgv1);
            base.Location = new Point(0, 0);
            base.Margin   = new Padding(3, 5, 3, 5);
            base.Name     = "Entree_Stock";
            Text          = "Entree Stock";
            base.Controls.SetChildIndex(dgv1, 0);
            base.Controls.SetChildIndex(btnInit, 0);
            base.Controls.SetChildIndex(btnUpdate, 0);
            base.Controls.SetChildIndex(btnDelete, 0);
            base.Controls.SetChildIndex(btnNew, 0);
            base.Controls.SetChildIndex(Button3, 0);
            base.Controls.SetChildIndex(Button1, 0);
            base.Controls.SetChildIndex(Label1, 0);
            base.Controls.SetChildIndex(Label3, 0);
            base.Controls.SetChildIndex(GroupBox1, 0);
            ((ISupportInitialize)dgv1).EndInit();
            GroupBox1.ResumeLayout(false);
            GroupBox1.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Пример #29
0
        private void InitializeComponent()
        {
            Button1     = new Button();
            PictureBox1 = new PictureBox();
            Label1      = new Label();
            Label2      = new Label();
            Label3      = new Label();
            Label4      = new Label();
            Label5      = new Label();
            Label6      = new Label();
            Label7      = new Label();
            Label8      = new Label();
            Label9      = new Label();
            Label10     = new Label();
            Label11     = new Label();
            GroupBox1   = new GroupBox();
            GroupBox1.SuspendLayout();
            SuspendLayout();
            Button button1 = Button1;
            Point  point   = new Point(40, 344);

            button1.Location = point;
            Button1.Name     = "Button1";
            Button button = Button1;
            Size   size   = new Size(112, 32);

            button.Size      = size;
            Button1.TabIndex = 7;
            Button1.Text     = "OK";
            PictureBox pictureBox1 = PictureBox1;

            point = new Point(32, 101);
            pictureBox1.Location = point;
            PictureBox1.Name     = "PictureBox1";
            PictureBox pictureBox = PictureBox1;

            size                 = new Size(160, 80);
            pictureBox.Size      = size;
            PictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
            PictureBox1.TabIndex = 6;
            PictureBox1.TabStop  = false;
            Label1.BorderStyle   = BorderStyle.Fixed3D;
            Label1.Font          = new Font("Comic Sans MS", 15.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            Label label1 = Label1;

            point           = new Point(240, 48);
            label1.Location = point;
            Label1.Name     = "Label1";
            Label label = Label1;

            size               = new Size(224, 32);
            label.Size         = size;
            Label1.TabIndex    = 8;
            Label1.Text        = "title";
            Label1.TextAlign   = ContentAlignment.MiddleCenter;
            Label2.BorderStyle = BorderStyle.Fixed3D;
            Label2.Font        = new Font("Comic Sans MS", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            Label label2 = Label2;

            point           = new Point(240, 88);
            label2.Location = point;
            Label2.Name     = "Label2";
            Label label21 = Label2;

            size               = new Size(224, 120);
            label21.Size       = size;
            Label2.TabIndex    = 9;
            Label2.Text        = "function";
            Label2.TextAlign   = ContentAlignment.MiddleCenter;
            Label3.BorderStyle = BorderStyle.Fixed3D;
            Label3.Font        = new Font("Comic Sans MS", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            Label label3 = Label3;

            point           = new Point(344, 216);
            label3.Location = point;
            Label3.Name     = "Label3";
            Label label31 = Label3;

            size               = new Size(120, 32);
            label31.Size       = size;
            Label3.TabIndex    = 10;
            Label3.Text        = "Victory Points";
            Label3.TextAlign   = ContentAlignment.MiddleCenter;
            Label4.BorderStyle = BorderStyle.Fixed3D;
            Label4.Font        = new Font("Comic Sans MS", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            Label label4 = Label4;

            point           = new Point(344, 256);
            label4.Location = point;
            Label4.Name     = "Label4";
            Label label41 = Label4;

            size               = new Size(120, 32);
            label41.Size       = size;
            Label4.TabIndex    = 11;
            Label4.Text        = "Base Cost";
            Label4.TextAlign   = ContentAlignment.MiddleCenter;
            Label5.BorderStyle = BorderStyle.Fixed3D;
            Label5.Font        = new Font("Comic Sans MS", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            Label label5 = Label5;

            point           = new Point(344, 296);
            label5.Location = point;
            Label5.Name     = "Label5";
            Label label51 = Label5;

            size               = new Size(120, 32);
            label51.Size       = size;
            Label5.TabIndex    = 12;
            Label5.Text        = "Cost with Quarries";
            Label5.TextAlign   = ContentAlignment.MiddleCenter;
            Label6.BorderStyle = BorderStyle.Fixed3D;
            Label6.Font        = new Font("Comic Sans MS", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            Label label6 = Label6;

            point           = new Point(152, 16);
            label6.Location = point;
            Label6.Name     = "Label6";
            Label label61 = Label6;

            size               = new Size(120, 32);
            label61.Size       = size;
            Label6.TabIndex    = 13;
            Label6.Text        = "Cost with Builder Bonus";
            Label6.TextAlign   = ContentAlignment.MiddleCenter;
            Label7.BorderStyle = BorderStyle.Fixed3D;
            Label7.Font        = new Font("Comic Sans MS", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
            Label label7 = Label7;

            point           = new Point(8, 16);
            label7.Location = point;
            Label7.Name     = "Label7";
            Label label71 = Label7;

            size               = new Size(136, 32);
            label71.Size       = size;
            Label7.TabIndex    = 17;
            Label7.Text        = "Cost with Builder Bonus";
            Label7.TextAlign   = ContentAlignment.MiddleCenter;
            Label8.BorderStyle = BorderStyle.Fixed3D;
            Label8.Font        = new Font("Comic Sans MS", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
            Label label8 = Label8;

            point           = new Point(200, 296);
            label8.Location = point;
            Label8.Name     = "Label8";
            Label label81 = Label8;

            size               = new Size(136, 32);
            label81.Size       = size;
            Label8.TabIndex    = 16;
            Label8.Text        = "Cost w/your manned Quarries";
            Label8.TextAlign   = ContentAlignment.MiddleCenter;
            Label9.BorderStyle = BorderStyle.Fixed3D;
            Label9.Font        = new Font("Comic Sans MS", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
            Label label9 = Label9;

            point           = new Point(200, 256);
            label9.Location = point;
            Label9.Name     = "Label9";
            Label label91 = Label9;

            size                = new Size(136, 32);
            label91.Size        = size;
            Label9.TabIndex     = 15;
            Label9.Text         = "Base Cost";
            Label9.TextAlign    = ContentAlignment.MiddleCenter;
            Label10.BorderStyle = BorderStyle.Fixed3D;
            Label10.Font        = new Font("Comic Sans MS", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
            Label label10 = Label10;

            point            = new Point(200, 216);
            label10.Location = point;
            Label10.Name     = "Label10";
            Label label101 = Label10;

            size                = new Size(136, 32);
            label101.Size       = size;
            Label10.TabIndex    = 14;
            Label10.Text        = "Victory Points";
            Label10.TextAlign   = ContentAlignment.MiddleCenter;
            Label11.BorderStyle = BorderStyle.Fixed3D;
            Label11.Font        = new Font("Comic Sans MS", 15.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
            Label label11 = Label11;

            point            = new Point(40, 208);
            label11.Location = point;
            Label11.Name     = "Label11";
            Label label111 = Label11;

            size              = new Size(128, 56);
            label111.Size     = size;
            Label11.TabIndex  = 18;
            Label11.Text      = "99 Remaining";
            Label11.TextAlign = ContentAlignment.MiddleCenter;
            GroupBox1.Controls.Add(Label6);
            GroupBox1.Controls.Add(Label7);
            GroupBox groupBox1 = GroupBox1;

            point = new Point(192, 328);
            groupBox1.Location = point;
            GroupBox1.Name     = "GroupBox1";
            GroupBox groupBox = GroupBox1;

            size               = new Size(280, 56);
            groupBox.Size      = size;
            GroupBox1.TabIndex = 19;
            GroupBox1.TabStop  = false;
            size               = new Size(5, 13);
            AutoScaleBaseSize  = size;
            size               = new Size(488, 402);
            ClientSize         = size;
            ControlBox         = false;
            Controls.Add(GroupBox1);
            Controls.Add(Label11);
            Controls.Add(Label8);
            Controls.Add(Label9);
            Controls.Add(Label10);
            Controls.Add(Label5);
            Controls.Add(Label4);
            Controls.Add(Label3);
            Controls.Add(Label2);
            Controls.Add(Label1);
            Controls.Add(Button1);
            Controls.Add(PictureBox1);
            size          = new Size(496, 440);
            MaximumSize   = size;
            size          = new Size(496, 440);
            MinimumSize   = size;
            Name          = "Infopurchase1";
            StartPosition = FormStartPosition.CenterScreen;
            Text          = "Building Info";
            GroupBox1.ResumeLayout(false);
            ResumeLayout(false);
        }
Пример #30
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Sortie_Stock));

            dgv1         = new DataGridView();
            GroupBox1    = new GroupBox();
            btnNew       = new Button();
            btnDelete    = new Button();
            btnUpdate    = new Button();
            Button2      = new Button();
            Label1       = new Label();
            Button3      = new Button();
            Label3       = new Label();
            Button1      = new Button();
            GroupBox2    = new GroupBox();
            LIBART       = new ComboBox();
            Button5      = new Button();
            REFART       = new ComboBox();
            Label5       = new Label();
            B_rechercher = new Button();
            Label6       = new Label();
            ((ISupportInitialize)dgv1).BeginInit();
            GroupBox1.SuspendLayout();
            GroupBox2.SuspendLayout();
            base.SuspendLayout();
            dgv1.AllowUserToAddRows          = false;
            dgv1.AllowUserToDeleteRows       = false;
            dgv1.AutoSizeColumnsMode         = DataGridViewAutoSizeColumnsMode.AllCells;
            dgv1.AutoSizeRowsMode            = DataGridViewAutoSizeRowsMode.AllCells;
            dgv1.BackgroundColor             = Color.White;
            dgv1.BorderStyle                 = BorderStyle.Fixed3D;
            dgv1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            dgv1.Location       = new Point(144, 21);
            dgv1.Margin         = new Padding(2, 3, 2, 3);
            dgv1.Name           = "dgv1";
            dgv1.ReadOnly       = true;
            dgv1.Size           = new Size(1070, 523);
            dgv1.TabIndex       = 26;
            GroupBox1.BackColor = Color.Transparent;
            GroupBox1.Controls.Add(btnNew);
            GroupBox1.Controls.Add(btnDelete);
            GroupBox1.Controls.Add(btnUpdate);
            GroupBox1.Controls.Add(Button2);
            GroupBox1.Controls.Add(dgv1);
            GroupBox1.Location                = new Point(10, 169);
            GroupBox1.Name                    = "GroupBox1";
            GroupBox1.Size                    = new Size(1224, 550);
            GroupBox1.TabIndex                = 35;
            GroupBox1.TabStop                 = false;
            GroupBox1.Text                    = "Sortie Stock";
            btnNew.Anchor                     = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            btnNew.AutoSize                   = true;
            btnNew.BackColor                  = Color.White;
            btnNew.Font                       = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            btnNew.Image                      = Resources.add_1_icon;
            btnNew.ImageAlign                 = ContentAlignment.MiddleLeft;
            btnNew.Location                   = new Point(18, 106);
            btnNew.Margin                     = new Padding(2, 3, 2, 3);
            btnNew.Name                       = "btnNew";
            btnNew.Size                       = new Size(110, 54);
            btnNew.TabIndex                   = 35;
            btnNew.Text                       = "Ajouter";
            btnNew.TextAlign                  = ContentAlignment.MiddleRight;
            btnNew.UseVisualStyleBackColor    = false;
            btnDelete.Anchor                  = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            btnDelete.BackColor               = Color.White;
            btnDelete.Font                    = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            btnDelete.Image                   = Resources.Button_Delete_icon;
            btnDelete.ImageAlign              = ContentAlignment.MiddleLeft;
            btnDelete.Location                = new Point(18, 268);
            btnDelete.Margin                  = new Padding(2, 3, 2, 3);
            btnDelete.Name                    = "btnDelete";
            btnDelete.Size                    = new Size(110, 50);
            btnDelete.TabIndex                = 34;
            btnDelete.Text                    = "Supprimer";
            btnDelete.TextAlign               = ContentAlignment.MiddleRight;
            btnDelete.UseVisualStyleBackColor = false;
            btnUpdate.Anchor                  = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            btnUpdate.BackColor               = Color.White;
            btnUpdate.Font                    = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            btnUpdate.Image                   = Resources.edit_file_icon;
            btnUpdate.ImageAlign              = ContentAlignment.MiddleLeft;
            btnUpdate.Location                = new Point(18, 189);
            btnUpdate.Margin                  = new Padding(2, 3, 2, 3);
            btnUpdate.Name                    = "btnUpdate";
            btnUpdate.Size                    = new Size(110, 52);
            btnUpdate.TabIndex                = 33;
            btnUpdate.Text                    = "Modifier";
            btnUpdate.TextAlign               = ContentAlignment.MiddleRight;
            btnUpdate.UseVisualStyleBackColor = false;
            Button2.Anchor                    = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            Button2.BackColor                 = Color.White;
            Button2.Font                      = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            Button2.Image                     = Resources.Button_Refresh_icon;
            Button2.ImageAlign                = ContentAlignment.MiddleLeft;
            Button2.Location                  = new Point(18, 33);
            Button2.Margin                    = new Padding(2, 3, 2, 3);
            Button2.Name                      = "Button2";
            Button2.Size                      = new Size(110, 50);
            Button2.TabIndex                  = 32;
            Button2.Text                      = "Initier";
            Button2.TextAlign                 = ContentAlignment.MiddleRight;
            Button2.UseVisualStyleBackColor   = false;
            Label1.AutoSize                   = true;
            Label1.BackColor                  = Color.Transparent;
            Label1.Font                       = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            Label1.Location                   = new Point(853, 150);
            Label1.Name                       = "Label1";
            Label1.Size                       = new Size(87, 16);
            Label1.TabIndex                   = 37;
            Label1.Text                       = "Stock global";
            Button3.BackgroundImage           = (Image)componentResourceManager.GetObject("Button3.BackgroundImage");
            Button3.Cursor                    = Cursors.Hand;
            Button3.Location                  = new Point(867, 57);
            Button3.Margin                    = new Padding(3, 4, 3, 4);
            Button3.Name                      = "Button3";
            Button3.Size                      = new Size(73, 75);
            Button3.TabIndex                  = 36;
            Button3.UseVisualStyleBackColor   = true;
            Label3.AutoSize                   = true;
            Label3.BackColor                  = Color.Transparent;
            Label3.Font                       = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            Label3.Location                   = new Point(1022, 150);
            Label3.Name                       = "Label3";
            Label3.Size                       = new Size(94, 16);
            Label3.TabIndex                   = 39;
            Label3.Text                       = "Entrées Stock";
            Button1.BackgroundImage           = (Image)componentResourceManager.GetObject("Button1.BackgroundImage");
            Button1.Cursor                    = Cursors.Hand;
            Button1.Location                  = new Point(1034, 57);
            Button1.Margin                    = new Padding(3, 4, 3, 4);
            Button1.Name                      = "Button1";
            Button1.Size                      = new Size(73, 75);
            Button1.TabIndex                  = 38;
            Button1.UseVisualStyleBackColor   = true;
            GroupBox2.BackColor               = Color.Transparent;
            GroupBox2.BackgroundImageLayout   = ImageLayout.Stretch;
            GroupBox2.Controls.Add(LIBART);
            GroupBox2.Controls.Add(Button5);
            GroupBox2.Controls.Add(REFART);
            GroupBox2.Controls.Add(Label5);
            GroupBox2.Controls.Add(B_rechercher);
            GroupBox2.Controls.Add(Label6);
            GroupBox2.Font           = new Font("Arial", 12f, FontStyle.Regular, GraphicsUnit.Point, 178);
            GroupBox2.Location       = new Point(12, 65);
            GroupBox2.Name           = "GroupBox2";
            GroupBox2.Size           = new Size(794, 98);
            GroupBox2.TabIndex       = 48;
            GroupBox2.TabStop        = false;
            GroupBox2.Text           = "Référence";
            LIBART.FormattingEnabled = true;
            LIBART.Location          = new Point(367, 42);
            LIBART.Name       = "LIBART";
            LIBART.Size       = new Size(288, 26);
            LIBART.Sorted     = true;
            LIBART.TabIndex   = 47;
            Button5.BackColor = Color.White;
            Button5.Cursor    = Cursors.Hand;
            Button5.Location  = new Point(250, 40);
            Button5.Name      = "Button5";
            Button5.Size      = new Size(33, 28);
            Button5.TabIndex  = 46;
            Button5.Text      = "...";
            Button5.UseVisualStyleBackColor = false;
            REFART.AutoCompleteMode         = AutoCompleteMode.SuggestAppend;
            REFART.AutoCompleteSource       = AutoCompleteSource.ListItems;
            REFART.FormattingEnabled        = true;
            REFART.Location         = new Point(59, 41);
            REFART.Name             = "REFART";
            REFART.Size             = new Size(206, 26);
            REFART.TabIndex         = 14;
            Label5.AutoSize         = true;
            Label5.BackColor        = Color.Transparent;
            Label5.ForeColor        = SystemColors.ActiveCaption;
            Label5.Location         = new Point(307, 44);
            Label5.Name             = "Label5";
            Label5.Size             = new Size(54, 18);
            Label5.TabIndex         = 3;
            Label5.Text             = "Libelle";
            B_rechercher.BackColor  = Color.White;
            B_rechercher.Cursor     = Cursors.Hand;
            B_rechercher.Image      = Resources.Actions_document_find_icon1;
            B_rechercher.ImageAlign = ContentAlignment.MiddleLeft;
            B_rechercher.Location   = new Point(661, 33);
            B_rechercher.Name       = "B_rechercher";
            B_rechercher.Size       = new Size(127, 43);
            B_rechercher.TabIndex   = 2;
            B_rechercher.Text       = "     Rechercher";
            B_rechercher.TextAlign  = ContentAlignment.MiddleRight;
            B_rechercher.UseVisualStyleBackColor = false;
            Label6.AutoSize          = true;
            Label6.BackColor         = Color.Transparent;
            Label6.ForeColor         = SystemColors.ActiveCaption;
            Label6.Location          = new Point(6, 45);
            Label6.Name              = "Label6";
            Label6.Size              = new Size(47, 18);
            Label6.TabIndex          = 0;
            Label6.Text              = "Code";
            base.AutoScaleDimensions = new SizeF(7f, 16f);
            base.AutoScaleMode       = AutoScaleMode.Font;
            BackColor       = Color.White;
            BackgroundImage = Resources.arrière_plan_blanc_V2;
            base.ClientSize = new Size(1361, 728);
            base.Controls.Add(GroupBox2);
            base.Controls.Add(Label3);
            base.Controls.Add(Button1);
            base.Controls.Add(Label1);
            base.Controls.Add(Button3);
            base.Controls.Add(GroupBox1);
            base.Location = new Point(0, 0);
            base.Name     = "Sortie_Stock";
            Text          = "Sortie Stock";
            base.Controls.SetChildIndex(GroupBox1, 0);
            base.Controls.SetChildIndex(Button3, 0);
            base.Controls.SetChildIndex(Label1, 0);
            base.Controls.SetChildIndex(Button1, 0);
            base.Controls.SetChildIndex(Label3, 0);
            base.Controls.SetChildIndex(GroupBox2, 0);
            ((ISupportInitialize)dgv1).EndInit();
            GroupBox1.ResumeLayout(false);
            GroupBox1.PerformLayout();
            GroupBox2.ResumeLayout(false);
            GroupBox2.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Пример #31
0
            private void InitializeComponent()
            {
                ComponentResourceManager resources = new ComponentResourceManager(typeof(BinaryEditor));

                _byteViewer   = new ByteViewer();
                _buttonOK     = new Button();
                _buttonSave   = new Button();
                _groupBoxMode = new GroupBox();
                _radioButtonsTableLayoutPanel = new TableLayoutPanel();
                _radioUnicode                = new RadioButton();
                _radioAuto                   = new RadioButton();
                _radioAnsi                   = new RadioButton();
                _radioHex                    = new RadioButton();
                _okSaveTableLayoutPanel      = new TableLayoutPanel();
                _overarchingTableLayoutPanel = new TableLayoutPanel();
                _byteViewer.SuspendLayout();
                _groupBoxMode.SuspendLayout();
                _radioButtonsTableLayoutPanel.SuspendLayout();
                _okSaveTableLayoutPanel.SuspendLayout();
                _overarchingTableLayoutPanel.SuspendLayout();
                SuspendLayout();

                //
                // byteViewer
                //
                resources.ApplyResources(_byteViewer, "byteViewer");
                _byteViewer.SetDisplayMode(DisplayMode.Auto);
                _byteViewer.Name   = "byteViewer";
                _byteViewer.Margin = Padding.Empty;
                _byteViewer.Dock   = DockStyle.Fill;
                //
                // buttonOK
                //
                resources.ApplyResources(_buttonOK, "buttonOK");
                _buttonOK.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                _buttonOK.DialogResult = DialogResult.OK;
                _buttonOK.Margin       = new Padding(0, 0, 3, 0);
                _buttonOK.MinimumSize  = new Size(75, 23);
                _buttonOK.Name         = "buttonOK";
                _buttonOK.Padding      = new Padding(10, 0, 10, 0);
                _buttonOK.Click       += new EventHandler(ButtonOK_click);
                //
                // buttonSave
                //
                resources.ApplyResources(_buttonSave, "buttonSave");
                _buttonSave.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                _buttonSave.Margin       = new Padding(3, 0, 0, 0);
                _buttonSave.MinimumSize  = new Size(75, 23);
                _buttonSave.Name         = "buttonSave";
                _buttonSave.Padding      = new Padding(10, 0, 10, 0);
                _buttonSave.Click       += new EventHandler(ButtonSave_click);
                //
                // groupBoxMode
                //
                resources.ApplyResources(_groupBoxMode, "groupBoxMode");
                _groupBoxMode.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                _groupBoxMode.Controls.Add(_radioButtonsTableLayoutPanel);
                _groupBoxMode.Margin  = new Padding(0, 3, 0, 3);
                _groupBoxMode.Name    = "groupBoxMode";
                _groupBoxMode.Padding = new Padding(0);
                _groupBoxMode.TabStop = false;
                //
                // radioButtonsTableLayoutPanel
                //
                resources.ApplyResources(_radioButtonsTableLayoutPanel, "radioButtonsTableLayoutPanel");
                _radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
                _radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
                _radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
                _radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
                _radioButtonsTableLayoutPanel.Controls.Add(_radioUnicode, 3, 0);
                _radioButtonsTableLayoutPanel.Controls.Add(_radioAuto, 0, 0);
                _radioButtonsTableLayoutPanel.Controls.Add(_radioAnsi, 2, 0);
                _radioButtonsTableLayoutPanel.Controls.Add(_radioHex, 1, 0);
                _radioButtonsTableLayoutPanel.Margin = new Padding(9);
                _radioButtonsTableLayoutPanel.Name   = "radioButtonsTableLayoutPanel";
                _radioButtonsTableLayoutPanel.RowStyles.Add(new RowStyle());
                //
                // radioUnicode
                //
                resources.ApplyResources(_radioUnicode, "radioUnicode");
                _radioUnicode.Margin          = new Padding(3, 0, 0, 0);
                _radioUnicode.Name            = "radioUnicode";
                _radioUnicode.CheckedChanged += new EventHandler(RadioUnicode_checkedChanged);
                //
                // radioAuto
                //
                resources.ApplyResources(_radioAuto, "radioAuto");
                _radioAuto.Checked         = true;
                _radioAuto.Margin          = new Padding(0, 0, 3, 0);
                _radioAuto.Name            = "radioAuto";
                _radioAuto.CheckedChanged += new EventHandler(RadioAuto_checkedChanged);
                //
                // radioAnsi
                //
                resources.ApplyResources(_radioAnsi, "radioAnsi");
                _radioAnsi.Margin          = new Padding(3, 0, 3, 0);
                _radioAnsi.Name            = "radioAnsi";
                _radioAnsi.CheckedChanged += new EventHandler(RadioAnsi_checkedChanged);
                //
                // radioHex
                //
                resources.ApplyResources(_radioHex, "radioHex");
                _radioHex.Margin          = new Padding(3, 0, 3, 0);
                _radioHex.Name            = "radioHex";
                _radioHex.CheckedChanged += new EventHandler(RadioHex_checkedChanged);
                //
                // okSaveTableLayoutPanel
                //
                resources.ApplyResources(_okSaveTableLayoutPanel, "okSaveTableLayoutPanel");
                _okSaveTableLayoutPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                _okSaveTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
                _okSaveTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
                _okSaveTableLayoutPanel.Controls.Add(_buttonOK, 0, 0);
                _okSaveTableLayoutPanel.Controls.Add(_buttonSave, 1, 0);
                _okSaveTableLayoutPanel.Margin = new Padding(0, 9, 0, 0);
                _okSaveTableLayoutPanel.Name   = "okSaveTableLayoutPanel";
                _okSaveTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
                //
                // overarchingTableLayoutPanel
                //
                resources.ApplyResources(_overarchingTableLayoutPanel, "overarchingTableLayoutPanel");
                _overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
                _overarchingTableLayoutPanel.Controls.Add(_byteViewer, 0, 0);
                _overarchingTableLayoutPanel.Controls.Add(_groupBoxMode, 0, 1);
                _overarchingTableLayoutPanel.Controls.Add(_okSaveTableLayoutPanel, 0, 2);
                _overarchingTableLayoutPanel.Name = "overarchingTableLayoutPanel";
                _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
                _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
                _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());

                //
                // BinaryUI
                //
                AcceptButton = _buttonOK;
                resources.ApplyResources(this, "$this");
                AutoScaleMode = AutoScaleMode.Font;
                CancelButton  = _buttonOK;
                Controls.Add(_overarchingTableLayoutPanel);
                FormBorderStyle    = FormBorderStyle.FixedDialog;
                HelpButton         = true;
                MaximizeBox        = false;
                MinimizeBox        = false;
                Name               = "BinaryUI";
                ShowIcon           = false;
                ShowInTaskbar      = false;
                HelpRequested     += new HelpEventHandler(Form_HelpRequested);
                HelpButtonClicked += new CancelEventHandler(Form_HelpButtonClicked);
                _byteViewer.ResumeLayout(false);
                _byteViewer.PerformLayout();
                _groupBoxMode.ResumeLayout(false);
                _groupBoxMode.PerformLayout();
                _radioButtonsTableLayoutPanel.ResumeLayout(false);
                _radioButtonsTableLayoutPanel.PerformLayout();
                _okSaveTableLayoutPanel.ResumeLayout(false);
                _okSaveTableLayoutPanel.PerformLayout();
                _overarchingTableLayoutPanel.ResumeLayout(false);
                _overarchingTableLayoutPanel.PerformLayout();
                ResumeLayout(false);
            }