public virtual void Fill() { this.PreFill(); this.dsRAD1SPREMEVEZADataSet1 = new RAD1SPREMEVEZADataSet(); this.m_StartRow = 0; this.Cursor = Cursors.WaitCursor; this.m_GridLoading = true; ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal); }
public void ChangeBinding() { this.bindingSourceRAD1SPREMEVEZA.DataSource = this.RAD1SPREMEVEZAController.DataSet; this.dsRAD1SPREMEVEZADataSet1 = this.RAD1SPREMEVEZAController.DataSet; }
private void InitializeComponent() { this.components = new Container(); ResourceManager manager = new ResourceManager(typeof(RAD1SPREMEVEZAFormUserControl)); 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.bindingSourceRAD1SPREMEVEZA = new BindingSource(this.components); ((ISupportInitialize)this.bindingSourceRAD1SPREMEVEZA).BeginInit(); this.layoutManagerformRAD1SPREMEVEZA = new TableLayoutPanel(); this.layoutManagerformRAD1SPREMEVEZA.SuspendLayout(); this.layoutManagerformRAD1SPREMEVEZA.AutoSize = true; this.layoutManagerformRAD1SPREMEVEZA.Dock = DockStyle.Fill; this.layoutManagerformRAD1SPREMEVEZA.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.layoutManagerformRAD1SPREMEVEZA.AutoScroll = false; System.Drawing.Point point = new System.Drawing.Point(0, 0); this.layoutManagerformRAD1SPREMEVEZA.Location = point; Size size = new System.Drawing.Size(0, 0); this.layoutManagerformRAD1SPREMEVEZA.Size = size; this.layoutManagerformRAD1SPREMEVEZA.ColumnCount = 2; this.layoutManagerformRAD1SPREMEVEZA.RowCount = 3; this.layoutManagerformRAD1SPREMEVEZA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformRAD1SPREMEVEZA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformRAD1SPREMEVEZA.RowStyles.Add(new RowStyle()); this.layoutManagerformRAD1SPREMEVEZA.RowStyles.Add(new RowStyle()); this.layoutManagerformRAD1SPREMEVEZA.RowStyles.Add(new RowStyle()); this.label1RAD1IDSPREME = new UltraLabel(); this.comboRAD1IDSPREME = new RAD1SPREMEComboBox(); this.label1IDSTRUCNASPREMA = new UltraLabel(); this.comboIDSTRUCNASPREMA = new STRUCNASPREMAComboBox(); this.dsRAD1SPREMEVEZADataSet1 = new RAD1SPREMEVEZADataSet(); this.dsRAD1SPREMEVEZADataSet1.BeginInit(); this.SuspendLayout(); this.dsRAD1SPREMEVEZADataSet1.DataSetName = "dsRAD1SPREMEVEZA"; this.dsRAD1SPREMEVEZADataSet1.Locale = new CultureInfo("hr-HR"); this.bindingSourceRAD1SPREMEVEZA.DataSource = this.dsRAD1SPREMEVEZADataSet1; this.bindingSourceRAD1SPREMEVEZA.DataMember = "RAD1SPREMEVEZA"; ((ISupportInitialize)this.bindingSourceRAD1SPREMEVEZA).BeginInit(); point = new System.Drawing.Point(0, 0); this.label1RAD1IDSPREME.Location = point; this.label1RAD1IDSPREME.Name = "label1RAD1IDSPREME"; this.label1RAD1IDSPREME.TabIndex = 1; this.label1RAD1IDSPREME.Tag = "labelRAD1IDSPREME"; this.label1RAD1IDSPREME.Text = "RAD1-Obrazac spreme:"; this.label1RAD1IDSPREME.StyleSetName = "FieldUltraLabel"; this.label1RAD1IDSPREME.AutoSize = true; this.label1RAD1IDSPREME.Anchor = AnchorStyles.Left; this.label1RAD1IDSPREME.Appearance.TextVAlign = VAlign.Middle; this.label1RAD1IDSPREME.Appearance.Image = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image")); this.label1RAD1IDSPREME.Appearance.ImageHAlign = HAlign.Right; size = new System.Drawing.Size(7, 10); this.label1RAD1IDSPREME.ImageSize = size; this.label1RAD1IDSPREME.Appearance.ForeColor = Color.Black; this.label1RAD1IDSPREME.BackColor = Color.Transparent; this.layoutManagerformRAD1SPREMEVEZA.Controls.Add(this.label1RAD1IDSPREME, 0, 0); this.layoutManagerformRAD1SPREMEVEZA.SetColumnSpan(this.label1RAD1IDSPREME, 1); this.layoutManagerformRAD1SPREMEVEZA.SetRowSpan(this.label1RAD1IDSPREME, 1); Padding padding = new Padding(3, 1, 5, 2); this.label1RAD1IDSPREME.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1RAD1IDSPREME.MinimumSize = size; size = new System.Drawing.Size(0x9c, 0x17); this.label1RAD1IDSPREME.Size = size; point = new System.Drawing.Point(0, 0); this.comboRAD1IDSPREME.Location = point; this.comboRAD1IDSPREME.Name = "comboRAD1IDSPREME"; this.comboRAD1IDSPREME.Tag = "RAD1IDSPREME"; this.comboRAD1IDSPREME.TabIndex = 0; this.comboRAD1IDSPREME.Anchor = AnchorStyles.Left; this.comboRAD1IDSPREME.MouseEnter += new EventHandler(this.mouseEnter_Text); this.comboRAD1IDSPREME.DropDownStyle = DropDownStyle.DropDown; this.comboRAD1IDSPREME.ComboBox.DropDownStyle = DropDownStyle.DropDown; this.comboRAD1IDSPREME.ComboBox.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Suggest; this.comboRAD1IDSPREME.Enabled = true; this.comboRAD1IDSPREME.DataBindings.Add(new Binding("Value", this.bindingSourceRAD1SPREMEVEZA, "RAD1IDSPREME")); this.comboRAD1IDSPREME.ShowPictureBox = true; this.comboRAD1IDSPREME.PictureBoxClicked += new EventHandler(this.PictureBoxClickedRAD1IDSPREME); this.comboRAD1IDSPREME.ValueMember = "RAD1IDSPREME"; this.comboRAD1IDSPREME.SelectionChanged += new EventHandler(this.SelectedIndexChangedRAD1IDSPREME); this.layoutManagerformRAD1SPREMEVEZA.Controls.Add(this.comboRAD1IDSPREME, 1, 0); this.layoutManagerformRAD1SPREMEVEZA.SetColumnSpan(this.comboRAD1IDSPREME, 1); this.layoutManagerformRAD1SPREMEVEZA.SetRowSpan(this.comboRAD1IDSPREME, 1); padding = new Padding(0, 1, 3, 2); this.comboRAD1IDSPREME.Margin = padding; size = new System.Drawing.Size(0x196, 0x17); this.comboRAD1IDSPREME.MinimumSize = size; size = new System.Drawing.Size(0x196, 0x17); this.comboRAD1IDSPREME.Size = size; point = new System.Drawing.Point(0, 0); this.label1IDSTRUCNASPREMA.Location = point; this.label1IDSTRUCNASPREMA.Name = "label1IDSTRUCNASPREMA"; this.label1IDSTRUCNASPREMA.TabIndex = 1; this.label1IDSTRUCNASPREMA.Tag = "labelIDSTRUCNASPREMA"; this.label1IDSTRUCNASPREMA.Text = "Šifra stručne spreme iz kadrovske:"; this.label1IDSTRUCNASPREMA.StyleSetName = "FieldUltraLabel"; this.label1IDSTRUCNASPREMA.AutoSize = true; this.label1IDSTRUCNASPREMA.Anchor = AnchorStyles.Left; this.label1IDSTRUCNASPREMA.Appearance.TextVAlign = VAlign.Middle; this.label1IDSTRUCNASPREMA.Appearance.Image = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image")); this.label1IDSTRUCNASPREMA.Appearance.ImageHAlign = HAlign.Right; size = new System.Drawing.Size(7, 10); this.label1IDSTRUCNASPREMA.ImageSize = size; this.label1IDSTRUCNASPREMA.Appearance.ForeColor = Color.Black; this.label1IDSTRUCNASPREMA.BackColor = Color.Transparent; this.layoutManagerformRAD1SPREMEVEZA.Controls.Add(this.label1IDSTRUCNASPREMA, 0, 1); this.layoutManagerformRAD1SPREMEVEZA.SetColumnSpan(this.label1IDSTRUCNASPREMA, 1); this.layoutManagerformRAD1SPREMEVEZA.SetRowSpan(this.label1IDSTRUCNASPREMA, 1); padding = new Padding(3, 1, 5, 2); this.label1IDSTRUCNASPREMA.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1IDSTRUCNASPREMA.MinimumSize = size; size = new System.Drawing.Size(0xe2, 0x17); this.label1IDSTRUCNASPREMA.Size = size; point = new System.Drawing.Point(0, 0); this.comboIDSTRUCNASPREMA.Location = point; this.comboIDSTRUCNASPREMA.Name = "comboIDSTRUCNASPREMA"; this.comboIDSTRUCNASPREMA.Tag = "IDSTRUCNASPREMA"; this.comboIDSTRUCNASPREMA.TabIndex = 0; this.comboIDSTRUCNASPREMA.Anchor = AnchorStyles.Left; this.comboIDSTRUCNASPREMA.MouseEnter += new EventHandler(this.mouseEnter_Text); this.comboIDSTRUCNASPREMA.DropDownStyle = DropDownStyle.DropDown; this.comboIDSTRUCNASPREMA.ComboBox.DropDownStyle = DropDownStyle.DropDown; this.comboIDSTRUCNASPREMA.ComboBox.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Suggest; this.comboIDSTRUCNASPREMA.Enabled = true; this.comboIDSTRUCNASPREMA.DataBindings.Add(new Binding("Value", this.bindingSourceRAD1SPREMEVEZA, "IDSTRUCNASPREMA")); this.comboIDSTRUCNASPREMA.ShowPictureBox = true; this.comboIDSTRUCNASPREMA.PictureBoxClicked += new EventHandler(this.PictureBoxClickedIDSTRUCNASPREMA); this.comboIDSTRUCNASPREMA.ValueMember = "IDSTRUCNASPREMA"; this.comboIDSTRUCNASPREMA.SelectionChanged += new EventHandler(this.SelectedIndexChangedIDSTRUCNASPREMA); this.layoutManagerformRAD1SPREMEVEZA.Controls.Add(this.comboIDSTRUCNASPREMA, 1, 1); this.layoutManagerformRAD1SPREMEVEZA.SetColumnSpan(this.comboIDSTRUCNASPREMA, 1); this.layoutManagerformRAD1SPREMEVEZA.SetRowSpan(this.comboIDSTRUCNASPREMA, 1); padding = new Padding(0, 1, 3, 2); this.comboIDSTRUCNASPREMA.Margin = padding; size = new System.Drawing.Size(0x196, 0x17); this.comboIDSTRUCNASPREMA.MinimumSize = size; size = new System.Drawing.Size(0x196, 0x17); this.comboIDSTRUCNASPREMA.Size = size; this.Controls.Add(this.layoutManagerformRAD1SPREMEVEZA); 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.bindingSourceRAD1SPREMEVEZA; this.errorProviderValidator1.ErrorProvider = this.errorProvider1; this.Name = "RAD1SPREMEVEZAFormUserControl"; this.Text = "Veza RAD1 i strucne spreme"; this.AutoSize = true; this.AutoScroll = true; this.Load += new EventHandler(this.RAD1SPREMEVEZAFormUserControl_Load); this.layoutManagerformRAD1SPREMEVEZA.ResumeLayout(false); this.layoutManagerformRAD1SPREMEVEZA.PerformLayout(); ((ISupportInitialize)this.bindingSourceRAD1SPREMEVEZA).EndInit(); this.dsRAD1SPREMEVEZADataSet1.EndInit(); this.ResumeLayout(false); this.PerformLayout(); }