Exemplo n.º 1
0
        public override void Activate()
        {
            App.HeaderControl.Add(new SimpleActionItem(HeaderControl.HomeRootItemKey, "View Attribute Table", AttributeTable_Click)
            {
                GroupCaption = "Map Tool",
                SmallImage   = Resources.table_green_48,
                LargeImage   = Resources.table_green_48
            });
            App.Map.LayerAdded += Map_LayerAdded;
            App.SerializationManager.Deserializing += SerializationManager_Deserializing;
            // TODO: if layers were loaded before this plugin, do something about adding them to the context menu.

            _TableEditorControl      = new TableEditorControl();
            _TableEditorControl.Size = new System.Drawing.Size(800, 600);
            var dock = new DockablePanel("kAttributeTable", "Attribute Table", _TableEditorControl, DockStyle.None)
            {
                SmallImage = Properties.Resources.table_green_48,
            };

            App.DockManager.Add(dock);

            base.Activate();
        }
Exemplo n.º 2
0
 private void InitializeComponent()
 {
     this.grdItems          = new TableEditorControl();
     this.panel1            = new Panel();
     this.panel3            = new Panel();
     this.label3            = new Label();
     this.chStore           = new CheckedListBox();
     this.panel4            = new Panel();
     this.label2            = new Label();
     this.label1            = new Label();
     this.plInvoice         = new PluginBox();
     this.pluginBox1        = new PluginBox();
     this.fromStore         = new Button();
     this.delButton         = new Button();
     this.buttonStore       = new Button();
     this.panel2            = new Panel();
     this.bMove             = new Button();
     this.buttonCancel      = new Button();
     this.splitter1         = new Splitter();
     this.buttonRefreshCols = new Button();
     this.panel1.SuspendLayout();
     this.panel3.SuspendLayout();
     this.panel4.SuspendLayout();
     this.panel2.SuspendLayout();
     base.SuspendLayout();
     this.grdItems.DataSource       = null;
     this.grdItems.Dock             = DockStyle.Fill;
     this.grdItems.Location         = new Point(0, 111);
     this.grdItems.Mnemocode        = "INVOICE_AUTO";
     this.grdItems.Name             = "grdItems";
     this.grdItems.ObjectList       = null;
     this.grdItems.Size             = new System.Drawing.Size(816, 192);
     this.grdItems.TabIndex         = 30;
     this.grdItems.GridCellEndEdit += new DataGridViewCellEventHandler(this.grdItems_GridCellEndEdit);
     this.panel1.Controls.Add(this.panel3);
     this.panel1.Controls.Add(this.panel4);
     this.panel1.Dock     = DockStyle.Top;
     this.panel1.Location = new Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(816, 108);
     this.panel1.TabIndex = 31;
     this.panel3.Controls.Add(this.label3);
     this.panel3.Controls.Add(this.chStore);
     this.panel3.Dock               = DockStyle.Fill;
     this.panel3.Location           = new Point(368, 0);
     this.panel3.Name               = "panel3";
     this.panel3.Size               = new System.Drawing.Size(448, 108);
     this.panel3.TabIndex           = 36;
     this.label3.AutoSize           = true;
     this.label3.Location           = new Point(3, 6);
     this.label3.Name               = "label3";
     this.label3.Size               = new System.Drawing.Size(57, 13);
     this.label3.TabIndex           = 2;
     this.label3.Text               = "На склад:";
     this.chStore.Anchor            = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.chStore.CheckOnClick      = true;
     this.chStore.FormattingEnabled = true;
     this.chStore.Location          = new Point(6, 23);
     this.chStore.Name              = "chStore";
     this.chStore.Size              = new System.Drawing.Size(434, 79);
     this.chStore.TabIndex          = 0;
     this.chStore.ItemCheck        += new ItemCheckEventHandler(this.chStore_ItemCheck);
     this.panel4.Controls.Add(this.label2);
     this.panel4.Controls.Add(this.buttonRefreshCols);
     this.panel4.Controls.Add(this.label1);
     this.panel4.Controls.Add(this.plInvoice);
     this.panel4.Controls.Add(this.pluginBox1);
     this.panel4.Dock                         = DockStyle.Left;
     this.panel4.Location                     = new Point(0, 0);
     this.panel4.Name                         = "panel4";
     this.panel4.Size                         = new System.Drawing.Size(368, 108);
     this.panel4.TabIndex                     = 0;
     this.label2.AutoSize                     = true;
     this.label2.Location                     = new Point(12, 43);
     this.label2.Name                         = "label2";
     this.label2.Size                         = new System.Drawing.Size(66, 13);
     this.label2.TabIndex                     = 42;
     this.label2.Text                         = "Накладная:";
     this.label1.AutoSize                     = true;
     this.label1.Location                     = new Point(12, 12);
     this.label1.Name                         = "label1";
     this.label1.Size                         = new System.Drawing.Size(62, 13);
     this.label1.TabIndex                     = 0;
     this.label1.Text                         = "Со склада:";
     this.plInvoice.CodeMaxLength             = 32767;
     this.plInvoice.CodeText                  = "";
     this.plInvoice.CodeWidth                 = 0;
     this.plInvoice.ColorTextCode             = SystemColors.WindowText;
     this.plInvoice.ColorTextText             = SystemColors.WindowText;
     this.plInvoice.LikeTextOption            = ELikeTextOption.MaskLeft;
     this.plInvoice.Location                  = new Point(80, 38);
     this.plInvoice.Mask                      = "";
     this.plInvoice.Mnemocode                 = "INVOICE";
     this.plInvoice.Name                      = "plInvoice";
     this.plInvoice.SelectOnSpaceKey          = true;
     this.plInvoice.Size                      = new System.Drawing.Size(282, 23);
     this.plInvoice.TabIndex                  = 1;
     this.plInvoice.ValueChanged             += new PluginBox.ValueChangedDelegate(this.plInvoice_ValueChanged);
     this.plInvoice.ValidatingItem           += new PluginBox.ValidatingItemDelegate(this.plInvoice_ValidatingItem);
     this.pluginBox1.CodeMaxLength            = 32767;
     this.pluginBox1.CodeText                 = "";
     this.pluginBox1.CodeWidth                = 50;
     this.pluginBox1.ColorTextCode            = SystemColors.WindowText;
     this.pluginBox1.ColorTextText            = SystemColors.WindowText;
     this.pluginBox1.LikeTextOption           = ELikeTextOption.None;
     this.pluginBox1.Location                 = new Point(80, 9);
     this.pluginBox1.Mask                     = "";
     this.pluginBox1.Mnemocode                = "STORE";
     this.pluginBox1.Name                     = "pluginBox1";
     this.pluginBox1.SelectOnSpaceKey         = true;
     this.pluginBox1.Size                     = new System.Drawing.Size(282, 23);
     this.pluginBox1.TabIndex                 = 0;
     this.pluginBox1.ValueChanged            += new PluginBox.ValueChangedDelegate(this.pluginBox1_ValueChanged);
     this.fromStore.Location                  = new Point(12, 6);
     this.fromStore.Name                      = "fromStore";
     this.fromStore.Size                      = new System.Drawing.Size(87, 23);
     this.fromStore.TabIndex                  = 5;
     this.fromStore.Text                      = "Все остатки";
     this.fromStore.UseVisualStyleBackColor   = true;
     this.fromStore.Click                    += new EventHandler(this.fromStore_Click);
     this.delButton.Location                  = new Point(222, 6);
     this.delButton.Name                      = "delButton";
     this.delButton.Size                      = new System.Drawing.Size(75, 23);
     this.delButton.TabIndex                  = 39;
     this.delButton.Text                      = "Удалить";
     this.delButton.UseVisualStyleBackColor   = true;
     this.delButton.Click                    += new EventHandler(this.delButton_Click);
     this.buttonStore.Location                = new Point(105, 6);
     this.buttonStore.Name                    = "buttonStore";
     this.buttonStore.Size                    = new System.Drawing.Size(111, 23);
     this.buttonStore.TabIndex                = 37;
     this.buttonStore.Text                    = "Подбор позиции";
     this.buttonStore.UseVisualStyleBackColor = true;
     this.buttonStore.Click                  += new EventHandler(this.buttonStore_Click);
     this.panel2.Controls.Add(this.fromStore);
     this.panel2.Controls.Add(this.bMove);
     this.panel2.Controls.Add(this.buttonCancel);
     this.panel2.Controls.Add(this.buttonStore);
     this.panel2.Controls.Add(this.delButton);
     this.panel2.Dock     = DockStyle.Bottom;
     this.panel2.Location = new Point(0, 303);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(816, 35);
     this.panel2.TabIndex = 32;
     this.bMove.Anchor    = AnchorStyles.Top | AnchorStyles.Right;
     this.bMove.Location  = new Point(623, 6);
     this.bMove.Name      = "bMove";
     this.bMove.Size      = new System.Drawing.Size(101, 23);
     this.bMove.TabIndex  = 0;
     this.bMove.Text      = "Создать док.";
     this.bMove.UseVisualStyleBackColor = true;
     this.bMove.Click                              += new EventHandler(this.bMove_Click);
     this.buttonCancel.Anchor                       = AnchorStyles.Top | AnchorStyles.Right;
     this.buttonCancel.DialogResult                 = System.Windows.Forms.DialogResult.Cancel;
     this.buttonCancel.Location                     = new Point(730, 5);
     this.buttonCancel.Name                         = "buttonCancel";
     this.buttonCancel.Size                         = new System.Drawing.Size(76, 24);
     this.buttonCancel.TabIndex                     = 1;
     this.buttonCancel.Text                         = "Отмена";
     this.buttonCancel.UseVisualStyleBackColor      = true;
     this.buttonCancel.Click                       += new EventHandler(this.buttonCancel_Click);
     this.splitter1.Dock                            = DockStyle.Top;
     this.splitter1.Location                        = new Point(0, 108);
     this.splitter1.Name                            = "splitter1";
     this.splitter1.Size                            = new System.Drawing.Size(816, 3);
     this.splitter1.TabIndex                        = 33;
     this.splitter1.TabStop                         = false;
     this.buttonRefreshCols.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Left;
     this.buttonRefreshCols.Location                = new Point(266, 78);
     this.buttonRefreshCols.Name                    = "buttonRefreshCols";
     this.buttonRefreshCols.Size                    = new System.Drawing.Size(76, 24);
     this.buttonRefreshCols.TabIndex                = 1;
     this.buttonRefreshCols.Text                    = "Расчет";
     this.buttonRefreshCols.UseVisualStyleBackColor = true;
     this.buttonRefreshCols.Visible                 = true;
     this.buttonRefreshCols.Click                  += new EventHandler(this.buttonRefreshCols_Click);
     base.AutoScaleDimensions                       = new SizeF(6f, 13f);
     base.AutoScaleMode                             = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize = new System.Drawing.Size(816, 338);
     base.Controls.Add(this.grdItems);
     base.Controls.Add(this.splitter1);
     base.Controls.Add(this.panel2);
     base.Controls.Add(this.panel1);
     base.MaximizeBox = true;
     base.MinimizeBox = true;
     this.MinimumSize = new System.Drawing.Size(670, 365);
     base.Name        = "InvoiceAutoForm";
     this.Text        = "Распределение товара";
     base.Load       += new EventHandler(this.InvoiceAutoForm_Load);
     this.panel1.ResumeLayout(false);
     this.panel3.ResumeLayout(false);
     this.panel3.PerformLayout();
     this.panel4.ResumeLayout(false);
     this.panel4.PerformLayout();
     this.panel2.ResumeLayout(false);
     base.ResumeLayout(false);
 }