public virtual void Fill() { this.PreFill(); this.dsDDVRSTEIZNOSADataSet1 = new DDVRSTEIZNOSADataSet(); this.m_StartRow = 0; this.Cursor = Cursors.WaitCursor; this.m_GridLoading = true; ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal); }
public void ChangeBinding() { this.bindingSourceDDVRSTEIZNOSA.DataSource = this.DDVRSTEIZNOSAController.DataSet; this.dsDDVRSTEIZNOSADataSet1 = this.DDVRSTEIZNOSAController.DataSet; }
private void InitializeComponent() { this.components = new Container(); ResourceManager manager = new ResourceManager(typeof(DDVRSTEIZNOSAFormUserControl)); 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.bindingSourceDDVRSTEIZNOSA = new BindingSource(this.components); ((ISupportInitialize)this.bindingSourceDDVRSTEIZNOSA).BeginInit(); this.layoutManagerformDDVRSTEIZNOSA = new TableLayoutPanel(); this.layoutManagerformDDVRSTEIZNOSA.SuspendLayout(); this.layoutManagerformDDVRSTEIZNOSA.AutoSize = true; this.layoutManagerformDDVRSTEIZNOSA.Dock = DockStyle.Fill; this.layoutManagerformDDVRSTEIZNOSA.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.layoutManagerformDDVRSTEIZNOSA.AutoScroll = false; System.Drawing.Point point = new System.Drawing.Point(0, 0); this.layoutManagerformDDVRSTEIZNOSA.Location = point; Size size = new System.Drawing.Size(0, 0); this.layoutManagerformDDVRSTEIZNOSA.Size = size; this.layoutManagerformDDVRSTEIZNOSA.ColumnCount = 2; this.layoutManagerformDDVRSTEIZNOSA.RowCount = 3; this.layoutManagerformDDVRSTEIZNOSA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformDDVRSTEIZNOSA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformDDVRSTEIZNOSA.RowStyles.Add(new RowStyle()); this.layoutManagerformDDVRSTEIZNOSA.RowStyles.Add(new RowStyle()); this.layoutManagerformDDVRSTEIZNOSA.RowStyles.Add(new RowStyle()); this.label1IDDDVRSTEIZNOSA = new UltraLabel(); this.textIDDDVRSTEIZNOSA = new UltraNumericEditor(); this.label1NAZIVDDVRSTEIZNOSA = new UltraLabel(); this.textNAZIVDDVRSTEIZNOSA = new UltraTextEditor(); ((ISupportInitialize)this.textIDDDVRSTEIZNOSA).BeginInit(); ((ISupportInitialize)this.textNAZIVDDVRSTEIZNOSA).BeginInit(); this.dsDDVRSTEIZNOSADataSet1 = new DDVRSTEIZNOSADataSet(); this.dsDDVRSTEIZNOSADataSet1.BeginInit(); this.SuspendLayout(); this.dsDDVRSTEIZNOSADataSet1.DataSetName = "dsDDVRSTEIZNOSA"; this.dsDDVRSTEIZNOSADataSet1.Locale = new CultureInfo("hr-HR"); this.bindingSourceDDVRSTEIZNOSA.DataSource = this.dsDDVRSTEIZNOSADataSet1; this.bindingSourceDDVRSTEIZNOSA.DataMember = "DDVRSTEIZNOSA"; ((ISupportInitialize)this.bindingSourceDDVRSTEIZNOSA).BeginInit(); point = new System.Drawing.Point(0, 0); this.label1IDDDVRSTEIZNOSA.Location = point; this.label1IDDDVRSTEIZNOSA.Name = "label1IDDDVRSTEIZNOSA"; this.label1IDDDVRSTEIZNOSA.TabIndex = 1; this.label1IDDDVRSTEIZNOSA.Tag = "labelIDDDVRSTEIZNOSA"; this.label1IDDDVRSTEIZNOSA.Text = "Šifra:"; this.label1IDDDVRSTEIZNOSA.StyleSetName = "FieldUltraLabel"; this.label1IDDDVRSTEIZNOSA.AutoSize = true; this.label1IDDDVRSTEIZNOSA.Anchor = AnchorStyles.Left; this.label1IDDDVRSTEIZNOSA.Appearance.TextVAlign = VAlign.Middle; this.label1IDDDVRSTEIZNOSA.Appearance.Image = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image")); this.label1IDDDVRSTEIZNOSA.Appearance.ImageHAlign = HAlign.Right; size = new System.Drawing.Size(7, 10); this.label1IDDDVRSTEIZNOSA.ImageSize = size; this.label1IDDDVRSTEIZNOSA.Appearance.ForeColor = Color.Black; this.label1IDDDVRSTEIZNOSA.BackColor = Color.Transparent; this.layoutManagerformDDVRSTEIZNOSA.Controls.Add(this.label1IDDDVRSTEIZNOSA, 0, 0); this.layoutManagerformDDVRSTEIZNOSA.SetColumnSpan(this.label1IDDDVRSTEIZNOSA, 1); this.layoutManagerformDDVRSTEIZNOSA.SetRowSpan(this.label1IDDDVRSTEIZNOSA, 1); Padding padding = new Padding(3, 1, 5, 2); this.label1IDDDVRSTEIZNOSA.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1IDDDVRSTEIZNOSA.MinimumSize = size; size = new System.Drawing.Size(0x2d, 0x17); this.label1IDDDVRSTEIZNOSA.Size = size; point = new System.Drawing.Point(0, 0); this.textIDDDVRSTEIZNOSA.Location = point; this.textIDDDVRSTEIZNOSA.Name = "textIDDDVRSTEIZNOSA"; this.textIDDDVRSTEIZNOSA.Tag = "IDDDVRSTEIZNOSA"; this.textIDDDVRSTEIZNOSA.TabIndex = 0; this.textIDDDVRSTEIZNOSA.Anchor = AnchorStyles.Left; this.textIDDDVRSTEIZNOSA.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textIDDDVRSTEIZNOSA.ReadOnly = false; this.textIDDDVRSTEIZNOSA.PromptChar = ' '; this.textIDDDVRSTEIZNOSA.Enter += new EventHandler(this.numericEditor_Enter); this.textIDDDVRSTEIZNOSA.DataBindings.Add(new Binding("Value", this.bindingSourceDDVRSTEIZNOSA, "IDDDVRSTEIZNOSA")); this.textIDDDVRSTEIZNOSA.NumericType = NumericType.Integer; this.textIDDDVRSTEIZNOSA.MaskInput = "{LOC}-nnnnn"; this.layoutManagerformDDVRSTEIZNOSA.Controls.Add(this.textIDDDVRSTEIZNOSA, 1, 0); this.layoutManagerformDDVRSTEIZNOSA.SetColumnSpan(this.textIDDDVRSTEIZNOSA, 1); this.layoutManagerformDDVRSTEIZNOSA.SetRowSpan(this.textIDDDVRSTEIZNOSA, 1); padding = new Padding(0, 1, 3, 2); this.textIDDDVRSTEIZNOSA.Margin = padding; size = new System.Drawing.Size(0x33, 0x16); this.textIDDDVRSTEIZNOSA.MinimumSize = size; size = new System.Drawing.Size(0x33, 0x16); this.textIDDDVRSTEIZNOSA.Size = size; point = new System.Drawing.Point(0, 0); this.label1NAZIVDDVRSTEIZNOSA.Location = point; this.label1NAZIVDDVRSTEIZNOSA.Name = "label1NAZIVDDVRSTEIZNOSA"; this.label1NAZIVDDVRSTEIZNOSA.TabIndex = 1; this.label1NAZIVDDVRSTEIZNOSA.Tag = "labelNAZIVDDVRSTEIZNOSA"; this.label1NAZIVDDVRSTEIZNOSA.Text = "Vrsta iznosa - DD:"; this.label1NAZIVDDVRSTEIZNOSA.StyleSetName = "FieldUltraLabel"; this.label1NAZIVDDVRSTEIZNOSA.AutoSize = true; this.label1NAZIVDDVRSTEIZNOSA.Anchor = AnchorStyles.Left; this.label1NAZIVDDVRSTEIZNOSA.Appearance.TextVAlign = VAlign.Middle; this.label1NAZIVDDVRSTEIZNOSA.Appearance.ForeColor = Color.Black; this.label1NAZIVDDVRSTEIZNOSA.BackColor = Color.Transparent; this.layoutManagerformDDVRSTEIZNOSA.Controls.Add(this.label1NAZIVDDVRSTEIZNOSA, 0, 1); this.layoutManagerformDDVRSTEIZNOSA.SetColumnSpan(this.label1NAZIVDDVRSTEIZNOSA, 1); this.layoutManagerformDDVRSTEIZNOSA.SetRowSpan(this.label1NAZIVDDVRSTEIZNOSA, 1); padding = new Padding(3, 1, 5, 2); this.label1NAZIVDDVRSTEIZNOSA.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1NAZIVDDVRSTEIZNOSA.MinimumSize = size; size = new System.Drawing.Size(0x7e, 0x17); this.label1NAZIVDDVRSTEIZNOSA.Size = size; point = new System.Drawing.Point(0, 0); this.textNAZIVDDVRSTEIZNOSA.Location = point; this.textNAZIVDDVRSTEIZNOSA.Name = "textNAZIVDDVRSTEIZNOSA"; this.textNAZIVDDVRSTEIZNOSA.Tag = "NAZIVDDVRSTEIZNOSA"; this.textNAZIVDDVRSTEIZNOSA.TabIndex = 0; this.textNAZIVDDVRSTEIZNOSA.Anchor = AnchorStyles.Left; this.textNAZIVDDVRSTEIZNOSA.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textNAZIVDDVRSTEIZNOSA.ReadOnly = false; this.textNAZIVDDVRSTEIZNOSA.DataBindings.Add(new Binding("Text", this.bindingSourceDDVRSTEIZNOSA, "NAZIVDDVRSTEIZNOSA")); this.textNAZIVDDVRSTEIZNOSA.MaxLength = 50; this.layoutManagerformDDVRSTEIZNOSA.Controls.Add(this.textNAZIVDDVRSTEIZNOSA, 1, 1); this.layoutManagerformDDVRSTEIZNOSA.SetColumnSpan(this.textNAZIVDDVRSTEIZNOSA, 1); this.layoutManagerformDDVRSTEIZNOSA.SetRowSpan(this.textNAZIVDDVRSTEIZNOSA, 1); padding = new Padding(0, 1, 3, 2); this.textNAZIVDDVRSTEIZNOSA.Margin = padding; size = new System.Drawing.Size(0x16e, 0x16); this.textNAZIVDDVRSTEIZNOSA.MinimumSize = size; size = new System.Drawing.Size(0x16e, 0x16); this.textNAZIVDDVRSTEIZNOSA.Size = size; this.Controls.Add(this.layoutManagerformDDVRSTEIZNOSA); 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.bindingSourceDDVRSTEIZNOSA; this.errorProviderValidator1.ErrorProvider = this.errorProvider1; this.Name = "DDVRSTEIZNOSAFormUserControl"; this.Text = "DD-Vrste iznosa"; this.AutoSize = true; this.AutoScroll = true; this.Load += new EventHandler(this.DDVRSTEIZNOSAFormUserControl_Load); this.layoutManagerformDDVRSTEIZNOSA.ResumeLayout(false); this.layoutManagerformDDVRSTEIZNOSA.PerformLayout(); ((ISupportInitialize)this.bindingSourceDDVRSTEIZNOSA).EndInit(); ((ISupportInitialize)this.textIDDDVRSTEIZNOSA).EndInit(); ((ISupportInitialize)this.textNAZIVDDVRSTEIZNOSA).EndInit(); this.dsDDVRSTEIZNOSADataSet1.EndInit(); this.ResumeLayout(false); this.PerformLayout(); }