public virtual void Fill() { this.PreFill(); this.dsSMJENEDataSet1 = new SMJENEDataSet(); this.m_StartRow = 0; this.Cursor = Cursors.WaitCursor; this.m_GridLoading = true; ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal); }
public void ChangeBinding() { this.bindingSourceSMJENE.DataSource = this.SMJENEController.DataSet; this.dsSMJENEDataSet1 = this.SMJENEController.DataSet; }
private void InitializeComponent() { this.components = new Container(); ResourceManager manager = new ResourceManager(typeof(SMJENEFormUserControl)); 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.bindingSourceSMJENE = new BindingSource(this.components); ((ISupportInitialize)this.bindingSourceSMJENE).BeginInit(); this.layoutManagerformSMJENE = new TableLayoutPanel(); this.layoutManagerformSMJENE.SuspendLayout(); this.layoutManagerformSMJENE.AutoSize = true; this.layoutManagerformSMJENE.Dock = DockStyle.Fill; this.layoutManagerformSMJENE.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.layoutManagerformSMJENE.AutoScroll = false; System.Drawing.Point point = new System.Drawing.Point(0, 0); this.layoutManagerformSMJENE.Location = point; Size size = new System.Drawing.Size(0, 0); this.layoutManagerformSMJENE.Size = size; this.layoutManagerformSMJENE.ColumnCount = 2; this.layoutManagerformSMJENE.RowCount = 4; this.layoutManagerformSMJENE.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformSMJENE.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformSMJENE.RowStyles.Add(new RowStyle()); this.layoutManagerformSMJENE.RowStyles.Add(new RowStyle()); this.layoutManagerformSMJENE.RowStyles.Add(new RowStyle()); this.layoutManagerformSMJENE.RowStyles.Add(new RowStyle()); this.label1IDSMJENE = new UltraLabel(); this.textIDSMJENE = new UltraNumericEditor(); this.label1OPISSMJENE = new UltraLabel(); this.textOPISSMJENE = new UltraTextEditor(); this.label1POCETAK = new UltraLabel(); this.textPOCETAK = new UltraTextEditor(); this.label1ZAVRSETAK = new UltraLabel(); this.textZAVRSETAK = new UltraTextEditor(); ((ISupportInitialize)this.textIDSMJENE).BeginInit(); ((ISupportInitialize)this.textOPISSMJENE).BeginInit(); ((ISupportInitialize)this.textPOCETAK).BeginInit(); ((ISupportInitialize)this.textZAVRSETAK).BeginInit(); this.dsSMJENEDataSet1 = new SMJENEDataSet(); this.dsSMJENEDataSet1.BeginInit(); this.SuspendLayout(); this.dsSMJENEDataSet1.DataSetName = "dsSMJENE"; this.dsSMJENEDataSet1.Locale = new CultureInfo("hr-HR"); this.bindingSourceSMJENE.DataSource = this.dsSMJENEDataSet1; this.bindingSourceSMJENE.DataMember = "SMJENE"; ((ISupportInitialize)this.bindingSourceSMJENE).BeginInit(); point = new System.Drawing.Point(0, 0); this.label1IDSMJENE.Location = point; this.label1IDSMJENE.Name = "label1IDSMJENE"; this.label1IDSMJENE.TabIndex = 1; this.label1IDSMJENE.Tag = "labelIDSMJENE"; this.label1IDSMJENE.Text = "Šifra:"; this.label1IDSMJENE.StyleSetName = "FieldUltraLabel"; this.label1IDSMJENE.AutoSize = true; this.label1IDSMJENE.Anchor = AnchorStyles.Left; this.label1IDSMJENE.Appearance.TextVAlign = VAlign.Middle; this.label1IDSMJENE.Appearance.Image = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image")); this.label1IDSMJENE.Appearance.ImageHAlign = HAlign.Right; size = new System.Drawing.Size(7, 10); this.label1IDSMJENE.ImageSize = size; this.label1IDSMJENE.Appearance.ForeColor = Color.Black; this.label1IDSMJENE.BackColor = Color.Transparent; this.layoutManagerformSMJENE.Controls.Add(this.label1IDSMJENE, 0, 0); this.layoutManagerformSMJENE.SetColumnSpan(this.label1IDSMJENE, 1); this.layoutManagerformSMJENE.SetRowSpan(this.label1IDSMJENE, 1); Padding padding = new Padding(3, 1, 5, 2); this.label1IDSMJENE.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1IDSMJENE.MinimumSize = size; size = new System.Drawing.Size(0x2d, 0x17); this.label1IDSMJENE.Size = size; point = new System.Drawing.Point(0, 0); this.textIDSMJENE.Location = point; this.textIDSMJENE.Name = "textIDSMJENE"; this.textIDSMJENE.Tag = "IDSMJENE"; this.textIDSMJENE.TabIndex = 0; this.textIDSMJENE.Anchor = AnchorStyles.Left; this.textIDSMJENE.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textIDSMJENE.ReadOnly = false; this.textIDSMJENE.PromptChar = ' '; this.textIDSMJENE.Enter += new EventHandler(this.numericEditor_Enter); this.textIDSMJENE.DataBindings.Add(new Binding("Value", this.bindingSourceSMJENE, "IDSMJENE")); this.textIDSMJENE.NumericType = NumericType.Integer; this.textIDSMJENE.MaskInput = "{LOC}-nnnnn"; this.layoutManagerformSMJENE.Controls.Add(this.textIDSMJENE, 1, 0); this.layoutManagerformSMJENE.SetColumnSpan(this.textIDSMJENE, 1); this.layoutManagerformSMJENE.SetRowSpan(this.textIDSMJENE, 1); padding = new Padding(0, 1, 3, 2); this.textIDSMJENE.Margin = padding; size = new System.Drawing.Size(0x33, 0x16); this.textIDSMJENE.MinimumSize = size; size = new System.Drawing.Size(0x33, 0x16); this.textIDSMJENE.Size = size; point = new System.Drawing.Point(0, 0); this.label1OPISSMJENE.Location = point; this.label1OPISSMJENE.Name = "label1OPISSMJENE"; this.label1OPISSMJENE.TabIndex = 1; this.label1OPISSMJENE.Tag = "labelOPISSMJENE"; this.label1OPISSMJENE.Text = "Opis:"; this.label1OPISSMJENE.StyleSetName = "FieldUltraLabel"; this.label1OPISSMJENE.AutoSize = true; this.label1OPISSMJENE.Anchor = AnchorStyles.Left; this.label1OPISSMJENE.Appearance.TextVAlign = VAlign.Middle; this.label1OPISSMJENE.Appearance.ForeColor = Color.Black; this.label1OPISSMJENE.BackColor = Color.Transparent; this.layoutManagerformSMJENE.Controls.Add(this.label1OPISSMJENE, 0, 1); this.layoutManagerformSMJENE.SetColumnSpan(this.label1OPISSMJENE, 1); this.layoutManagerformSMJENE.SetRowSpan(this.label1OPISSMJENE, 1); padding = new Padding(3, 1, 5, 2); this.label1OPISSMJENE.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1OPISSMJENE.MinimumSize = size; size = new System.Drawing.Size(0x2e, 0x17); this.label1OPISSMJENE.Size = size; point = new System.Drawing.Point(0, 0); this.textOPISSMJENE.Location = point; this.textOPISSMJENE.Name = "textOPISSMJENE"; this.textOPISSMJENE.Tag = "OPISSMJENE"; this.textOPISSMJENE.TabIndex = 0; this.textOPISSMJENE.Anchor = AnchorStyles.Left; this.textOPISSMJENE.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textOPISSMJENE.ReadOnly = false; this.textOPISSMJENE.DataBindings.Add(new Binding("Text", this.bindingSourceSMJENE, "OPISSMJENE")); this.textOPISSMJENE.MaxLength = 50; this.layoutManagerformSMJENE.Controls.Add(this.textOPISSMJENE, 1, 1); this.layoutManagerformSMJENE.SetColumnSpan(this.textOPISSMJENE, 1); this.layoutManagerformSMJENE.SetRowSpan(this.textOPISSMJENE, 1); padding = new Padding(0, 1, 3, 2); this.textOPISSMJENE.Margin = padding; size = new System.Drawing.Size(0x16e, 0x16); this.textOPISSMJENE.MinimumSize = size; size = new System.Drawing.Size(0x16e, 0x16); this.textOPISSMJENE.Size = size; point = new System.Drawing.Point(0, 0); this.label1POCETAK.Location = point; this.label1POCETAK.Name = "label1POCETAK"; this.label1POCETAK.TabIndex = 1; this.label1POCETAK.Tag = "labelPOCETAK"; this.label1POCETAK.Text = "Početak rada:"; this.label1POCETAK.StyleSetName = "FieldUltraLabel"; this.label1POCETAK.AutoSize = true; this.label1POCETAK.Anchor = AnchorStyles.Left | AnchorStyles.Top; this.label1POCETAK.Appearance.TextVAlign = VAlign.Middle; this.label1POCETAK.Appearance.ForeColor = Color.Black; this.label1POCETAK.BackColor = Color.Transparent; this.layoutManagerformSMJENE.Controls.Add(this.label1POCETAK, 0, 2); this.layoutManagerformSMJENE.SetColumnSpan(this.label1POCETAK, 1); this.layoutManagerformSMJENE.SetRowSpan(this.label1POCETAK, 1); padding = new Padding(3, 1, 5, 2); this.label1POCETAK.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1POCETAK.MinimumSize = size; size = new System.Drawing.Size(100, 0x17); this.label1POCETAK.Size = size; point = new System.Drawing.Point(0, 0); this.textPOCETAK.Location = point; this.textPOCETAK.Name = "textPOCETAK"; this.textPOCETAK.Tag = "POCETAK"; this.textPOCETAK.TabIndex = 0; this.textPOCETAK.Anchor = AnchorStyles.Left; this.textPOCETAK.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textPOCETAK.ReadOnly = false; this.textPOCETAK.DataBindings.Add(new Binding("Text", this.bindingSourceSMJENE, "POCETAK")); this.textPOCETAK.Multiline = true; this.layoutManagerformSMJENE.Controls.Add(this.textPOCETAK, 1, 2); this.layoutManagerformSMJENE.SetColumnSpan(this.textPOCETAK, 1); this.layoutManagerformSMJENE.SetRowSpan(this.textPOCETAK, 1); padding = new Padding(0, 1, 3, 2); this.textPOCETAK.Margin = padding; size = new System.Drawing.Size(0x240, 0x58); this.textPOCETAK.MinimumSize = size; size = new System.Drawing.Size(0x240, 0x58); this.textPOCETAK.Size = size; this.textPOCETAK.Dock = DockStyle.Fill; point = new System.Drawing.Point(0, 0); this.label1ZAVRSETAK.Location = point; this.label1ZAVRSETAK.Name = "label1ZAVRSETAK"; this.label1ZAVRSETAK.TabIndex = 1; this.label1ZAVRSETAK.Tag = "labelZAVRSETAK"; this.label1ZAVRSETAK.Text = "Završetak rada:"; this.label1ZAVRSETAK.StyleSetName = "FieldUltraLabel"; this.label1ZAVRSETAK.AutoSize = true; this.label1ZAVRSETAK.Anchor = AnchorStyles.Left | AnchorStyles.Top; this.label1ZAVRSETAK.Appearance.TextVAlign = VAlign.Middle; this.label1ZAVRSETAK.Appearance.ForeColor = Color.Black; this.label1ZAVRSETAK.BackColor = Color.Transparent; this.layoutManagerformSMJENE.Controls.Add(this.label1ZAVRSETAK, 0, 3); this.layoutManagerformSMJENE.SetColumnSpan(this.label1ZAVRSETAK, 1); this.layoutManagerformSMJENE.SetRowSpan(this.label1ZAVRSETAK, 1); padding = new Padding(3, 1, 5, 2); this.label1ZAVRSETAK.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1ZAVRSETAK.MinimumSize = size; size = new System.Drawing.Size(0x70, 0x17); this.label1ZAVRSETAK.Size = size; point = new System.Drawing.Point(0, 0); this.textZAVRSETAK.Location = point; this.textZAVRSETAK.Name = "textZAVRSETAK"; this.textZAVRSETAK.Tag = "ZAVRSETAK"; this.textZAVRSETAK.TabIndex = 0; this.textZAVRSETAK.Anchor = AnchorStyles.Left; this.textZAVRSETAK.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textZAVRSETAK.ReadOnly = false; this.textZAVRSETAK.DataBindings.Add(new Binding("Text", this.bindingSourceSMJENE, "ZAVRSETAK")); this.textZAVRSETAK.Multiline = true; this.layoutManagerformSMJENE.Controls.Add(this.textZAVRSETAK, 1, 3); this.layoutManagerformSMJENE.SetColumnSpan(this.textZAVRSETAK, 1); this.layoutManagerformSMJENE.SetRowSpan(this.textZAVRSETAK, 1); padding = new Padding(0, 1, 3, 2); this.textZAVRSETAK.Margin = padding; size = new System.Drawing.Size(0x240, 0x58); this.textZAVRSETAK.MinimumSize = size; size = new System.Drawing.Size(0x240, 0x58); this.textZAVRSETAK.Size = size; this.textZAVRSETAK.Dock = DockStyle.Fill; this.Controls.Add(this.layoutManagerformSMJENE); 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.bindingSourceSMJENE; this.errorProviderValidator1.ErrorProvider = this.errorProvider1; this.Name = "SMJENEFormUserControl"; this.Text = "SMJENE"; this.AutoSize = true; this.AutoScroll = true; this.Load += new EventHandler(this.SMJENEFormUserControl_Load); this.layoutManagerformSMJENE.ResumeLayout(false); this.layoutManagerformSMJENE.PerformLayout(); ((ISupportInitialize)this.bindingSourceSMJENE).EndInit(); ((ISupportInitialize)this.textIDSMJENE).EndInit(); ((ISupportInitialize)this.textOPISSMJENE).EndInit(); ((ISupportInitialize)this.textPOCETAK).EndInit(); ((ISupportInitialize)this.textZAVRSETAK).EndInit(); this.dsSMJENEDataSet1.EndInit(); this.ResumeLayout(false); this.PerformLayout(); }