Ejemplo n.º 1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsUGOVORORADUDataSet1 = new UGOVORORADUDataSet();
     this.m_StartRow            = 0;
     this.Cursor        = Cursors.WaitCursor;
     this.m_GridLoading = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }
Ejemplo n.º 2
0
 public void ChangeBinding()
 {
     this.bindingSourceUGOVORORADU.DataSource = this.UGOVORORADUController.DataSet;
     this.dsUGOVORORADUDataSet1 = this.UGOVORORADUController.DataSet;
 }
Ejemplo n.º 3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(UGOVORORADUFormUserControl));

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

            this.layoutManagerformUGOVORORADU.Size        = size;
            this.layoutManagerformUGOVORORADU.ColumnCount = 2;
            this.layoutManagerformUGOVORORADU.RowCount    = 3;
            this.layoutManagerformUGOVORORADU.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformUGOVORORADU.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformUGOVORORADU.RowStyles.Add(new RowStyle());
            this.layoutManagerformUGOVORORADU.RowStyles.Add(new RowStyle());
            this.layoutManagerformUGOVORORADU.RowStyles.Add(new RowStyle());
            this.label1IDUGOVORORADU    = new UltraLabel();
            this.textIDUGOVORORADU      = new UltraNumericEditor();
            this.label1NAZIVUGOVORORADU = new UltraLabel();
            this.textNAZIVUGOVORORADU   = new UltraTextEditor();
            ((ISupportInitialize)this.textIDUGOVORORADU).BeginInit();
            ((ISupportInitialize)this.textNAZIVUGOVORORADU).BeginInit();
            this.dsUGOVORORADUDataSet1 = new UGOVORORADUDataSet();
            this.dsUGOVORORADUDataSet1.BeginInit();
            this.SuspendLayout();
            this.dsUGOVORORADUDataSet1.DataSetName   = "dsUGOVORORADU";
            this.dsUGOVORORADUDataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceUGOVORORADU.DataSource = this.dsUGOVORORADUDataSet1;
            this.bindingSourceUGOVORORADU.DataMember = "UGOVORORADU";
            ((ISupportInitialize)this.bindingSourceUGOVORORADU).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDUGOVORORADU.Location               = point;
            this.label1IDUGOVORORADU.Name                   = "label1IDUGOVORORADU";
            this.label1IDUGOVORORADU.TabIndex               = 1;
            this.label1IDUGOVORORADU.Tag                    = "labelIDUGOVORORADU";
            this.label1IDUGOVORORADU.Text                   = "Šifra:";
            this.label1IDUGOVORORADU.StyleSetName           = "FieldUltraLabel";
            this.label1IDUGOVORORADU.AutoSize               = true;
            this.label1IDUGOVORORADU.Anchor                 = AnchorStyles.Left;
            this.label1IDUGOVORORADU.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDUGOVORORADU.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDUGOVORORADU.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDUGOVORORADU.ImageSize            = size;
            this.label1IDUGOVORORADU.Appearance.ForeColor = Color.Black;
            this.label1IDUGOVORORADU.BackColor            = Color.Transparent;
            this.layoutManagerformUGOVORORADU.Controls.Add(this.label1IDUGOVORORADU, 0, 0);
            this.layoutManagerformUGOVORORADU.SetColumnSpan(this.label1IDUGOVORORADU, 1);
            this.layoutManagerformUGOVORORADU.SetRowSpan(this.label1IDUGOVORORADU, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDUGOVORORADU.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDUGOVORORADU.MinimumSize = size;
            size = new System.Drawing.Size(0x2d, 0x17);
            this.label1IDUGOVORORADU.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDUGOVORORADU.Location    = point;
            this.textIDUGOVORORADU.Name        = "textIDUGOVORORADU";
            this.textIDUGOVORORADU.Tag         = "IDUGOVORORADU";
            this.textIDUGOVORORADU.TabIndex    = 0;
            this.textIDUGOVORORADU.Anchor      = AnchorStyles.Left;
            this.textIDUGOVORORADU.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDUGOVORORADU.ReadOnly    = false;
            this.textIDUGOVORORADU.PromptChar  = ' ';
            this.textIDUGOVORORADU.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDUGOVORORADU.DataBindings.Add(new Binding("Value", this.bindingSourceUGOVORORADU, "IDUGOVORORADU"));
            this.textIDUGOVORORADU.NumericType = NumericType.Integer;
            this.textIDUGOVORORADU.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformUGOVORORADU.Controls.Add(this.textIDUGOVORORADU, 1, 0);
            this.layoutManagerformUGOVORORADU.SetColumnSpan(this.textIDUGOVORORADU, 1);
            this.layoutManagerformUGOVORORADU.SetRowSpan(this.textIDUGOVORORADU, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDUGOVORORADU.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDUGOVORORADU.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDUGOVORORADU.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVUGOVORORADU.Location              = point;
            this.label1NAZIVUGOVORORADU.Name                  = "label1NAZIVUGOVORORADU";
            this.label1NAZIVUGOVORORADU.TabIndex              = 1;
            this.label1NAZIVUGOVORORADU.Tag                   = "labelNAZIVUGOVORORADU";
            this.label1NAZIVUGOVORORADU.Text                  = "Vrsta ugovora:";
            this.label1NAZIVUGOVORORADU.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVUGOVORORADU.AutoSize              = true;
            this.label1NAZIVUGOVORORADU.Anchor                = AnchorStyles.Left;
            this.label1NAZIVUGOVORORADU.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVUGOVORORADU.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVUGOVORORADU.BackColor             = Color.Transparent;
            this.layoutManagerformUGOVORORADU.Controls.Add(this.label1NAZIVUGOVORORADU, 0, 1);
            this.layoutManagerformUGOVORORADU.SetColumnSpan(this.label1NAZIVUGOVORORADU, 1);
            this.layoutManagerformUGOVORORADU.SetRowSpan(this.label1NAZIVUGOVORORADU, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVUGOVORORADU.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVUGOVORORADU.MinimumSize = size;
            size = new System.Drawing.Size(0x6a, 0x17);
            this.label1NAZIVUGOVORORADU.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVUGOVORORADU.Location    = point;
            this.textNAZIVUGOVORORADU.Name        = "textNAZIVUGOVORORADU";
            this.textNAZIVUGOVORORADU.Tag         = "NAZIVUGOVORORADU";
            this.textNAZIVUGOVORORADU.TabIndex    = 0;
            this.textNAZIVUGOVORORADU.Anchor      = AnchorStyles.Left;
            this.textNAZIVUGOVORORADU.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVUGOVORORADU.ReadOnly    = false;
            this.textNAZIVUGOVORORADU.DataBindings.Add(new Binding("Text", this.bindingSourceUGOVORORADU, "NAZIVUGOVORORADU"));
            this.textNAZIVUGOVORORADU.MaxLength = 20;
            this.layoutManagerformUGOVORORADU.Controls.Add(this.textNAZIVUGOVORORADU, 1, 1);
            this.layoutManagerformUGOVORORADU.SetColumnSpan(this.textNAZIVUGOVORORADU, 1);
            this.layoutManagerformUGOVORORADU.SetRowSpan(this.textNAZIVUGOVORORADU, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVUGOVORORADU.Margin = padding;
            size = new System.Drawing.Size(0x9c, 0x16);
            this.textNAZIVUGOVORORADU.MinimumSize = size;
            size = new System.Drawing.Size(0x9c, 0x16);
            this.textNAZIVUGOVORORADU.Size = size;
            this.Controls.Add(this.layoutManagerformUGOVORORADU);
            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.bindingSourceUGOVORORADU;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "UGOVORORADUFormUserControl";
            this.Text       = "Vrste ugovora o radu";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.UGOVORORADUFormUserControl_Load);
            this.layoutManagerformUGOVORORADU.ResumeLayout(false);
            this.layoutManagerformUGOVORORADU.PerformLayout();
            ((ISupportInitialize)this.bindingSourceUGOVORORADU).EndInit();
            ((ISupportInitialize)this.textIDUGOVORORADU).EndInit();
            ((ISupportInitialize)this.textNAZIVUGOVORORADU).EndInit();
            this.dsUGOVORORADUDataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }