public virtual void Fill() { this.PreFill(); this.dsRSVRSTEOBRACUNADataSet1 = new RSVRSTEOBRACUNADataSet(); this.m_StartRow = 0; this.Cursor = Cursors.WaitCursor; this.m_GridLoading = true; ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal); }
public void ChangeBinding() { this.bindingSourceRSVRSTEOBRACUNA.DataSource = this.RSVRSTEOBRACUNAController.DataSet; this.dsRSVRSTEOBRACUNADataSet1 = this.RSVRSTEOBRACUNAController.DataSet; }
private void InitializeComponent() { this.components = new Container(); ResourceManager manager = new ResourceManager(typeof(RSVRSTEOBRACUNAFormUserControl)); 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.bindingSourceRSVRSTEOBRACUNA = new BindingSource(this.components); ((ISupportInitialize)this.bindingSourceRSVRSTEOBRACUNA).BeginInit(); this.layoutManagerformRSVRSTEOBRACUNA = new TableLayoutPanel(); this.layoutManagerformRSVRSTEOBRACUNA.SuspendLayout(); this.layoutManagerformRSVRSTEOBRACUNA.AutoSize = true; this.layoutManagerformRSVRSTEOBRACUNA.Dock = DockStyle.Fill; this.layoutManagerformRSVRSTEOBRACUNA.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.layoutManagerformRSVRSTEOBRACUNA.AutoScroll = false; System.Drawing.Point point = new System.Drawing.Point(0, 0); this.layoutManagerformRSVRSTEOBRACUNA.Location = point; Size size = new System.Drawing.Size(0, 0); this.layoutManagerformRSVRSTEOBRACUNA.Size = size; this.layoutManagerformRSVRSTEOBRACUNA.ColumnCount = 2; this.layoutManagerformRSVRSTEOBRACUNA.RowCount = 3; this.layoutManagerformRSVRSTEOBRACUNA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformRSVRSTEOBRACUNA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformRSVRSTEOBRACUNA.RowStyles.Add(new RowStyle()); this.layoutManagerformRSVRSTEOBRACUNA.RowStyles.Add(new RowStyle()); this.layoutManagerformRSVRSTEOBRACUNA.RowStyles.Add(new RowStyle()); this.label1IDRSVRSTEOBRACUNA = new UltraLabel(); this.textIDRSVRSTEOBRACUNA = new UltraTextEditor(); this.label1NAZIVRSVRSTEOBRACUNA = new UltraLabel(); this.textNAZIVRSVRSTEOBRACUNA = new UltraTextEditor(); ((ISupportInitialize)this.textIDRSVRSTEOBRACUNA).BeginInit(); ((ISupportInitialize)this.textNAZIVRSVRSTEOBRACUNA).BeginInit(); this.dsRSVRSTEOBRACUNADataSet1 = new RSVRSTEOBRACUNADataSet(); this.dsRSVRSTEOBRACUNADataSet1.BeginInit(); this.SuspendLayout(); this.dsRSVRSTEOBRACUNADataSet1.DataSetName = "dsRSVRSTEOBRACUNA"; this.dsRSVRSTEOBRACUNADataSet1.Locale = new CultureInfo("hr-HR"); this.bindingSourceRSVRSTEOBRACUNA.DataSource = this.dsRSVRSTEOBRACUNADataSet1; this.bindingSourceRSVRSTEOBRACUNA.DataMember = "RSVRSTEOBRACUNA"; ((ISupportInitialize)this.bindingSourceRSVRSTEOBRACUNA).BeginInit(); point = new System.Drawing.Point(0, 0); this.label1IDRSVRSTEOBRACUNA.Location = point; this.label1IDRSVRSTEOBRACUNA.Name = "label1IDRSVRSTEOBRACUNA"; this.label1IDRSVRSTEOBRACUNA.TabIndex = 1; this.label1IDRSVRSTEOBRACUNA.Tag = "labelIDRSVRSTEOBRACUNA"; this.label1IDRSVRSTEOBRACUNA.Text = "Šifra vrste obračuna:"; this.label1IDRSVRSTEOBRACUNA.StyleSetName = "FieldUltraLabel"; this.label1IDRSVRSTEOBRACUNA.AutoSize = true; this.label1IDRSVRSTEOBRACUNA.Anchor = AnchorStyles.Left; this.label1IDRSVRSTEOBRACUNA.Appearance.TextVAlign = VAlign.Middle; this.label1IDRSVRSTEOBRACUNA.Appearance.Image = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image")); this.label1IDRSVRSTEOBRACUNA.Appearance.ImageHAlign = HAlign.Right; size = new System.Drawing.Size(7, 10); this.label1IDRSVRSTEOBRACUNA.ImageSize = size; this.label1IDRSVRSTEOBRACUNA.Appearance.ForeColor = Color.Black; this.label1IDRSVRSTEOBRACUNA.BackColor = Color.Transparent; this.layoutManagerformRSVRSTEOBRACUNA.Controls.Add(this.label1IDRSVRSTEOBRACUNA, 0, 0); this.layoutManagerformRSVRSTEOBRACUNA.SetColumnSpan(this.label1IDRSVRSTEOBRACUNA, 1); this.layoutManagerformRSVRSTEOBRACUNA.SetRowSpan(this.label1IDRSVRSTEOBRACUNA, 1); Padding padding = new Padding(3, 1, 5, 2); this.label1IDRSVRSTEOBRACUNA.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1IDRSVRSTEOBRACUNA.MinimumSize = size; size = new System.Drawing.Size(0x8e, 0x17); this.label1IDRSVRSTEOBRACUNA.Size = size; point = new System.Drawing.Point(0, 0); this.textIDRSVRSTEOBRACUNA.Location = point; this.textIDRSVRSTEOBRACUNA.Name = "textIDRSVRSTEOBRACUNA"; this.textIDRSVRSTEOBRACUNA.Tag = "IDRSVRSTEOBRACUNA"; this.textIDRSVRSTEOBRACUNA.TabIndex = 0; this.textIDRSVRSTEOBRACUNA.Anchor = AnchorStyles.Left; this.textIDRSVRSTEOBRACUNA.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textIDRSVRSTEOBRACUNA.ReadOnly = false; this.textIDRSVRSTEOBRACUNA.DataBindings.Add(new Binding("Text", this.bindingSourceRSVRSTEOBRACUNA, "IDRSVRSTEOBRACUNA")); this.textIDRSVRSTEOBRACUNA.MaxLength = 2; this.layoutManagerformRSVRSTEOBRACUNA.Controls.Add(this.textIDRSVRSTEOBRACUNA, 1, 0); this.layoutManagerformRSVRSTEOBRACUNA.SetColumnSpan(this.textIDRSVRSTEOBRACUNA, 1); this.layoutManagerformRSVRSTEOBRACUNA.SetRowSpan(this.textIDRSVRSTEOBRACUNA, 1); padding = new Padding(0, 1, 3, 2); this.textIDRSVRSTEOBRACUNA.Margin = padding; size = new System.Drawing.Size(30, 0x16); this.textIDRSVRSTEOBRACUNA.MinimumSize = size; size = new System.Drawing.Size(30, 0x16); this.textIDRSVRSTEOBRACUNA.Size = size; point = new System.Drawing.Point(0, 0); this.label1NAZIVRSVRSTEOBRACUNA.Location = point; this.label1NAZIVRSVRSTEOBRACUNA.Name = "label1NAZIVRSVRSTEOBRACUNA"; this.label1NAZIVRSVRSTEOBRACUNA.TabIndex = 1; this.label1NAZIVRSVRSTEOBRACUNA.Tag = "labelNAZIVRSVRSTEOBRACUNA"; this.label1NAZIVRSVRSTEOBRACUNA.Text = "Naziv vrste obračuna:"; this.label1NAZIVRSVRSTEOBRACUNA.StyleSetName = "FieldUltraLabel"; this.label1NAZIVRSVRSTEOBRACUNA.AutoSize = true; this.label1NAZIVRSVRSTEOBRACUNA.Anchor = AnchorStyles.Left; this.label1NAZIVRSVRSTEOBRACUNA.Appearance.TextVAlign = VAlign.Middle; this.label1NAZIVRSVRSTEOBRACUNA.Appearance.ForeColor = Color.Black; this.label1NAZIVRSVRSTEOBRACUNA.BackColor = Color.Transparent; this.layoutManagerformRSVRSTEOBRACUNA.Controls.Add(this.label1NAZIVRSVRSTEOBRACUNA, 0, 1); this.layoutManagerformRSVRSTEOBRACUNA.SetColumnSpan(this.label1NAZIVRSVRSTEOBRACUNA, 1); this.layoutManagerformRSVRSTEOBRACUNA.SetRowSpan(this.label1NAZIVRSVRSTEOBRACUNA, 1); padding = new Padding(3, 1, 5, 2); this.label1NAZIVRSVRSTEOBRACUNA.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1NAZIVRSVRSTEOBRACUNA.MinimumSize = size; size = new System.Drawing.Size(150, 0x17); this.label1NAZIVRSVRSTEOBRACUNA.Size = size; point = new System.Drawing.Point(0, 0); this.textNAZIVRSVRSTEOBRACUNA.Location = point; this.textNAZIVRSVRSTEOBRACUNA.Name = "textNAZIVRSVRSTEOBRACUNA"; this.textNAZIVRSVRSTEOBRACUNA.Tag = "NAZIVRSVRSTEOBRACUNA"; this.textNAZIVRSVRSTEOBRACUNA.TabIndex = 0; this.textNAZIVRSVRSTEOBRACUNA.Anchor = AnchorStyles.Left; this.textNAZIVRSVRSTEOBRACUNA.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textNAZIVRSVRSTEOBRACUNA.ReadOnly = false; this.textNAZIVRSVRSTEOBRACUNA.DataBindings.Add(new Binding("Text", this.bindingSourceRSVRSTEOBRACUNA, "NAZIVRSVRSTEOBRACUNA")); this.textNAZIVRSVRSTEOBRACUNA.MaxLength = 100; this.layoutManagerformRSVRSTEOBRACUNA.Controls.Add(this.textNAZIVRSVRSTEOBRACUNA, 1, 1); this.layoutManagerformRSVRSTEOBRACUNA.SetColumnSpan(this.textNAZIVRSVRSTEOBRACUNA, 1); this.layoutManagerformRSVRSTEOBRACUNA.SetRowSpan(this.textNAZIVRSVRSTEOBRACUNA, 1); padding = new Padding(0, 1, 3, 2); this.textNAZIVRSVRSTEOBRACUNA.Margin = padding; size = new System.Drawing.Size(0x240, 0x16); this.textNAZIVRSVRSTEOBRACUNA.MinimumSize = size; size = new System.Drawing.Size(0x240, 0x16); this.textNAZIVRSVRSTEOBRACUNA.Size = size; this.Controls.Add(this.layoutManagerformRSVRSTEOBRACUNA); 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.bindingSourceRSVRSTEOBRACUNA; this.errorProviderValidator1.ErrorProvider = this.errorProvider1; this.Name = "RSVRSTEOBRACUNAFormUserControl"; this.Text = "R-Sm - Vrste obraeuna"; this.AutoSize = true; this.AutoScroll = true; this.Load += new EventHandler(this.RSVRSTEOBRACUNAFormUserControl_Load); this.layoutManagerformRSVRSTEOBRACUNA.ResumeLayout(false); this.layoutManagerformRSVRSTEOBRACUNA.PerformLayout(); ((ISupportInitialize)this.bindingSourceRSVRSTEOBRACUNA).EndInit(); ((ISupportInitialize)this.textIDRSVRSTEOBRACUNA).EndInit(); ((ISupportInitialize)this.textNAZIVRSVRSTEOBRACUNA).EndInit(); this.dsRSVRSTEOBRACUNADataSet1.EndInit(); this.ResumeLayout(false); this.PerformLayout(); }