public virtual void Fill() { this.PreFill(); this.dsPOSTANSKIBROJEVIDataSet1 = new POSTANSKIBROJEVIDataSet(); this.m_StartRow = 0; this.Cursor = Cursors.WaitCursor; this.m_GridLoading = true; ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal); }
public void ChangeBinding() { this.bindingSourcePOSTANSKIBROJEVI.DataSource = this.POSTANSKIBROJEVIController.DataSet; this.dsPOSTANSKIBROJEVIDataSet1 = this.POSTANSKIBROJEVIController.DataSet; }
private void InitializeComponent() { this.components = new Container(); ResourceManager manager = new ResourceManager(typeof(POSTANSKIBROJEVIFormUserControl)); 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.bindingSourcePOSTANSKIBROJEVI = new BindingSource(this.components); ((ISupportInitialize)this.bindingSourcePOSTANSKIBROJEVI).BeginInit(); this.layoutManagerformPOSTANSKIBROJEVI = new TableLayoutPanel(); this.layoutManagerformPOSTANSKIBROJEVI.SuspendLayout(); this.layoutManagerformPOSTANSKIBROJEVI.AutoSize = true; this.layoutManagerformPOSTANSKIBROJEVI.Dock = DockStyle.Fill; this.layoutManagerformPOSTANSKIBROJEVI.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.layoutManagerformPOSTANSKIBROJEVI.AutoScroll = false; System.Drawing.Point point = new System.Drawing.Point(0, 0); this.layoutManagerformPOSTANSKIBROJEVI.Location = point; Size size = new System.Drawing.Size(0, 0); this.layoutManagerformPOSTANSKIBROJEVI.Size = size; this.layoutManagerformPOSTANSKIBROJEVI.ColumnCount = 2; this.layoutManagerformPOSTANSKIBROJEVI.RowCount = 3; this.layoutManagerformPOSTANSKIBROJEVI.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformPOSTANSKIBROJEVI.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformPOSTANSKIBROJEVI.RowStyles.Add(new RowStyle()); this.layoutManagerformPOSTANSKIBROJEVI.RowStyles.Add(new RowStyle()); this.layoutManagerformPOSTANSKIBROJEVI.RowStyles.Add(new RowStyle()); this.label1POSTANSKIBROJ = new UltraLabel(); this.textPOSTANSKIBROJ = new UltraTextEditor(); this.label1NAZIVPOSTE = new UltraLabel(); this.textNAZIVPOSTE = new UltraTextEditor(); ((ISupportInitialize)this.textPOSTANSKIBROJ).BeginInit(); ((ISupportInitialize)this.textNAZIVPOSTE).BeginInit(); this.dsPOSTANSKIBROJEVIDataSet1 = new POSTANSKIBROJEVIDataSet(); this.dsPOSTANSKIBROJEVIDataSet1.BeginInit(); this.SuspendLayout(); this.dsPOSTANSKIBROJEVIDataSet1.DataSetName = "dsPOSTANSKIBROJEVI"; this.dsPOSTANSKIBROJEVIDataSet1.Locale = new CultureInfo("hr-HR"); this.bindingSourcePOSTANSKIBROJEVI.DataSource = this.dsPOSTANSKIBROJEVIDataSet1; this.bindingSourcePOSTANSKIBROJEVI.DataMember = "POSTANSKIBROJEVI"; ((ISupportInitialize)this.bindingSourcePOSTANSKIBROJEVI).BeginInit(); point = new System.Drawing.Point(0, 0); this.label1POSTANSKIBROJ.Location = point; this.label1POSTANSKIBROJ.Name = "label1POSTANSKIBROJ"; this.label1POSTANSKIBROJ.TabIndex = 1; this.label1POSTANSKIBROJ.Tag = "labelPOSTANSKIBROJ"; this.label1POSTANSKIBROJ.Text = "Poštanski broj:"; this.label1POSTANSKIBROJ.StyleSetName = "FieldUltraLabel"; this.label1POSTANSKIBROJ.AutoSize = true; this.label1POSTANSKIBROJ.Anchor = AnchorStyles.Left; this.label1POSTANSKIBROJ.Appearance.TextVAlign = VAlign.Middle; this.label1POSTANSKIBROJ.Appearance.Image = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image")); this.label1POSTANSKIBROJ.Appearance.ImageHAlign = HAlign.Right; size = new System.Drawing.Size(7, 10); this.label1POSTANSKIBROJ.ImageSize = size; this.label1POSTANSKIBROJ.Appearance.ForeColor = Color.Black; this.label1POSTANSKIBROJ.BackColor = Color.Transparent; this.layoutManagerformPOSTANSKIBROJEVI.Controls.Add(this.label1POSTANSKIBROJ, 0, 0); this.layoutManagerformPOSTANSKIBROJEVI.SetColumnSpan(this.label1POSTANSKIBROJ, 1); this.layoutManagerformPOSTANSKIBROJEVI.SetRowSpan(this.label1POSTANSKIBROJ, 1); Padding padding = new Padding(3, 1, 5, 2); this.label1POSTANSKIBROJ.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1POSTANSKIBROJ.MinimumSize = size; size = new System.Drawing.Size(0x69, 0x17); this.label1POSTANSKIBROJ.Size = size; point = new System.Drawing.Point(0, 0); this.textPOSTANSKIBROJ.Location = point; this.textPOSTANSKIBROJ.Name = "textPOSTANSKIBROJ"; this.textPOSTANSKIBROJ.Tag = "POSTANSKIBROJ"; this.textPOSTANSKIBROJ.TabIndex = 0; this.textPOSTANSKIBROJ.Anchor = AnchorStyles.Left; this.textPOSTANSKIBROJ.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textPOSTANSKIBROJ.ReadOnly = false; this.textPOSTANSKIBROJ.DataBindings.Add(new Binding("Text", this.bindingSourcePOSTANSKIBROJEVI, "POSTANSKIBROJ")); this.textPOSTANSKIBROJ.MaxLength = 5; this.layoutManagerformPOSTANSKIBROJEVI.Controls.Add(this.textPOSTANSKIBROJ, 1, 0); this.layoutManagerformPOSTANSKIBROJEVI.SetColumnSpan(this.textPOSTANSKIBROJ, 1); this.layoutManagerformPOSTANSKIBROJEVI.SetRowSpan(this.textPOSTANSKIBROJ, 1); padding = new Padding(0, 1, 3, 2); this.textPOSTANSKIBROJ.Margin = padding; size = new System.Drawing.Size(0x2c, 0x16); this.textPOSTANSKIBROJ.MinimumSize = size; size = new System.Drawing.Size(0x2c, 0x16); this.textPOSTANSKIBROJ.Size = size; point = new System.Drawing.Point(0, 0); this.label1NAZIVPOSTE.Location = point; this.label1NAZIVPOSTE.Name = "label1NAZIVPOSTE"; this.label1NAZIVPOSTE.TabIndex = 1; this.label1NAZIVPOSTE.Tag = "labelNAZIVPOSTE"; this.label1NAZIVPOSTE.Text = "Naziv pošte:"; this.label1NAZIVPOSTE.StyleSetName = "FieldUltraLabel"; this.label1NAZIVPOSTE.AutoSize = true; this.label1NAZIVPOSTE.Anchor = AnchorStyles.Left; this.label1NAZIVPOSTE.Appearance.TextVAlign = VAlign.Middle; this.label1NAZIVPOSTE.Appearance.ForeColor = Color.Black; this.label1NAZIVPOSTE.BackColor = Color.Transparent; this.layoutManagerformPOSTANSKIBROJEVI.Controls.Add(this.label1NAZIVPOSTE, 0, 1); this.layoutManagerformPOSTANSKIBROJEVI.SetColumnSpan(this.label1NAZIVPOSTE, 1); this.layoutManagerformPOSTANSKIBROJEVI.SetRowSpan(this.label1NAZIVPOSTE, 1); padding = new Padding(3, 1, 5, 2); this.label1NAZIVPOSTE.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1NAZIVPOSTE.MinimumSize = size; size = new System.Drawing.Size(0x5b, 0x17); this.label1NAZIVPOSTE.Size = size; point = new System.Drawing.Point(0, 0); this.textNAZIVPOSTE.Location = point; this.textNAZIVPOSTE.Name = "textNAZIVPOSTE"; this.textNAZIVPOSTE.Tag = "NAZIVPOSTE"; this.textNAZIVPOSTE.TabIndex = 0; this.textNAZIVPOSTE.Anchor = AnchorStyles.Left; this.textNAZIVPOSTE.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textNAZIVPOSTE.ReadOnly = false; this.textNAZIVPOSTE.DataBindings.Add(new Binding("Text", this.bindingSourcePOSTANSKIBROJEVI, "NAZIVPOSTE")); this.textNAZIVPOSTE.MaxLength = 50; this.layoutManagerformPOSTANSKIBROJEVI.Controls.Add(this.textNAZIVPOSTE, 1, 1); this.layoutManagerformPOSTANSKIBROJEVI.SetColumnSpan(this.textNAZIVPOSTE, 1); this.layoutManagerformPOSTANSKIBROJEVI.SetRowSpan(this.textNAZIVPOSTE, 1); padding = new Padding(0, 1, 3, 2); this.textNAZIVPOSTE.Margin = padding; size = new System.Drawing.Size(0x16e, 0x16); this.textNAZIVPOSTE.MinimumSize = size; size = new System.Drawing.Size(0x16e, 0x16); this.textNAZIVPOSTE.Size = size; this.Controls.Add(this.layoutManagerformPOSTANSKIBROJEVI); 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.bindingSourcePOSTANSKIBROJEVI; this.errorProviderValidator1.ErrorProvider = this.errorProvider1; this.Name = "POSTANSKIBROJEVIFormUserControl"; this.Text = "POSTANSKIBROJEVI"; this.AutoSize = true; this.AutoScroll = true; this.Load += new EventHandler(this.POSTANSKIBROJEVIFormUserControl_Load); this.layoutManagerformPOSTANSKIBROJEVI.ResumeLayout(false); this.layoutManagerformPOSTANSKIBROJEVI.PerformLayout(); ((ISupportInitialize)this.bindingSourcePOSTANSKIBROJEVI).EndInit(); ((ISupportInitialize)this.textPOSTANSKIBROJ).EndInit(); ((ISupportInitialize)this.textNAZIVPOSTE).EndInit(); this.dsPOSTANSKIBROJEVIDataSet1.EndInit(); this.ResumeLayout(false); this.PerformLayout(); }