private void InitializeComponent()
 {
     this.addButton = new AppButton();
     this.SuspendLayout();
     //
     // addButton
     //
     this.addButton.Location = new System.Drawing.Point(314, 153);
     this.addButton.Name = "addButton";
     this.addButton.Size = new System.Drawing.Size(155, 35);
     this.addButton.TabIndex = 2;
     this.addButton.Text = "addButton";
     this.addButton.UseVisualStyleBackColor = true;
     //
     // AddRequestWindow
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.ClientSize = new System.Drawing.Size(481, 200);
     this.Name = "AddRequestWindow";
     this.ResumeLayout(false);
 }
Beispiel #2
0
        /// <summary>
        /// Добавляет контролы управления в поле групп функций для заявок
        /// </summary>
        private void RequestFunctionGroupInitialize()
        {
            for (int i = 0; i < ConstFunctions.REQUEST_WORKSPACE_COUNT + 1; i++) {
            functionsGroup[ConstFunctions.REQUEST_INDEX].RowStyles.Add(new RowStyle(SizeType.Absolute, ConstForms.ROW_HEIGHT));
              }
              PictureLinkLabelBox[] requestFunctionGroupLinkLabels = new PictureLinkLabelBox[ConstFunctions.REQUEST_WORKSPACE_COUNT];
              for (int i = 0; i < ConstFunctions.REQUEST_WORKSPACE_COUNT; i++) {
            requestFunctionGroupLinkLabels[i] = new PictureLinkLabelBox() {
              Dock = DockStyle.Fill,
              Font = new Font("Times New Roman", 12F),
              Indent = PictureLinkLabelBox.ControlIndent.MemberOfList
            };
            functionsGroup[ConstFunctions.REQUEST_INDEX].Controls.AddRange(requestFunctionGroupLinkLabels);
              }
              requestFunctionGroupLinkLabels[0].Indent = PictureLinkLabelBox.ControlIndent.FirstOfList;
              requestFunctionGroupLinkLabels[0].Image = global::idel_app.Properties.Resources.request_done;
              requestFunctionGroupLinkLabels[1].Image = idel_app.Properties.Resources.provider1;
              requestFunctionGroupLinkLabels[2].Image = idel_app.Properties.Resources.product;
              requestFunctionGroupLinkLabels[requestFunctionGroupLinkLabels.Length - 1].Indent = PictureLinkLabelBox.ControlIndent.LastOfList;

              List<string> textLinkLabels = new List<string>() { ConstFunctions.REQUEST_VIEW_TITLE,
                                                         ConstFunctions.REQUEST_PROVIDERS_VIEW_TITLE,
                                                         ConstFunctions.REQUEST_PRODUCTS_VIEW_TITLE };

              for (int i = 0; i < requestFunctionGroupLinkLabels.Length; i++) {
            requestFunctionGroupLinkLabels[i].Text = textLinkLabels[i];
              }

              AppButton createRequestButton = new AppButton() {
            Dock = DockStyle.Fill,
            Text = "Создать заявку",
            Font = new Font("Times New Roman", 15F)
              };

              functionsGroup[ConstFunctions.REQUEST_INDEX].Controls.Add(createRequestButton);

              requestFunctionGroupLinkLabels[textLinkLabels.LastIndexOf(ConstFunctions.REQUEST_VIEW_TITLE)].Click += new EventHandler(RequestView_Click);
              requestFunctionGroupLinkLabels[textLinkLabels.LastIndexOf(ConstFunctions.REQUEST_PRODUCTS_VIEW_TITLE)].Click += new EventHandler(RequestViewProducts_Click);
              requestFunctionGroupLinkLabels[textLinkLabels.LastIndexOf(ConstFunctions.REQUEST_PROVIDERS_VIEW_TITLE)].Click += new EventHandler(RequestViewProviders_Click);
              /* PublicClick */
              requestFunctionGroupLinkLabels[textLinkLabels.LastIndexOf(ConstFunctions.REQUEST_VIEW_TITLE)].linkLabel.Click += new EventHandler(RequestView_Click);
              requestFunctionGroupLinkLabels[textLinkLabels.LastIndexOf(ConstFunctions.REQUEST_VIEW_TITLE)].pictureBox.Click += new EventHandler(RequestView_Click);
              requestFunctionGroupLinkLabels[textLinkLabels.LastIndexOf(ConstFunctions.REQUEST_PRODUCTS_VIEW_TITLE)].linkLabel.Click += new EventHandler(RequestViewProducts_Click);
              requestFunctionGroupLinkLabels[textLinkLabels.LastIndexOf(ConstFunctions.REQUEST_PRODUCTS_VIEW_TITLE)].pictureBox.Click += new EventHandler(RequestViewProducts_Click);
              requestFunctionGroupLinkLabels[textLinkLabels.LastIndexOf(ConstFunctions.REQUEST_PROVIDERS_VIEW_TITLE)].linkLabel.Click += new EventHandler(RequestViewProviders_Click);
              requestFunctionGroupLinkLabels[textLinkLabels.LastIndexOf(ConstFunctions.REQUEST_PROVIDERS_VIEW_TITLE)].pictureBox.Click += new EventHandler(RequestViewProviders_Click);
              /* End PublicClick */

              requestFunctionGroupLinkLabels[textLinkLabels.LastIndexOf(ConstFunctions.REQUEST_PROVIDERS_VIEW_TITLE)].Click += new EventHandler(RequestViewProviders_Click);
              requestFunctionGroupLinkLabels[textLinkLabels.LastIndexOf(ConstFunctions.REQUEST_PRODUCTS_VIEW_TITLE)].Click += new EventHandler(RequestViewProducts_Click);

              createRequestButton.Click += new EventHandler(createRequestButton_Click);
        }