Ejemplo n.º 1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsTIPDOKUMENTADataSet1 = new TIPDOKUMENTADataSet();
     this.m_StartRow             = 0;
     this.Cursor        = Cursors.WaitCursor;
     this.m_GridLoading = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }
 public void ChangeBinding()
 {
     this.bindingSourceTIPDOKUMENTA.DataSource = this.TIPDOKUMENTAController.DataSet;
     this.dsTIPDOKUMENTADataSet1 = this.TIPDOKUMENTAController.DataSet;
 }
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(TIPDOKUMENTAFormUserControl));

            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.bindingSourceTIPDOKUMENTA = new BindingSource(this.components);
            ((ISupportInitialize)this.bindingSourceTIPDOKUMENTA).BeginInit();
            this.layoutManagerformTIPDOKUMENTA = new TableLayoutPanel();
            this.layoutManagerformTIPDOKUMENTA.SuspendLayout();
            this.layoutManagerformTIPDOKUMENTA.AutoSize     = true;
            this.layoutManagerformTIPDOKUMENTA.Dock         = DockStyle.Fill;
            this.layoutManagerformTIPDOKUMENTA.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            this.layoutManagerformTIPDOKUMENTA.AutoScroll   = false;
            System.Drawing.Point point = new System.Drawing.Point(0, 0);
            this.layoutManagerformTIPDOKUMENTA.Location = point;
            Size size = new System.Drawing.Size(0, 0);

            this.layoutManagerformTIPDOKUMENTA.Size        = size;
            this.layoutManagerformTIPDOKUMENTA.ColumnCount = 2;
            this.layoutManagerformTIPDOKUMENTA.RowCount    = 3;
            this.layoutManagerformTIPDOKUMENTA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformTIPDOKUMENTA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformTIPDOKUMENTA.RowStyles.Add(new RowStyle());
            this.layoutManagerformTIPDOKUMENTA.RowStyles.Add(new RowStyle());
            this.layoutManagerformTIPDOKUMENTA.RowStyles.Add(new RowStyle());
            this.label1IDTIPDOKUMENTA    = new UltraLabel();
            this.textIDTIPDOKUMENTA      = new UltraNumericEditor();
            this.label1NAZIVTIPDOKUMENTA = new UltraLabel();
            this.textNAZIVTIPDOKUMENTA   = new UltraTextEditor();
            ((ISupportInitialize)this.textIDTIPDOKUMENTA).BeginInit();
            ((ISupportInitialize)this.textNAZIVTIPDOKUMENTA).BeginInit();
            this.dsTIPDOKUMENTADataSet1 = new TIPDOKUMENTADataSet();
            this.dsTIPDOKUMENTADataSet1.BeginInit();
            this.SuspendLayout();
            this.dsTIPDOKUMENTADataSet1.DataSetName   = "dsTIPDOKUMENTA";
            this.dsTIPDOKUMENTADataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceTIPDOKUMENTA.DataSource = this.dsTIPDOKUMENTADataSet1;
            this.bindingSourceTIPDOKUMENTA.DataMember = "TIPDOKUMENTA";
            ((ISupportInitialize)this.bindingSourceTIPDOKUMENTA).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDTIPDOKUMENTA.Location               = point;
            this.label1IDTIPDOKUMENTA.Name                   = "label1IDTIPDOKUMENTA";
            this.label1IDTIPDOKUMENTA.TabIndex               = 1;
            this.label1IDTIPDOKUMENTA.Tag                    = "labelIDTIPDOKUMENTA";
            this.label1IDTIPDOKUMENTA.Text                   = "Šifr. tipa dok.:";
            this.label1IDTIPDOKUMENTA.StyleSetName           = "FieldUltraLabel";
            this.label1IDTIPDOKUMENTA.AutoSize               = true;
            this.label1IDTIPDOKUMENTA.Anchor                 = AnchorStyles.Left;
            this.label1IDTIPDOKUMENTA.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDTIPDOKUMENTA.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDTIPDOKUMENTA.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDTIPDOKUMENTA.ImageSize            = size;
            this.label1IDTIPDOKUMENTA.Appearance.ForeColor = Color.Black;
            this.label1IDTIPDOKUMENTA.BackColor            = Color.Transparent;
            this.layoutManagerformTIPDOKUMENTA.Controls.Add(this.label1IDTIPDOKUMENTA, 0, 0);
            this.layoutManagerformTIPDOKUMENTA.SetColumnSpan(this.label1IDTIPDOKUMENTA, 1);
            this.layoutManagerformTIPDOKUMENTA.SetRowSpan(this.label1IDTIPDOKUMENTA, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDTIPDOKUMENTA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDTIPDOKUMENTA.MinimumSize = size;
            size = new System.Drawing.Size(100, 0x17);
            this.label1IDTIPDOKUMENTA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDTIPDOKUMENTA.Location    = point;
            this.textIDTIPDOKUMENTA.Name        = "textIDTIPDOKUMENTA";
            this.textIDTIPDOKUMENTA.Tag         = "IDTIPDOKUMENTA";
            this.textIDTIPDOKUMENTA.TabIndex    = 0;
            this.textIDTIPDOKUMENTA.Anchor      = AnchorStyles.Left;
            this.textIDTIPDOKUMENTA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDTIPDOKUMENTA.ReadOnly    = false;
            this.textIDTIPDOKUMENTA.PromptChar  = ' ';
            this.textIDTIPDOKUMENTA.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDTIPDOKUMENTA.DataBindings.Add(new Binding("Value", this.bindingSourceTIPDOKUMENTA, "IDTIPDOKUMENTA"));
            this.textIDTIPDOKUMENTA.NumericType = NumericType.Integer;
            this.textIDTIPDOKUMENTA.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformTIPDOKUMENTA.Controls.Add(this.textIDTIPDOKUMENTA, 1, 0);
            this.layoutManagerformTIPDOKUMENTA.SetColumnSpan(this.textIDTIPDOKUMENTA, 1);
            this.layoutManagerformTIPDOKUMENTA.SetRowSpan(this.textIDTIPDOKUMENTA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDTIPDOKUMENTA.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDTIPDOKUMENTA.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDTIPDOKUMENTA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVTIPDOKUMENTA.Location              = point;
            this.label1NAZIVTIPDOKUMENTA.Name                  = "label1NAZIVTIPDOKUMENTA";
            this.label1NAZIVTIPDOKUMENTA.TabIndex              = 1;
            this.label1NAZIVTIPDOKUMENTA.Tag                   = "labelNAZIVTIPDOKUMENTA";
            this.label1NAZIVTIPDOKUMENTA.Text                  = "Tip dokumenta:";
            this.label1NAZIVTIPDOKUMENTA.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVTIPDOKUMENTA.AutoSize              = true;
            this.label1NAZIVTIPDOKUMENTA.Anchor                = AnchorStyles.Left;
            this.label1NAZIVTIPDOKUMENTA.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVTIPDOKUMENTA.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVTIPDOKUMENTA.BackColor             = Color.Transparent;
            this.layoutManagerformTIPDOKUMENTA.Controls.Add(this.label1NAZIVTIPDOKUMENTA, 0, 1);
            this.layoutManagerformTIPDOKUMENTA.SetColumnSpan(this.label1NAZIVTIPDOKUMENTA, 1);
            this.layoutManagerformTIPDOKUMENTA.SetRowSpan(this.label1NAZIVTIPDOKUMENTA, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVTIPDOKUMENTA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVTIPDOKUMENTA.MinimumSize = size;
            size = new System.Drawing.Size(0x70, 0x17);
            this.label1NAZIVTIPDOKUMENTA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVTIPDOKUMENTA.Location    = point;
            this.textNAZIVTIPDOKUMENTA.Name        = "textNAZIVTIPDOKUMENTA";
            this.textNAZIVTIPDOKUMENTA.Tag         = "NAZIVTIPDOKUMENTA";
            this.textNAZIVTIPDOKUMENTA.TabIndex    = 0;
            this.textNAZIVTIPDOKUMENTA.Anchor      = AnchorStyles.Left;
            this.textNAZIVTIPDOKUMENTA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVTIPDOKUMENTA.ReadOnly    = false;
            this.textNAZIVTIPDOKUMENTA.DataBindings.Add(new Binding("Text", this.bindingSourceTIPDOKUMENTA, "NAZIVTIPDOKUMENTA"));
            this.textNAZIVTIPDOKUMENTA.MaxLength = 50;
            this.layoutManagerformTIPDOKUMENTA.Controls.Add(this.textNAZIVTIPDOKUMENTA, 1, 1);
            this.layoutManagerformTIPDOKUMENTA.SetColumnSpan(this.textNAZIVTIPDOKUMENTA, 1);
            this.layoutManagerformTIPDOKUMENTA.SetRowSpan(this.textNAZIVTIPDOKUMENTA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVTIPDOKUMENTA.Margin = padding;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVTIPDOKUMENTA.MinimumSize = size;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVTIPDOKUMENTA.Size = size;
            this.Controls.Add(this.layoutManagerformTIPDOKUMENTA);
            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.bindingSourceTIPDOKUMENTA;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "TIPDOKUMENTAFormUserControl";
            this.Text       = "TIPDOKUMENTA";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.TIPDOKUMENTAFormUserControl_Load);
            this.layoutManagerformTIPDOKUMENTA.ResumeLayout(false);
            this.layoutManagerformTIPDOKUMENTA.PerformLayout();
            ((ISupportInitialize)this.bindingSourceTIPDOKUMENTA).EndInit();
            ((ISupportInitialize)this.textIDTIPDOKUMENTA).EndInit();
            ((ISupportInitialize)this.textNAZIVTIPDOKUMENTA).EndInit();
            this.dsTIPDOKUMENTADataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }