示例#1
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(ORGJEDFormUserControl));

            this.contextMenu1            = new ContextMenu();
            this.SetNullItem             = new MenuItem();
            this.toolTip1                = new System.Windows.Forms.ToolTip(this.components);
            this.errorProvider1          = new ErrorProvider();
            this.errorProviderValidator1 = new ErrorProviderValidator(this.components);
            this.bindingSourceORGJED     = new BindingSource(this.components);
            ((ISupportInitialize)this.bindingSourceORGJED).BeginInit();
            this.layoutManagerformORGJED = new TableLayoutPanel();
            this.layoutManagerformORGJED.SuspendLayout();
            this.layoutManagerformORGJED.AutoSize     = true;
            this.layoutManagerformORGJED.Dock         = DockStyle.Fill;
            this.layoutManagerformORGJED.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            this.layoutManagerformORGJED.AutoScroll   = false;
            System.Drawing.Point point = new System.Drawing.Point(0, 0);
            this.layoutManagerformORGJED.Location = point;
            Size size = new System.Drawing.Size(0, 0);

            this.layoutManagerformORGJED.Size        = size;
            this.layoutManagerformORGJED.ColumnCount = 2;
            this.layoutManagerformORGJED.RowCount    = 3;
            this.layoutManagerformORGJED.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformORGJED.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformORGJED.RowStyles.Add(new RowStyle());
            this.layoutManagerformORGJED.RowStyles.Add(new RowStyle());
            this.layoutManagerformORGJED.RowStyles.Add(new RowStyle());
            this.label1IDORGJED    = new UltraLabel();
            this.textIDORGJED      = new UltraNumericEditor();
            this.label1NAZIVORGJED = new UltraLabel();
            this.textNAZIVORGJED   = new UltraTextEditor();
            this.label1oj          = new UltraLabel();
            this.labeloj           = new UltraLabel();
            ((ISupportInitialize)this.textIDORGJED).BeginInit();
            ((ISupportInitialize)this.textNAZIVORGJED).BeginInit();
            this.dsORGJEDDataSet1 = new ORGJEDDataSet();
            this.dsORGJEDDataSet1.BeginInit();
            this.SuspendLayout();
            this.dsORGJEDDataSet1.DataSetName   = "dsORGJED";
            this.dsORGJEDDataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceORGJED.DataSource = this.dsORGJEDDataSet1;
            this.bindingSourceORGJED.DataMember = "ORGJED";
            ((ISupportInitialize)this.bindingSourceORGJED).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDORGJED.Location               = point;
            this.label1IDORGJED.Name                   = "label1IDORGJED";
            this.label1IDORGJED.TabIndex               = 1;
            this.label1IDORGJED.Tag                    = "labelIDORGJED";
            this.label1IDORGJED.Text                   = "Šifra OJ:";
            this.label1IDORGJED.StyleSetName           = "FieldUltraLabel";
            this.label1IDORGJED.AutoSize               = true;
            this.label1IDORGJED.Anchor                 = AnchorStyles.Left;
            this.label1IDORGJED.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDORGJED.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDORGJED.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDORGJED.ImageSize            = size;
            this.label1IDORGJED.Appearance.ForeColor = Color.Black;
            this.label1IDORGJED.BackColor            = Color.Transparent;
            this.layoutManagerformORGJED.Controls.Add(this.label1IDORGJED, 0, 0);
            this.layoutManagerformORGJED.SetColumnSpan(this.label1IDORGJED, 1);
            this.layoutManagerformORGJED.SetRowSpan(this.label1IDORGJED, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDORGJED.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDORGJED.MinimumSize = size;
            size = new System.Drawing.Size(0x40, 0x17);
            this.label1IDORGJED.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDORGJED.Location    = point;
            this.textIDORGJED.Name        = "textIDORGJED";
            this.textIDORGJED.Tag         = "IDORGJED";
            this.textIDORGJED.TabIndex    = 0;
            this.textIDORGJED.Anchor      = AnchorStyles.Left;
            this.textIDORGJED.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDORGJED.ReadOnly    = false;
            this.textIDORGJED.PromptChar  = ' ';
            this.textIDORGJED.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDORGJED.DataBindings.Add(new Binding("Value", this.bindingSourceORGJED, "IDORGJED"));
            this.textIDORGJED.NumericType = NumericType.Integer;
            this.textIDORGJED.MaskInput   = "{LOC}-nnnnnnnn";
            this.layoutManagerformORGJED.Controls.Add(this.textIDORGJED, 1, 0);
            this.layoutManagerformORGJED.SetColumnSpan(this.textIDORGJED, 1);
            this.layoutManagerformORGJED.SetRowSpan(this.textIDORGJED, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDORGJED.Margin = padding;
            size = new System.Drawing.Size(0x48, 0x16);
            this.textIDORGJED.MinimumSize = size;
            size = new System.Drawing.Size(0x48, 0x16);
            this.textIDORGJED.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVORGJED.Location              = point;
            this.label1NAZIVORGJED.Name                  = "label1NAZIVORGJED";
            this.label1NAZIVORGJED.TabIndex              = 1;
            this.label1NAZIVORGJED.Tag                   = "labelNAZIVORGJED";
            this.label1NAZIVORGJED.Text                  = "Naziv OJ:";
            this.label1NAZIVORGJED.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVORGJED.AutoSize              = true;
            this.label1NAZIVORGJED.Anchor                = AnchorStyles.Left;
            this.label1NAZIVORGJED.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVORGJED.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVORGJED.BackColor             = Color.Transparent;
            this.layoutManagerformORGJED.Controls.Add(this.label1NAZIVORGJED, 0, 1);
            this.layoutManagerformORGJED.SetColumnSpan(this.label1NAZIVORGJED, 1);
            this.layoutManagerformORGJED.SetRowSpan(this.label1NAZIVORGJED, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVORGJED.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVORGJED.MinimumSize = size;
            size = new System.Drawing.Size(0x49, 0x17);
            this.label1NAZIVORGJED.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVORGJED.Location    = point;
            this.textNAZIVORGJED.Name        = "textNAZIVORGJED";
            this.textNAZIVORGJED.Tag         = "NAZIVORGJED";
            this.textNAZIVORGJED.TabIndex    = 0;
            this.textNAZIVORGJED.Anchor      = AnchorStyles.Left;
            this.textNAZIVORGJED.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVORGJED.ReadOnly    = false;
            this.textNAZIVORGJED.DataBindings.Add(new Binding("Text", this.bindingSourceORGJED, "NAZIVORGJED"));
            this.textNAZIVORGJED.MaxLength = 100;
            this.layoutManagerformORGJED.Controls.Add(this.textNAZIVORGJED, 1, 1);
            this.layoutManagerformORGJED.SetColumnSpan(this.textNAZIVORGJED, 1);
            this.layoutManagerformORGJED.SetRowSpan(this.textNAZIVORGJED, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVORGJED.Margin = padding;
            size = new System.Drawing.Size(0x240, 0x16);
            this.textNAZIVORGJED.MinimumSize = size;
            size = new System.Drawing.Size(0x240, 0x16);
            this.textNAZIVORGJED.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1oj.Location              = point;
            this.label1oj.Name                  = "label1oj";
            this.label1oj.TabIndex              = 1;
            this.label1oj.Tag                   = "labeloj";
            this.label1oj.Text                  = "oj:";
            this.label1oj.StyleSetName          = "FieldUltraLabel";
            this.label1oj.AutoSize              = true;
            this.label1oj.Anchor                = AnchorStyles.Left | AnchorStyles.Top;
            this.label1oj.Appearance.TextVAlign = VAlign.Middle;
            this.label1oj.Appearance.ForeColor  = Color.Black;
            this.label1oj.BackColor             = Color.Transparent;
            this.layoutManagerformORGJED.Controls.Add(this.label1oj, 0, 2);
            this.layoutManagerformORGJED.SetColumnSpan(this.label1oj, 1);
            this.layoutManagerformORGJED.SetRowSpan(this.label1oj, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1oj.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1oj.MinimumSize = size;
            size = new System.Drawing.Size(0x1f, 0x17);
            this.label1oj.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.labeloj.Location  = point;
            this.labeloj.Name      = "labeloj";
            this.labeloj.Tag       = "oj";
            this.labeloj.TabIndex  = 0;
            this.labeloj.Anchor    = AnchorStyles.Left;
            this.labeloj.BackColor = Color.Transparent;
            this.labeloj.DataBindings.Add(new Binding("Text", this.bindingSourceORGJED, "oj"));
            this.labeloj.Appearance.TextVAlign = VAlign.Middle;
            this.layoutManagerformORGJED.Controls.Add(this.labeloj, 1, 2);
            this.layoutManagerformORGJED.SetColumnSpan(this.labeloj, 1);
            this.layoutManagerformORGJED.SetRowSpan(this.labeloj, 1);
            padding             = new Padding(0, 1, 3, 2);
            this.labeloj.Margin = padding;
            size = new System.Drawing.Size(0x240, 0x2c);
            this.labeloj.MinimumSize = size;
            size = new System.Drawing.Size(0x240, 0x2c);
            this.labeloj.Size = size;
            this.labeloj.Dock = DockStyle.Fill;
            this.Controls.Add(this.layoutManagerformORGJED);
            this.SetNullItem.Index   = 0;
            this.SetNullItem.Text    = "Set Null";
            this.SetNullItem.Click  += new EventHandler(this.SetNullItem_Click);
            this.contextMenu1.Popup += new EventHandler(this.contextMenu1_Popup);
            this.contextMenu1.MenuItems.AddRange(new MenuItem[] { this.SetNullItem });
            this.errorProvider1.DataSource             = this.bindingSourceORGJED;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "ORGJEDFormUserControl";
            this.Text       = "Organizacijske jedinice";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.ORGJEDFormUserControl_Load);
            this.layoutManagerformORGJED.ResumeLayout(false);
            this.layoutManagerformORGJED.PerformLayout();
            ((ISupportInitialize)this.bindingSourceORGJED).EndInit();
            ((ISupportInitialize)this.textIDORGJED).EndInit();
            ((ISupportInitialize)this.textNAZIVORGJED).EndInit();
            this.dsORGJEDDataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }