public virtual void Fill() { this.PreFill(); this.dsRADNOMJESTODataSet1 = new RADNOMJESTODataSet(); this.m_StartRow = 0; this.Cursor = Cursors.WaitCursor; this.m_GridLoading = true; ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal); }
public void ChangeBinding() { this.bindingSourceRADNOMJESTO.DataSource = this.RADNOMJESTOController.DataSet; this.dsRADNOMJESTODataSet1 = this.RADNOMJESTOController.DataSet; }
private void InitializeComponent() { this.components = new Container(); ResourceManager manager = new ResourceManager(typeof(RADNOMJESTOFormUserControl)); 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.bindingSourceRADNOMJESTO = new BindingSource(this.components); ((ISupportInitialize)this.bindingSourceRADNOMJESTO).BeginInit(); this.layoutManagerformRADNOMJESTO = new TableLayoutPanel(); this.layoutManagerformRADNOMJESTO.SuspendLayout(); this.layoutManagerformRADNOMJESTO.AutoSize = true; this.layoutManagerformRADNOMJESTO.Dock = DockStyle.Fill; this.layoutManagerformRADNOMJESTO.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.layoutManagerformRADNOMJESTO.AutoScroll = false; System.Drawing.Point point = new System.Drawing.Point(0, 0); this.layoutManagerformRADNOMJESTO.Location = point; Size size = new System.Drawing.Size(0, 0); this.layoutManagerformRADNOMJESTO.Size = size; this.layoutManagerformRADNOMJESTO.ColumnCount = 2; this.layoutManagerformRADNOMJESTO.RowCount = 3; this.layoutManagerformRADNOMJESTO.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformRADNOMJESTO.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformRADNOMJESTO.RowStyles.Add(new RowStyle()); this.layoutManagerformRADNOMJESTO.RowStyles.Add(new RowStyle()); this.layoutManagerformRADNOMJESTO.RowStyles.Add(new RowStyle()); this.label1IDRADNOMJESTO = new UltraLabel(); this.textIDRADNOMJESTO = new UltraNumericEditor(); this.label1NAZIVRADNOMJESTO = new UltraLabel(); this.textNAZIVRADNOMJESTO = new UltraTextEditor(); ((ISupportInitialize)this.textIDRADNOMJESTO).BeginInit(); ((ISupportInitialize)this.textNAZIVRADNOMJESTO).BeginInit(); this.dsRADNOMJESTODataSet1 = new RADNOMJESTODataSet(); this.dsRADNOMJESTODataSet1.BeginInit(); this.SuspendLayout(); this.dsRADNOMJESTODataSet1.DataSetName = "dsRADNOMJESTO"; this.dsRADNOMJESTODataSet1.Locale = new CultureInfo("hr-HR"); this.bindingSourceRADNOMJESTO.DataSource = this.dsRADNOMJESTODataSet1; this.bindingSourceRADNOMJESTO.DataMember = "RADNOMJESTO"; ((ISupportInitialize)this.bindingSourceRADNOMJESTO).BeginInit(); point = new System.Drawing.Point(0, 0); this.label1IDRADNOMJESTO.Location = point; this.label1IDRADNOMJESTO.Name = "label1IDRADNOMJESTO"; this.label1IDRADNOMJESTO.TabIndex = 1; this.label1IDRADNOMJESTO.Tag = "labelIDRADNOMJESTO"; this.label1IDRADNOMJESTO.Text = "Šifra radnog mjesta:"; this.label1IDRADNOMJESTO.StyleSetName = "FieldUltraLabel"; this.label1IDRADNOMJESTO.AutoSize = true; this.label1IDRADNOMJESTO.Anchor = AnchorStyles.Left; this.label1IDRADNOMJESTO.Appearance.TextVAlign = VAlign.Middle; this.label1IDRADNOMJESTO.Appearance.Image = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image")); this.label1IDRADNOMJESTO.Appearance.ImageHAlign = HAlign.Right; size = new System.Drawing.Size(7, 10); this.label1IDRADNOMJESTO.ImageSize = size; this.label1IDRADNOMJESTO.Appearance.ForeColor = Color.Black; this.label1IDRADNOMJESTO.BackColor = Color.Transparent; this.layoutManagerformRADNOMJESTO.Controls.Add(this.label1IDRADNOMJESTO, 0, 0); this.layoutManagerformRADNOMJESTO.SetColumnSpan(this.label1IDRADNOMJESTO, 1); this.layoutManagerformRADNOMJESTO.SetRowSpan(this.label1IDRADNOMJESTO, 1); Padding padding = new Padding(3, 1, 5, 2); this.label1IDRADNOMJESTO.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1IDRADNOMJESTO.MinimumSize = size; size = new System.Drawing.Size(0x8b, 0x17); this.label1IDRADNOMJESTO.Size = size; point = new System.Drawing.Point(0, 0); this.textIDRADNOMJESTO.Location = point; this.textIDRADNOMJESTO.Name = "textIDRADNOMJESTO"; this.textIDRADNOMJESTO.Tag = "IDRADNOMJESTO"; this.textIDRADNOMJESTO.TabIndex = 0; this.textIDRADNOMJESTO.Anchor = AnchorStyles.Left; this.textIDRADNOMJESTO.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textIDRADNOMJESTO.ReadOnly = false; this.textIDRADNOMJESTO.PromptChar = ' '; this.textIDRADNOMJESTO.Enter += new EventHandler(this.numericEditor_Enter); this.textIDRADNOMJESTO.DataBindings.Add(new Binding("Value", this.bindingSourceRADNOMJESTO, "IDRADNOMJESTO")); this.textIDRADNOMJESTO.NumericType = NumericType.Integer; this.textIDRADNOMJESTO.MaskInput = "{LOC}-nnnnn"; this.layoutManagerformRADNOMJESTO.Controls.Add(this.textIDRADNOMJESTO, 1, 0); this.layoutManagerformRADNOMJESTO.SetColumnSpan(this.textIDRADNOMJESTO, 1); this.layoutManagerformRADNOMJESTO.SetRowSpan(this.textIDRADNOMJESTO, 1); padding = new Padding(0, 1, 3, 2); this.textIDRADNOMJESTO.Margin = padding; size = new System.Drawing.Size(0x33, 0x16); this.textIDRADNOMJESTO.MinimumSize = size; size = new System.Drawing.Size(0x33, 0x16); this.textIDRADNOMJESTO.Size = size; point = new System.Drawing.Point(0, 0); this.label1NAZIVRADNOMJESTO.Location = point; this.label1NAZIVRADNOMJESTO.Name = "label1NAZIVRADNOMJESTO"; this.label1NAZIVRADNOMJESTO.TabIndex = 1; this.label1NAZIVRADNOMJESTO.Tag = "labelNAZIVRADNOMJESTO"; this.label1NAZIVRADNOMJESTO.Text = "Naziv radnog mjesta:"; this.label1NAZIVRADNOMJESTO.StyleSetName = "FieldUltraLabel"; this.label1NAZIVRADNOMJESTO.AutoSize = true; this.label1NAZIVRADNOMJESTO.Anchor = AnchorStyles.Left; this.label1NAZIVRADNOMJESTO.Appearance.TextVAlign = VAlign.Middle; this.label1NAZIVRADNOMJESTO.Appearance.ForeColor = Color.Black; this.label1NAZIVRADNOMJESTO.BackColor = Color.Transparent; this.layoutManagerformRADNOMJESTO.Controls.Add(this.label1NAZIVRADNOMJESTO, 0, 1); this.layoutManagerformRADNOMJESTO.SetColumnSpan(this.label1NAZIVRADNOMJESTO, 1); this.layoutManagerformRADNOMJESTO.SetRowSpan(this.label1NAZIVRADNOMJESTO, 1); padding = new Padding(3, 1, 5, 2); this.label1NAZIVRADNOMJESTO.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1NAZIVRADNOMJESTO.MinimumSize = size; size = new System.Drawing.Size(0x93, 0x17); this.label1NAZIVRADNOMJESTO.Size = size; point = new System.Drawing.Point(0, 0); this.textNAZIVRADNOMJESTO.Location = point; this.textNAZIVRADNOMJESTO.Name = "textNAZIVRADNOMJESTO"; this.textNAZIVRADNOMJESTO.Tag = "NAZIVRADNOMJESTO"; this.textNAZIVRADNOMJESTO.TabIndex = 0; this.textNAZIVRADNOMJESTO.Anchor = AnchorStyles.Left; this.textNAZIVRADNOMJESTO.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textNAZIVRADNOMJESTO.ReadOnly = false; this.textNAZIVRADNOMJESTO.DataBindings.Add(new Binding("Text", this.bindingSourceRADNOMJESTO, "NAZIVRADNOMJESTO")); this.textNAZIVRADNOMJESTO.MaxLength = 50; this.layoutManagerformRADNOMJESTO.Controls.Add(this.textNAZIVRADNOMJESTO, 1, 1); this.layoutManagerformRADNOMJESTO.SetColumnSpan(this.textNAZIVRADNOMJESTO, 1); this.layoutManagerformRADNOMJESTO.SetRowSpan(this.textNAZIVRADNOMJESTO, 1); padding = new Padding(0, 1, 3, 2); this.textNAZIVRADNOMJESTO.Margin = padding; size = new System.Drawing.Size(0x16e, 0x16); this.textNAZIVRADNOMJESTO.MinimumSize = size; size = new System.Drawing.Size(0x16e, 0x16); this.textNAZIVRADNOMJESTO.Size = size; this.Controls.Add(this.layoutManagerformRADNOMJESTO); 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.bindingSourceRADNOMJESTO; this.errorProviderValidator1.ErrorProvider = this.errorProvider1; this.Name = "RADNOMJESTOFormUserControl"; this.Text = "Radna mjesta"; this.AutoSize = true; this.AutoScroll = true; this.Load += new EventHandler(this.RADNOMJESTOFormUserControl_Load); this.layoutManagerformRADNOMJESTO.ResumeLayout(false); this.layoutManagerformRADNOMJESTO.PerformLayout(); ((ISupportInitialize)this.bindingSourceRADNOMJESTO).EndInit(); ((ISupportInitialize)this.textIDRADNOMJESTO).EndInit(); ((ISupportInitialize)this.textNAZIVRADNOMJESTO).EndInit(); this.dsRADNOMJESTODataSet1.EndInit(); this.ResumeLayout(false); this.PerformLayout(); }