public virtual void Fill() { this.PreFill(); this.dsORGDIODataSet1 = new ORGDIODataSet(); this.m_StartRow = 0; this.Cursor = Cursors.WaitCursor; this.m_GridLoading = true; ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal); }
public void ChangeBinding() { this.bindingSourceORGDIO.DataSource = this.ORGDIOController.DataSet; this.dsORGDIODataSet1 = this.ORGDIOController.DataSet; }
private void InitializeComponent() { this.components = new Container(); ResourceManager manager = new ResourceManager(typeof(ORGDIOFormUserControl)); 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.bindingSourceORGDIO = new BindingSource(this.components); ((ISupportInitialize)this.bindingSourceORGDIO).BeginInit(); this.layoutManagerformORGDIO = new TableLayoutPanel(); this.layoutManagerformORGDIO.SuspendLayout(); this.layoutManagerformORGDIO.AutoSize = true; this.layoutManagerformORGDIO.Dock = DockStyle.Fill; this.layoutManagerformORGDIO.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.layoutManagerformORGDIO.AutoScroll = false; System.Drawing.Point point = new System.Drawing.Point(0, 0); this.layoutManagerformORGDIO.Location = point; Size size = new System.Drawing.Size(0, 0); this.layoutManagerformORGDIO.Size = size; this.layoutManagerformORGDIO.ColumnCount = 2; this.layoutManagerformORGDIO.RowCount = 3; this.layoutManagerformORGDIO.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformORGDIO.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformORGDIO.RowStyles.Add(new RowStyle()); this.layoutManagerformORGDIO.RowStyles.Add(new RowStyle()); this.layoutManagerformORGDIO.RowStyles.Add(new RowStyle()); this.label1IDORGDIO = new UltraLabel(); this.textIDORGDIO = new UltraNumericEditor(); this.label1ORGANIZACIJSKIDIO = new UltraLabel(); this.textORGANIZACIJSKIDIO = new UltraTextEditor(); ((ISupportInitialize)this.textIDORGDIO).BeginInit(); ((ISupportInitialize)this.textORGANIZACIJSKIDIO).BeginInit(); this.dsORGDIODataSet1 = new ORGDIODataSet(); this.dsORGDIODataSet1.BeginInit(); this.SuspendLayout(); this.dsORGDIODataSet1.DataSetName = "dsORGDIO"; this.dsORGDIODataSet1.Locale = new CultureInfo("hr-HR"); this.bindingSourceORGDIO.DataSource = this.dsORGDIODataSet1; this.bindingSourceORGDIO.DataMember = "ORGDIO"; ((ISupportInitialize)this.bindingSourceORGDIO).BeginInit(); point = new System.Drawing.Point(0, 0); this.label1IDORGDIO.Location = point; this.label1IDORGDIO.Name = "label1IDORGDIO"; this.label1IDORGDIO.TabIndex = 1; this.label1IDORGDIO.Tag = "labelIDORGDIO"; this.label1IDORGDIO.Text = "Šifra organizacijske jedinice:"; this.label1IDORGDIO.StyleSetName = "FieldUltraLabel"; this.label1IDORGDIO.AutoSize = true; this.label1IDORGDIO.Anchor = AnchorStyles.Left; this.label1IDORGDIO.Appearance.TextVAlign = VAlign.Middle; this.label1IDORGDIO.Appearance.Image = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image")); this.label1IDORGDIO.Appearance.ImageHAlign = HAlign.Right; size = new System.Drawing.Size(7, 10); this.label1IDORGDIO.ImageSize = size; this.label1IDORGDIO.Appearance.ForeColor = Color.Black; this.label1IDORGDIO.BackColor = Color.Transparent; this.layoutManagerformORGDIO.Controls.Add(this.label1IDORGDIO, 0, 0); this.layoutManagerformORGDIO.SetColumnSpan(this.label1IDORGDIO, 1); this.layoutManagerformORGDIO.SetRowSpan(this.label1IDORGDIO, 1); Padding padding = new Padding(3, 1, 5, 2); this.label1IDORGDIO.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1IDORGDIO.MinimumSize = size; size = new System.Drawing.Size(0xbf, 0x17); this.label1IDORGDIO.Size = size; point = new System.Drawing.Point(0, 0); this.textIDORGDIO.Location = point; this.textIDORGDIO.Name = "textIDORGDIO"; this.textIDORGDIO.Tag = "IDORGDIO"; this.textIDORGDIO.TabIndex = 0; this.textIDORGDIO.Anchor = AnchorStyles.Left; this.textIDORGDIO.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textIDORGDIO.ReadOnly = false; this.textIDORGDIO.PromptChar = ' '; this.textIDORGDIO.Enter += new EventHandler(this.numericEditor_Enter); this.textIDORGDIO.DataBindings.Add(new Binding("Value", this.bindingSourceORGDIO, "IDORGDIO")); this.textIDORGDIO.NumericType = NumericType.Integer; this.textIDORGDIO.MaskInput = "{LOC}-nnnnn"; this.layoutManagerformORGDIO.Controls.Add(this.textIDORGDIO, 1, 0); this.layoutManagerformORGDIO.SetColumnSpan(this.textIDORGDIO, 1); this.layoutManagerformORGDIO.SetRowSpan(this.textIDORGDIO, 1); padding = new Padding(0, 1, 3, 2); this.textIDORGDIO.Margin = padding; size = new System.Drawing.Size(0x33, 0x16); this.textIDORGDIO.MinimumSize = size; size = new System.Drawing.Size(0x33, 0x16); this.textIDORGDIO.Size = size; point = new System.Drawing.Point(0, 0); this.label1ORGANIZACIJSKIDIO.Location = point; this.label1ORGANIZACIJSKIDIO.Name = "label1ORGANIZACIJSKIDIO"; this.label1ORGANIZACIJSKIDIO.TabIndex = 1; this.label1ORGANIZACIJSKIDIO.Tag = "labelORGANIZACIJSKIDIO"; this.label1ORGANIZACIJSKIDIO.Text = "Naziv organizacijske jedinice:"; this.label1ORGANIZACIJSKIDIO.StyleSetName = "FieldUltraLabel"; this.label1ORGANIZACIJSKIDIO.AutoSize = true; this.label1ORGANIZACIJSKIDIO.Anchor = AnchorStyles.Left; this.label1ORGANIZACIJSKIDIO.Appearance.TextVAlign = VAlign.Middle; this.label1ORGANIZACIJSKIDIO.Appearance.ForeColor = Color.Black; this.label1ORGANIZACIJSKIDIO.BackColor = Color.Transparent; this.layoutManagerformORGDIO.Controls.Add(this.label1ORGANIZACIJSKIDIO, 0, 1); this.layoutManagerformORGDIO.SetColumnSpan(this.label1ORGANIZACIJSKIDIO, 1); this.layoutManagerformORGDIO.SetRowSpan(this.label1ORGANIZACIJSKIDIO, 1); padding = new Padding(3, 1, 5, 2); this.label1ORGANIZACIJSKIDIO.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1ORGANIZACIJSKIDIO.MinimumSize = size; size = new System.Drawing.Size(0xc7, 0x17); this.label1ORGANIZACIJSKIDIO.Size = size; point = new System.Drawing.Point(0, 0); this.textORGANIZACIJSKIDIO.Location = point; this.textORGANIZACIJSKIDIO.Name = "textORGANIZACIJSKIDIO"; this.textORGANIZACIJSKIDIO.Tag = "ORGANIZACIJSKIDIO"; this.textORGANIZACIJSKIDIO.TabIndex = 0; this.textORGANIZACIJSKIDIO.Anchor = AnchorStyles.Left; this.textORGANIZACIJSKIDIO.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textORGANIZACIJSKIDIO.ReadOnly = false; this.textORGANIZACIJSKIDIO.DataBindings.Add(new Binding("Text", this.bindingSourceORGDIO, "ORGANIZACIJSKIDIO")); this.textORGANIZACIJSKIDIO.MaxLength = 50; this.layoutManagerformORGDIO.Controls.Add(this.textORGANIZACIJSKIDIO, 1, 1); this.layoutManagerformORGDIO.SetColumnSpan(this.textORGANIZACIJSKIDIO, 1); this.layoutManagerformORGDIO.SetRowSpan(this.textORGANIZACIJSKIDIO, 1); padding = new Padding(0, 1, 3, 2); this.textORGANIZACIJSKIDIO.Margin = padding; size = new System.Drawing.Size(0x16e, 0x16); this.textORGANIZACIJSKIDIO.MinimumSize = size; size = new System.Drawing.Size(0x16e, 0x16); this.textORGANIZACIJSKIDIO.Size = size; this.Controls.Add(this.layoutManagerformORGDIO); 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.bindingSourceORGDIO; this.errorProviderValidator1.ErrorProvider = this.errorProvider1; this.Name = "ORGDIOFormUserControl"; this.Text = "Organizacijske jedinice"; this.AutoSize = true; this.AutoScroll = true; this.Load += new EventHandler(this.ORGDIOFormUserControl_Load); this.layoutManagerformORGDIO.ResumeLayout(false); this.layoutManagerformORGDIO.PerformLayout(); ((ISupportInitialize)this.bindingSourceORGDIO).EndInit(); ((ISupportInitialize)this.textIDORGDIO).EndInit(); ((ISupportInitialize)this.textORGANIZACIJSKIDIO).EndInit(); this.dsORGDIODataSet1.EndInit(); this.ResumeLayout(false); this.PerformLayout(); }