public virtual void Fill() { this.PreFill(); this.dsOSOBNIODBITAKDataSet1 = new OSOBNIODBITAKDataSet(); this.m_StartRow = 0; this.Cursor = Cursors.WaitCursor; this.m_GridLoading = true; ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal); }
public void ChangeBinding() { this.bindingSourceOSOBNIODBITAK.DataSource = this.OSOBNIODBITAKController.DataSet; this.dsOSOBNIODBITAKDataSet1 = this.OSOBNIODBITAKController.DataSet; }
private void InitializeComponent() { this.components = new Container(); ResourceManager manager = new ResourceManager(typeof(OSOBNIODBITAKFormUserControl)); 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.bindingSourceOSOBNIODBITAK = new BindingSource(this.components); ((ISupportInitialize)this.bindingSourceOSOBNIODBITAK).BeginInit(); this.layoutManagerformOSOBNIODBITAK = new TableLayoutPanel(); this.layoutManagerformOSOBNIODBITAK.SuspendLayout(); this.layoutManagerformOSOBNIODBITAK.AutoSize = true; this.layoutManagerformOSOBNIODBITAK.Dock = DockStyle.Fill; this.layoutManagerformOSOBNIODBITAK.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.layoutManagerformOSOBNIODBITAK.AutoScroll = false; System.Drawing.Point point = new System.Drawing.Point(0, 0); this.layoutManagerformOSOBNIODBITAK.Location = point; Size size = new System.Drawing.Size(0, 0); this.layoutManagerformOSOBNIODBITAK.Size = size; this.layoutManagerformOSOBNIODBITAK.ColumnCount = 2; this.layoutManagerformOSOBNIODBITAK.RowCount = 4; this.layoutManagerformOSOBNIODBITAK.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformOSOBNIODBITAK.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformOSOBNIODBITAK.RowStyles.Add(new RowStyle()); this.layoutManagerformOSOBNIODBITAK.RowStyles.Add(new RowStyle()); this.layoutManagerformOSOBNIODBITAK.RowStyles.Add(new RowStyle()); this.layoutManagerformOSOBNIODBITAK.RowStyles.Add(new RowStyle()); this.label1IDOSOBNIODBITAK = new UltraLabel(); this.textIDOSOBNIODBITAK = new UltraNumericEditor(); this.label1NAZIVOSOBNIODBITAK = new UltraLabel(); this.textNAZIVOSOBNIODBITAK = new UltraTextEditor(); this.label1FAKTOROSOBNOGODBITKA = new UltraLabel(); this.textFAKTOROSOBNOGODBITKA = new UltraNumericEditor(); ((ISupportInitialize)this.textIDOSOBNIODBITAK).BeginInit(); ((ISupportInitialize)this.textNAZIVOSOBNIODBITAK).BeginInit(); ((ISupportInitialize)this.textFAKTOROSOBNOGODBITKA).BeginInit(); this.dsOSOBNIODBITAKDataSet1 = new OSOBNIODBITAKDataSet(); this.dsOSOBNIODBITAKDataSet1.BeginInit(); this.SuspendLayout(); this.dsOSOBNIODBITAKDataSet1.DataSetName = "dsOSOBNIODBITAK"; this.dsOSOBNIODBITAKDataSet1.Locale = new CultureInfo("hr-HR"); this.bindingSourceOSOBNIODBITAK.DataSource = this.dsOSOBNIODBITAKDataSet1; this.bindingSourceOSOBNIODBITAK.DataMember = "OSOBNIODBITAK"; ((ISupportInitialize)this.bindingSourceOSOBNIODBITAK).BeginInit(); point = new System.Drawing.Point(0, 0); this.label1IDOSOBNIODBITAK.Location = point; this.label1IDOSOBNIODBITAK.Name = "label1IDOSOBNIODBITAK"; this.label1IDOSOBNIODBITAK.TabIndex = 1; this.label1IDOSOBNIODBITAK.Tag = "labelIDOSOBNIODBITAK"; this.label1IDOSOBNIODBITAK.Text = "Šifra osobnog odbitka:"; this.label1IDOSOBNIODBITAK.StyleSetName = "FieldUltraLabel"; this.label1IDOSOBNIODBITAK.AutoSize = true; this.label1IDOSOBNIODBITAK.Anchor = AnchorStyles.Left; this.label1IDOSOBNIODBITAK.Appearance.TextVAlign = VAlign.Middle; this.label1IDOSOBNIODBITAK.Appearance.Image = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image")); this.label1IDOSOBNIODBITAK.Appearance.ImageHAlign = HAlign.Right; size = new System.Drawing.Size(7, 10); this.label1IDOSOBNIODBITAK.ImageSize = size; this.label1IDOSOBNIODBITAK.Appearance.ForeColor = Color.Black; this.label1IDOSOBNIODBITAK.BackColor = Color.Transparent; this.layoutManagerformOSOBNIODBITAK.Controls.Add(this.label1IDOSOBNIODBITAK, 0, 0); this.layoutManagerformOSOBNIODBITAK.SetColumnSpan(this.label1IDOSOBNIODBITAK, 1); this.layoutManagerformOSOBNIODBITAK.SetRowSpan(this.label1IDOSOBNIODBITAK, 1); Padding padding = new Padding(3, 1, 5, 2); this.label1IDOSOBNIODBITAK.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1IDOSOBNIODBITAK.MinimumSize = size; size = new System.Drawing.Size(0x98, 0x17); this.label1IDOSOBNIODBITAK.Size = size; point = new System.Drawing.Point(0, 0); this.textIDOSOBNIODBITAK.Location = point; this.textIDOSOBNIODBITAK.Name = "textIDOSOBNIODBITAK"; this.textIDOSOBNIODBITAK.Tag = "IDOSOBNIODBITAK"; this.textIDOSOBNIODBITAK.TabIndex = 0; this.textIDOSOBNIODBITAK.Anchor = AnchorStyles.Left; this.textIDOSOBNIODBITAK.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textIDOSOBNIODBITAK.ReadOnly = false; this.textIDOSOBNIODBITAK.PromptChar = ' '; this.textIDOSOBNIODBITAK.Enter += new EventHandler(this.numericEditor_Enter); this.textIDOSOBNIODBITAK.DataBindings.Add(new Binding("Value", this.bindingSourceOSOBNIODBITAK, "IDOSOBNIODBITAK")); this.textIDOSOBNIODBITAK.NumericType = NumericType.Integer; this.textIDOSOBNIODBITAK.MaskInput = "{LOC}-nnnnn"; this.layoutManagerformOSOBNIODBITAK.Controls.Add(this.textIDOSOBNIODBITAK, 1, 0); this.layoutManagerformOSOBNIODBITAK.SetColumnSpan(this.textIDOSOBNIODBITAK, 1); this.layoutManagerformOSOBNIODBITAK.SetRowSpan(this.textIDOSOBNIODBITAK, 1); padding = new Padding(0, 1, 3, 2); this.textIDOSOBNIODBITAK.Margin = padding; size = new System.Drawing.Size(0x33, 0x16); this.textIDOSOBNIODBITAK.MinimumSize = size; size = new System.Drawing.Size(0x33, 0x16); this.textIDOSOBNIODBITAK.Size = size; point = new System.Drawing.Point(0, 0); this.label1NAZIVOSOBNIODBITAK.Location = point; this.label1NAZIVOSOBNIODBITAK.Name = "label1NAZIVOSOBNIODBITAK"; this.label1NAZIVOSOBNIODBITAK.TabIndex = 1; this.label1NAZIVOSOBNIODBITAK.Tag = "labelNAZIVOSOBNIODBITAK"; this.label1NAZIVOSOBNIODBITAK.Text = "Naziv osobnog odbitka:"; this.label1NAZIVOSOBNIODBITAK.StyleSetName = "FieldUltraLabel"; this.label1NAZIVOSOBNIODBITAK.AutoSize = true; this.label1NAZIVOSOBNIODBITAK.Anchor = AnchorStyles.Left; this.label1NAZIVOSOBNIODBITAK.Appearance.TextVAlign = VAlign.Middle; this.label1NAZIVOSOBNIODBITAK.Appearance.ForeColor = Color.Maroon; this.label1NAZIVOSOBNIODBITAK.BackColor = Color.Transparent; this.layoutManagerformOSOBNIODBITAK.Controls.Add(this.label1NAZIVOSOBNIODBITAK, 0, 1); this.layoutManagerformOSOBNIODBITAK.SetColumnSpan(this.label1NAZIVOSOBNIODBITAK, 1); this.layoutManagerformOSOBNIODBITAK.SetRowSpan(this.label1NAZIVOSOBNIODBITAK, 1); padding = new Padding(3, 1, 5, 2); this.label1NAZIVOSOBNIODBITAK.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1NAZIVOSOBNIODBITAK.MinimumSize = size; size = new System.Drawing.Size(160, 0x17); this.label1NAZIVOSOBNIODBITAK.Size = size; point = new System.Drawing.Point(0, 0); this.textNAZIVOSOBNIODBITAK.Location = point; this.textNAZIVOSOBNIODBITAK.Name = "textNAZIVOSOBNIODBITAK"; this.textNAZIVOSOBNIODBITAK.Tag = "NAZIVOSOBNIODBITAK"; this.textNAZIVOSOBNIODBITAK.TabIndex = 0; this.textNAZIVOSOBNIODBITAK.Anchor = AnchorStyles.Left; this.textNAZIVOSOBNIODBITAK.MouseEnter += new EventHandler(this.mouseEnter_Text); this.errorProviderValidator1.SetRequired(this.textNAZIVOSOBNIODBITAK, true); this.errorProviderValidator1.SetRequiredMessage(this.textNAZIVOSOBNIODBITAK, "Field Required "); this.textNAZIVOSOBNIODBITAK.ReadOnly = false; this.textNAZIVOSOBNIODBITAK.DataBindings.Add(new Binding("Text", this.bindingSourceOSOBNIODBITAK, "NAZIVOSOBNIODBITAK")); this.textNAZIVOSOBNIODBITAK.MaxLength = 100; this.layoutManagerformOSOBNIODBITAK.Controls.Add(this.textNAZIVOSOBNIODBITAK, 1, 1); this.layoutManagerformOSOBNIODBITAK.SetColumnSpan(this.textNAZIVOSOBNIODBITAK, 1); this.layoutManagerformOSOBNIODBITAK.SetRowSpan(this.textNAZIVOSOBNIODBITAK, 1); padding = new Padding(0, 1, 3, 2); this.textNAZIVOSOBNIODBITAK.Margin = padding; size = new System.Drawing.Size(0x240, 0x16); this.textNAZIVOSOBNIODBITAK.MinimumSize = size; size = new System.Drawing.Size(0x240, 0x16); this.textNAZIVOSOBNIODBITAK.Size = size; point = new System.Drawing.Point(0, 0); this.label1FAKTOROSOBNOGODBITKA.Location = point; this.label1FAKTOROSOBNOGODBITKA.Name = "label1FAKTOROSOBNOGODBITKA"; this.label1FAKTOROSOBNOGODBITKA.TabIndex = 1; this.label1FAKTOROSOBNOGODBITKA.Tag = "labelFAKTOROSOBNOGODBITKA"; this.label1FAKTOROSOBNOGODBITKA.Text = "Faktor osobnog odbitka:"; this.label1FAKTOROSOBNOGODBITKA.StyleSetName = "FieldUltraLabel"; this.label1FAKTOROSOBNOGODBITKA.AutoSize = true; this.label1FAKTOROSOBNOGODBITKA.Anchor = AnchorStyles.Left; this.label1FAKTOROSOBNOGODBITKA.Appearance.TextVAlign = VAlign.Middle; this.label1FAKTOROSOBNOGODBITKA.Appearance.ForeColor = Color.Black; this.label1FAKTOROSOBNOGODBITKA.BackColor = Color.Transparent; this.layoutManagerformOSOBNIODBITAK.Controls.Add(this.label1FAKTOROSOBNOGODBITKA, 0, 2); this.layoutManagerformOSOBNIODBITAK.SetColumnSpan(this.label1FAKTOROSOBNOGODBITKA, 1); this.layoutManagerformOSOBNIODBITAK.SetRowSpan(this.label1FAKTOROSOBNOGODBITKA, 1); padding = new Padding(3, 1, 5, 2); this.label1FAKTOROSOBNOGODBITKA.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1FAKTOROSOBNOGODBITKA.MinimumSize = size; size = new System.Drawing.Size(0xa6, 0x17); this.label1FAKTOROSOBNOGODBITKA.Size = size; point = new System.Drawing.Point(0, 0); this.textFAKTOROSOBNOGODBITKA.Location = point; this.textFAKTOROSOBNOGODBITKA.Name = "textFAKTOROSOBNOGODBITKA"; this.textFAKTOROSOBNOGODBITKA.Tag = "FAKTOROSOBNOGODBITKA"; this.textFAKTOROSOBNOGODBITKA.TabIndex = 0; this.textFAKTOROSOBNOGODBITKA.Anchor = AnchorStyles.Left; this.textFAKTOROSOBNOGODBITKA.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textFAKTOROSOBNOGODBITKA.ReadOnly = false; this.textFAKTOROSOBNOGODBITKA.PromptChar = ' '; this.textFAKTOROSOBNOGODBITKA.Enter += new EventHandler(this.numericEditor_Enter); this.textFAKTOROSOBNOGODBITKA.DataBindings.Add(new Binding("Value", this.bindingSourceOSOBNIODBITAK, "FAKTOROSOBNOGODBITKA")); this.textFAKTOROSOBNOGODBITKA.NumericType = NumericType.Double; this.textFAKTOROSOBNOGODBITKA.MaxValue = 79228162514264337593543950335M; this.textFAKTOROSOBNOGODBITKA.MinValue = -79228162514264337593543950335M; this.textFAKTOROSOBNOGODBITKA.MaskInput = "{LOC}-nnn.nn"; this.layoutManagerformOSOBNIODBITAK.Controls.Add(this.textFAKTOROSOBNOGODBITKA, 1, 2); this.layoutManagerformOSOBNIODBITAK.SetColumnSpan(this.textFAKTOROSOBNOGODBITKA, 1); this.layoutManagerformOSOBNIODBITAK.SetRowSpan(this.textFAKTOROSOBNOGODBITKA, 1); padding = new Padding(0, 1, 3, 2); this.textFAKTOROSOBNOGODBITKA.Margin = padding; size = new System.Drawing.Size(0x37, 0x16); this.textFAKTOROSOBNOGODBITKA.MinimumSize = size; size = new System.Drawing.Size(0x37, 0x16); this.textFAKTOROSOBNOGODBITKA.Size = size; this.Controls.Add(this.layoutManagerformOSOBNIODBITAK); 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.bindingSourceOSOBNIODBITAK; this.errorProviderValidator1.ErrorProvider = this.errorProvider1; this.Name = "OSOBNIODBITAKFormUserControl"; this.Text = "Faktori osobnog odbitka"; this.AutoSize = true; this.AutoScroll = true; this.Load += new EventHandler(this.OSOBNIODBITAKFormUserControl_Load); this.layoutManagerformOSOBNIODBITAK.ResumeLayout(false); this.layoutManagerformOSOBNIODBITAK.PerformLayout(); ((ISupportInitialize)this.bindingSourceOSOBNIODBITAK).EndInit(); ((ISupportInitialize)this.textIDOSOBNIODBITAK).EndInit(); ((ISupportInitialize)this.textNAZIVOSOBNIODBITAK).EndInit(); ((ISupportInitialize)this.textFAKTOROSOBNOGODBITKA).EndInit(); this.dsOSOBNIODBITAKDataSet1.EndInit(); this.ResumeLayout(false); this.PerformLayout(); }