public virtual void Fill() { this.PreFill(); this.dsVERZIJADataSet1 = new VERZIJADataSet(); this.m_StartRow = 0; this.Cursor = Cursors.WaitCursor; this.m_GridLoading = true; ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal); }
public void ChangeBinding() { this.bindingSourceVERZIJA.DataSource = this.VERZIJAController.DataSet; this.dsVERZIJADataSet1 = this.VERZIJAController.DataSet; }
private void InitializeComponent() { this.components = new Container(); ResourceManager manager = new ResourceManager(typeof(VERZIJAFormUserControl)); 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.bindingSourceVERZIJA = new BindingSource(this.components); ((ISupportInitialize)this.bindingSourceVERZIJA).BeginInit(); this.layoutManagerformVERZIJA = new TableLayoutPanel(); this.layoutManagerformVERZIJA.SuspendLayout(); this.layoutManagerformVERZIJA.AutoSize = true; this.layoutManagerformVERZIJA.Dock = DockStyle.Fill; this.layoutManagerformVERZIJA.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.layoutManagerformVERZIJA.AutoScroll = false; System.Drawing.Point point = new System.Drawing.Point(0, 0); this.layoutManagerformVERZIJA.Location = point; Size size = new System.Drawing.Size(0, 0); this.layoutManagerformVERZIJA.Size = size; this.layoutManagerformVERZIJA.ColumnCount = 2; this.layoutManagerformVERZIJA.RowCount = 3; this.layoutManagerformVERZIJA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformVERZIJA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformVERZIJA.RowStyles.Add(new RowStyle()); this.layoutManagerformVERZIJA.RowStyles.Add(new RowStyle()); this.layoutManagerformVERZIJA.RowStyles.Add(new RowStyle()); this.label1IDVERZIJA = new UltraLabel(); this.textIDVERZIJA = new UltraNumericEditor(); this.label1VERZIJA = new UltraLabel(); this.textVERZIJA = new UltraTextEditor(); ((ISupportInitialize)this.textIDVERZIJA).BeginInit(); ((ISupportInitialize)this.textVERZIJA).BeginInit(); this.dsVERZIJADataSet1 = new VERZIJADataSet(); this.dsVERZIJADataSet1.BeginInit(); this.SuspendLayout(); this.dsVERZIJADataSet1.DataSetName = "dsVERZIJA"; this.dsVERZIJADataSet1.Locale = new CultureInfo("hr-HR"); this.bindingSourceVERZIJA.DataSource = this.dsVERZIJADataSet1; this.bindingSourceVERZIJA.DataMember = "VERZIJA"; ((ISupportInitialize)this.bindingSourceVERZIJA).BeginInit(); point = new System.Drawing.Point(0, 0); this.label1IDVERZIJA.Location = point; this.label1IDVERZIJA.Name = "label1IDVERZIJA"; this.label1IDVERZIJA.TabIndex = 1; this.label1IDVERZIJA.Tag = "labelIDVERZIJA"; this.label1IDVERZIJA.Text = "IDVERZIJA:"; this.label1IDVERZIJA.StyleSetName = "FieldUltraLabel"; this.label1IDVERZIJA.AutoSize = true; this.label1IDVERZIJA.Anchor = AnchorStyles.Left; this.label1IDVERZIJA.Appearance.TextVAlign = VAlign.Middle; this.label1IDVERZIJA.Appearance.Image = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image")); this.label1IDVERZIJA.Appearance.ImageHAlign = HAlign.Right; size = new System.Drawing.Size(7, 10); this.label1IDVERZIJA.ImageSize = size; this.label1IDVERZIJA.Appearance.ForeColor = Color.Black; this.label1IDVERZIJA.BackColor = Color.Transparent; this.layoutManagerformVERZIJA.Controls.Add(this.label1IDVERZIJA, 0, 0); this.layoutManagerformVERZIJA.SetColumnSpan(this.label1IDVERZIJA, 1); this.layoutManagerformVERZIJA.SetRowSpan(this.label1IDVERZIJA, 1); Padding padding = new Padding(3, 1, 5, 2); this.label1IDVERZIJA.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1IDVERZIJA.MinimumSize = size; size = new System.Drawing.Size(0x55, 0x17); this.label1IDVERZIJA.Size = size; point = new System.Drawing.Point(0, 0); this.textIDVERZIJA.Location = point; this.textIDVERZIJA.Name = "textIDVERZIJA"; this.textIDVERZIJA.Tag = "IDVERZIJA"; this.textIDVERZIJA.TabIndex = 0; this.textIDVERZIJA.Anchor = AnchorStyles.Left; this.textIDVERZIJA.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textIDVERZIJA.ReadOnly = false; this.textIDVERZIJA.PromptChar = ' '; this.textIDVERZIJA.Enter += new EventHandler(this.numericEditor_Enter); this.textIDVERZIJA.DataBindings.Add(new Binding("Value", this.bindingSourceVERZIJA, "IDVERZIJA")); this.textIDVERZIJA.NumericType = NumericType.Integer; this.textIDVERZIJA.MaskInput = "{LOC}-nn"; this.layoutManagerformVERZIJA.Controls.Add(this.textIDVERZIJA, 1, 0); this.layoutManagerformVERZIJA.SetColumnSpan(this.textIDVERZIJA, 1); this.layoutManagerformVERZIJA.SetRowSpan(this.textIDVERZIJA, 1); padding = new Padding(0, 1, 3, 2); this.textIDVERZIJA.Margin = padding; size = new System.Drawing.Size(0x1f, 0x16); this.textIDVERZIJA.MinimumSize = size; size = new System.Drawing.Size(0x1f, 0x16); this.textIDVERZIJA.Size = size; point = new System.Drawing.Point(0, 0); this.label1VERZIJA.Location = point; this.label1VERZIJA.Name = "label1VERZIJA"; this.label1VERZIJA.TabIndex = 1; this.label1VERZIJA.Tag = "labelVERZIJA"; this.label1VERZIJA.Text = "VERZIJA:"; this.label1VERZIJA.StyleSetName = "FieldUltraLabel"; this.label1VERZIJA.AutoSize = true; this.label1VERZIJA.Anchor = AnchorStyles.Left; this.label1VERZIJA.Appearance.TextVAlign = VAlign.Middle; this.label1VERZIJA.Appearance.ForeColor = Color.Black; this.label1VERZIJA.BackColor = Color.Transparent; this.layoutManagerformVERZIJA.Controls.Add(this.label1VERZIJA, 0, 1); this.layoutManagerformVERZIJA.SetColumnSpan(this.label1VERZIJA, 1); this.layoutManagerformVERZIJA.SetRowSpan(this.label1VERZIJA, 1); padding = new Padding(3, 1, 5, 2); this.label1VERZIJA.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1VERZIJA.MinimumSize = size; size = new System.Drawing.Size(0x48, 0x17); this.label1VERZIJA.Size = size; point = new System.Drawing.Point(0, 0); this.textVERZIJA.Location = point; this.textVERZIJA.Name = "textVERZIJA"; this.textVERZIJA.Tag = "VERZIJA"; this.textVERZIJA.TabIndex = 0; this.textVERZIJA.Anchor = AnchorStyles.Left; this.textVERZIJA.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textVERZIJA.ReadOnly = false; this.textVERZIJA.DataBindings.Add(new Binding("Text", this.bindingSourceVERZIJA, "VERZIJA")); this.textVERZIJA.MaxLength = 20; this.layoutManagerformVERZIJA.Controls.Add(this.textVERZIJA, 1, 1); this.layoutManagerformVERZIJA.SetColumnSpan(this.textVERZIJA, 1); this.layoutManagerformVERZIJA.SetRowSpan(this.textVERZIJA, 1); padding = new Padding(0, 1, 3, 2); this.textVERZIJA.Margin = padding; size = new System.Drawing.Size(0x9c, 0x16); this.textVERZIJA.MinimumSize = size; size = new System.Drawing.Size(0x9c, 0x16); this.textVERZIJA.Size = size; this.Controls.Add(this.layoutManagerformVERZIJA); 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.bindingSourceVERZIJA; this.errorProviderValidator1.ErrorProvider = this.errorProvider1; this.Name = "VERZIJAFormUserControl"; this.Text = "VERZIJA"; this.AutoSize = true; this.AutoScroll = true; this.Load += new EventHandler(this.VERZIJAFormUserControl_Load); this.layoutManagerformVERZIJA.ResumeLayout(false); this.layoutManagerformVERZIJA.PerformLayout(); ((ISupportInitialize)this.bindingSourceVERZIJA).EndInit(); ((ISupportInitialize)this.textIDVERZIJA).EndInit(); ((ISupportInitialize)this.textVERZIJA).EndInit(); this.dsVERZIJADataSet1.EndInit(); this.ResumeLayout(false); this.PerformLayout(); }