public virtual void Fill() { this.PreFill(); this.dsZATVARANJADataSet1 = new ZATVARANJADataSet(); this.m_StartRow = 0; this.Cursor = Cursors.WaitCursor; this.m_GridLoading = true; ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal); }
private void InitializeComponent() { this.components = new Container(); ResourceManager manager = new ResourceManager(typeof(ZATVARANJAFormUserControl)); 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.bindingSourceZATVARANJA = new BindingSource(this.components); ((ISupportInitialize)this.bindingSourceZATVARANJA).BeginInit(); this.layoutManagerformZATVARANJA = new TableLayoutPanel(); this.layoutManagerformZATVARANJA.SuspendLayout(); this.layoutManagerformZATVARANJA.AutoSize = true; this.layoutManagerformZATVARANJA.Dock = DockStyle.Fill; this.layoutManagerformZATVARANJA.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.layoutManagerformZATVARANJA.AutoScroll = false; System.Drawing.Point point = new System.Drawing.Point(0, 0); this.layoutManagerformZATVARANJA.Location = point; Size size = new System.Drawing.Size(0, 0); this.layoutManagerformZATVARANJA.Size = size; this.layoutManagerformZATVARANJA.ColumnCount = 2; this.layoutManagerformZATVARANJA.RowCount = 4; this.layoutManagerformZATVARANJA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformZATVARANJA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformZATVARANJA.RowStyles.Add(new RowStyle()); this.layoutManagerformZATVARANJA.RowStyles.Add(new RowStyle()); this.layoutManagerformZATVARANJA.RowStyles.Add(new RowStyle()); this.layoutManagerformZATVARANJA.RowStyles.Add(new RowStyle()); this.label1GK1IDGKSTAVKA = new UltraLabel(); this.textGK1IDGKSTAVKA = new UltraNumericEditor(); this.label1GK2IDGKSTAVKA = new UltraLabel(); this.textGK2IDGKSTAVKA = new UltraNumericEditor(); this.label1ZATVARANJAIZNOS = new UltraLabel(); this.textZATVARANJAIZNOS = new UltraNumericEditor(); ((ISupportInitialize)this.textGK1IDGKSTAVKA).BeginInit(); ((ISupportInitialize)this.textGK2IDGKSTAVKA).BeginInit(); ((ISupportInitialize)this.textZATVARANJAIZNOS).BeginInit(); this.dsZATVARANJADataSet1 = new ZATVARANJADataSet(); this.dsZATVARANJADataSet1.BeginInit(); this.SuspendLayout(); this.dsZATVARANJADataSet1.DataSetName = "dsZATVARANJA"; this.dsZATVARANJADataSet1.Locale = new CultureInfo("hr-HR"); this.bindingSourceZATVARANJA.DataSource = this.dsZATVARANJADataSet1; this.bindingSourceZATVARANJA.DataMember = "ZATVARANJA"; ((ISupportInitialize)this.bindingSourceZATVARANJA).BeginInit(); point = new System.Drawing.Point(0, 0); this.label1GK1IDGKSTAVKA.Location = point; this.label1GK1IDGKSTAVKA.Name = "label1GK1IDGKSTAVKA"; this.label1GK1IDGKSTAVKA.TabIndex = 1; this.label1GK1IDGKSTAVKA.Tag = "labelGK1IDGKSTAVKA"; this.label1GK1IDGKSTAVKA.Text = "IDGKSTAVKA:"; this.label1GK1IDGKSTAVKA.StyleSetName = "FieldUltraLabel"; this.label1GK1IDGKSTAVKA.AutoSize = true; this.label1GK1IDGKSTAVKA.Anchor = AnchorStyles.Left; this.label1GK1IDGKSTAVKA.Appearance.TextVAlign = VAlign.Middle; this.label1GK1IDGKSTAVKA.Appearance.Image = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image")); this.label1GK1IDGKSTAVKA.Appearance.ImageHAlign = HAlign.Right; size = new System.Drawing.Size(7, 10); this.label1GK1IDGKSTAVKA.ImageSize = size; this.label1GK1IDGKSTAVKA.Appearance.ForeColor = Color.Black; this.label1GK1IDGKSTAVKA.BackColor = Color.Transparent; this.layoutManagerformZATVARANJA.Controls.Add(this.label1GK1IDGKSTAVKA, 0, 0); this.layoutManagerformZATVARANJA.SetColumnSpan(this.label1GK1IDGKSTAVKA, 1); this.layoutManagerformZATVARANJA.SetRowSpan(this.label1GK1IDGKSTAVKA, 1); Padding padding = new Padding(3, 1, 5, 2); this.label1GK1IDGKSTAVKA.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1GK1IDGKSTAVKA.MinimumSize = size; size = new System.Drawing.Size(0x62, 0x17); this.label1GK1IDGKSTAVKA.Size = size; point = new System.Drawing.Point(0, 0); this.textGK1IDGKSTAVKA.Location = point; this.textGK1IDGKSTAVKA.Name = "textGK1IDGKSTAVKA"; this.textGK1IDGKSTAVKA.Tag = "GK1IDGKSTAVKA"; this.textGK1IDGKSTAVKA.TabIndex = 0; this.textGK1IDGKSTAVKA.Anchor = AnchorStyles.Left; this.textGK1IDGKSTAVKA.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textGK1IDGKSTAVKA.ReadOnly = false; this.textGK1IDGKSTAVKA.PromptChar = ' '; this.textGK1IDGKSTAVKA.Enter += new EventHandler(this.numericEditor_Enter); this.textGK1IDGKSTAVKA.DataBindings.Add(new Binding("Value", this.bindingSourceZATVARANJA, "GK1IDGKSTAVKA")); this.textGK1IDGKSTAVKA.NumericType = NumericType.Integer; this.textGK1IDGKSTAVKA.MaskInput = "{LOC}-nnnnn"; EditorButton button = new EditorButton { Key = "editorButtonGKSTAVKAGK1IDGKSTAVKA", Tag = "editorButtonGKSTAVKAGK1IDGKSTAVKA", Text = "..." }; this.textGK1IDGKSTAVKA.ButtonsRight.Add(button); this.textGK1IDGKSTAVKA.EditorButtonClick += new EditorButtonEventHandler(this.CallPromptGKSTAVKAGK1IDGKSTAVKA); this.layoutManagerformZATVARANJA.Controls.Add(this.textGK1IDGKSTAVKA, 1, 0); this.layoutManagerformZATVARANJA.SetColumnSpan(this.textGK1IDGKSTAVKA, 1); this.layoutManagerformZATVARANJA.SetRowSpan(this.textGK1IDGKSTAVKA, 1); padding = new Padding(0, 1, 3, 2); this.textGK1IDGKSTAVKA.Margin = padding; size = new System.Drawing.Size(0x47, 0x16); this.textGK1IDGKSTAVKA.MinimumSize = size; size = new System.Drawing.Size(0x47, 0x16); this.textGK1IDGKSTAVKA.Size = size; point = new System.Drawing.Point(0, 0); this.label1GK2IDGKSTAVKA.Location = point; this.label1GK2IDGKSTAVKA.Name = "label1GK2IDGKSTAVKA"; this.label1GK2IDGKSTAVKA.TabIndex = 1; this.label1GK2IDGKSTAVKA.Tag = "labelGK2IDGKSTAVKA"; this.label1GK2IDGKSTAVKA.Text = "IDGKSTAVKA:"; this.label1GK2IDGKSTAVKA.StyleSetName = "FieldUltraLabel"; this.label1GK2IDGKSTAVKA.AutoSize = true; this.label1GK2IDGKSTAVKA.Anchor = AnchorStyles.Left; this.label1GK2IDGKSTAVKA.Appearance.TextVAlign = VAlign.Middle; this.label1GK2IDGKSTAVKA.Appearance.Image = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image")); this.label1GK2IDGKSTAVKA.Appearance.ImageHAlign = HAlign.Right; size = new System.Drawing.Size(7, 10); this.label1GK2IDGKSTAVKA.ImageSize = size; this.label1GK2IDGKSTAVKA.Appearance.ForeColor = Color.Black; this.label1GK2IDGKSTAVKA.BackColor = Color.Transparent; this.layoutManagerformZATVARANJA.Controls.Add(this.label1GK2IDGKSTAVKA, 0, 1); this.layoutManagerformZATVARANJA.SetColumnSpan(this.label1GK2IDGKSTAVKA, 1); this.layoutManagerformZATVARANJA.SetRowSpan(this.label1GK2IDGKSTAVKA, 1); padding = new Padding(3, 1, 5, 2); this.label1GK2IDGKSTAVKA.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1GK2IDGKSTAVKA.MinimumSize = size; size = new System.Drawing.Size(0x62, 0x17); this.label1GK2IDGKSTAVKA.Size = size; point = new System.Drawing.Point(0, 0); this.textGK2IDGKSTAVKA.Location = point; this.textGK2IDGKSTAVKA.Name = "textGK2IDGKSTAVKA"; this.textGK2IDGKSTAVKA.Tag = "GK2IDGKSTAVKA"; this.textGK2IDGKSTAVKA.TabIndex = 0; this.textGK2IDGKSTAVKA.Anchor = AnchorStyles.Left; this.textGK2IDGKSTAVKA.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textGK2IDGKSTAVKA.ReadOnly = false; this.textGK2IDGKSTAVKA.PromptChar = ' '; this.textGK2IDGKSTAVKA.Enter += new EventHandler(this.numericEditor_Enter); this.textGK2IDGKSTAVKA.DataBindings.Add(new Binding("Value", this.bindingSourceZATVARANJA, "GK2IDGKSTAVKA")); this.textGK2IDGKSTAVKA.NumericType = NumericType.Integer; this.textGK2IDGKSTAVKA.MaskInput = "{LOC}-nnnnn"; EditorButton button2 = new EditorButton { Key = "editorButtonGKSTAVKAGK2IDGKSTAVKA", Tag = "editorButtonGKSTAVKAGK2IDGKSTAVKA", Text = "..." }; this.textGK2IDGKSTAVKA.ButtonsRight.Add(button2); this.textGK2IDGKSTAVKA.EditorButtonClick += new EditorButtonEventHandler(this.CallPromptGKSTAVKAGK2IDGKSTAVKA); this.layoutManagerformZATVARANJA.Controls.Add(this.textGK2IDGKSTAVKA, 1, 1); this.layoutManagerformZATVARANJA.SetColumnSpan(this.textGK2IDGKSTAVKA, 1); this.layoutManagerformZATVARANJA.SetRowSpan(this.textGK2IDGKSTAVKA, 1); padding = new Padding(0, 1, 3, 2); this.textGK2IDGKSTAVKA.Margin = padding; size = new System.Drawing.Size(0x47, 0x16); this.textGK2IDGKSTAVKA.MinimumSize = size; size = new System.Drawing.Size(0x47, 0x16); this.textGK2IDGKSTAVKA.Size = size; point = new System.Drawing.Point(0, 0); this.label1ZATVARANJAIZNOS.Location = point; this.label1ZATVARANJAIZNOS.Name = "label1ZATVARANJAIZNOS"; this.label1ZATVARANJAIZNOS.TabIndex = 1; this.label1ZATVARANJAIZNOS.Tag = "labelZATVARANJAIZNOS"; this.label1ZATVARANJAIZNOS.Text = "ZATVARANJAIZNOS:"; this.label1ZATVARANJAIZNOS.StyleSetName = "FieldUltraLabel"; this.label1ZATVARANJAIZNOS.AutoSize = true; this.label1ZATVARANJAIZNOS.Anchor = AnchorStyles.Left; this.label1ZATVARANJAIZNOS.Appearance.TextVAlign = VAlign.Middle; this.label1ZATVARANJAIZNOS.Appearance.ForeColor = Color.Black; this.label1ZATVARANJAIZNOS.BackColor = Color.Transparent; this.layoutManagerformZATVARANJA.Controls.Add(this.label1ZATVARANJAIZNOS, 0, 2); this.layoutManagerformZATVARANJA.SetColumnSpan(this.label1ZATVARANJAIZNOS, 1); this.layoutManagerformZATVARANJA.SetRowSpan(this.label1ZATVARANJAIZNOS, 1); padding = new Padding(3, 1, 5, 2); this.label1ZATVARANJAIZNOS.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1ZATVARANJAIZNOS.MinimumSize = size; size = new System.Drawing.Size(0x8e, 0x17); this.label1ZATVARANJAIZNOS.Size = size; point = new System.Drawing.Point(0, 0); this.textZATVARANJAIZNOS.Location = point; this.textZATVARANJAIZNOS.Name = "textZATVARANJAIZNOS"; this.textZATVARANJAIZNOS.Tag = "ZATVARANJAIZNOS"; this.textZATVARANJAIZNOS.TabIndex = 0; this.textZATVARANJAIZNOS.Anchor = AnchorStyles.Left; this.textZATVARANJAIZNOS.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textZATVARANJAIZNOS.ReadOnly = false; this.textZATVARANJAIZNOS.PromptChar = ' '; this.textZATVARANJAIZNOS.Enter += new EventHandler(this.numericEditor_Enter); this.textZATVARANJAIZNOS.DataBindings.Add(new Binding("Value", this.bindingSourceZATVARANJA, "ZATVARANJAIZNOS")); this.textZATVARANJAIZNOS.NumericType = NumericType.Double; this.textZATVARANJAIZNOS.MaxValue = 79228162514264337593543950335M; this.textZATVARANJAIZNOS.MinValue = -79228162514264337593543950335M; this.textZATVARANJAIZNOS.MaskInput = "{LOC}-nnnnnnnnnn.nn"; this.layoutManagerformZATVARANJA.Controls.Add(this.textZATVARANJAIZNOS, 1, 2); this.layoutManagerformZATVARANJA.SetColumnSpan(this.textZATVARANJAIZNOS, 1); this.layoutManagerformZATVARANJA.SetRowSpan(this.textZATVARANJAIZNOS, 1); padding = new Padding(0, 1, 3, 2); this.textZATVARANJAIZNOS.Margin = padding; size = new System.Drawing.Size(0x66, 0x16); this.textZATVARANJAIZNOS.MinimumSize = size; size = new System.Drawing.Size(0x66, 0x16); this.textZATVARANJAIZNOS.Size = size; this.Controls.Add(this.layoutManagerformZATVARANJA); 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.bindingSourceZATVARANJA; this.errorProviderValidator1.ErrorProvider = this.errorProvider1; this.Name = "ZATVARANJAFormUserControl"; this.Text = "ZATVARANJA"; this.AutoSize = true; this.AutoScroll = true; this.Load += new EventHandler(this.ZATVARANJAFormUserControl_Load); this.layoutManagerformZATVARANJA.ResumeLayout(false); this.layoutManagerformZATVARANJA.PerformLayout(); ((ISupportInitialize)this.bindingSourceZATVARANJA).EndInit(); ((ISupportInitialize)this.textGK1IDGKSTAVKA).EndInit(); ((ISupportInitialize)this.textGK2IDGKSTAVKA).EndInit(); ((ISupportInitialize)this.textZATVARANJAIZNOS).EndInit(); this.dsZATVARANJADataSet1.EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
public void ChangeBinding() { this.bindingSourceZATVARANJA.DataSource = this.ZATVARANJAController.DataSet; this.dsZATVARANJADataSet1 = this.ZATVARANJAController.DataSet; }