예제 #1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsVRSTADOPRINOSDataSet1 = new VRSTADOPRINOSDataSet();
     this.m_StartRow    = 0;
     this.Cursor        = Cursors.WaitCursor;
     this.m_GridLoading = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }
예제 #2
0
 public void ChangeBinding()
 {
     this.bindingSourceVRSTADOPRINOS.DataSource = this.VRSTADOPRINOSController.DataSet;
     this.dsVRSTADOPRINOSDataSet1 = this.VRSTADOPRINOSController.DataSet;
 }
예제 #3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(VRSTADOPRINOSFormUserControl));

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

            this.layoutManagerformVRSTADOPRINOS.Size        = size;
            this.layoutManagerformVRSTADOPRINOS.ColumnCount = 2;
            this.layoutManagerformVRSTADOPRINOS.RowCount    = 3;
            this.layoutManagerformVRSTADOPRINOS.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformVRSTADOPRINOS.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformVRSTADOPRINOS.RowStyles.Add(new RowStyle());
            this.layoutManagerformVRSTADOPRINOS.RowStyles.Add(new RowStyle());
            this.layoutManagerformVRSTADOPRINOS.RowStyles.Add(new RowStyle());
            this.label1IDVRSTADOPRINOS    = new UltraLabel();
            this.textIDVRSTADOPRINOS      = new UltraNumericEditor();
            this.label1NAZIVVRSTADOPRINOS = new UltraLabel();
            this.textNAZIVVRSTADOPRINOS   = new UltraTextEditor();
            ((ISupportInitialize)this.textIDVRSTADOPRINOS).BeginInit();
            ((ISupportInitialize)this.textNAZIVVRSTADOPRINOS).BeginInit();
            this.dsVRSTADOPRINOSDataSet1 = new VRSTADOPRINOSDataSet();
            this.dsVRSTADOPRINOSDataSet1.BeginInit();
            this.SuspendLayout();
            this.dsVRSTADOPRINOSDataSet1.DataSetName   = "dsVRSTADOPRINOS";
            this.dsVRSTADOPRINOSDataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceVRSTADOPRINOS.DataSource = this.dsVRSTADOPRINOSDataSet1;
            this.bindingSourceVRSTADOPRINOS.DataMember = "VRSTADOPRINOS";
            ((ISupportInitialize)this.bindingSourceVRSTADOPRINOS).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDVRSTADOPRINOS.Location               = point;
            this.label1IDVRSTADOPRINOS.Name                   = "label1IDVRSTADOPRINOS";
            this.label1IDVRSTADOPRINOS.TabIndex               = 1;
            this.label1IDVRSTADOPRINOS.Tag                    = "labelIDVRSTADOPRINOS";
            this.label1IDVRSTADOPRINOS.Text                   = "Šifra vrste doprinosa:";
            this.label1IDVRSTADOPRINOS.StyleSetName           = "FieldUltraLabel";
            this.label1IDVRSTADOPRINOS.AutoSize               = true;
            this.label1IDVRSTADOPRINOS.Anchor                 = AnchorStyles.Left;
            this.label1IDVRSTADOPRINOS.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDVRSTADOPRINOS.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDVRSTADOPRINOS.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDVRSTADOPRINOS.ImageSize            = size;
            this.label1IDVRSTADOPRINOS.Appearance.ForeColor = Color.Black;
            this.label1IDVRSTADOPRINOS.BackColor            = Color.Transparent;
            this.layoutManagerformVRSTADOPRINOS.Controls.Add(this.label1IDVRSTADOPRINOS, 0, 0);
            this.layoutManagerformVRSTADOPRINOS.SetColumnSpan(this.label1IDVRSTADOPRINOS, 1);
            this.layoutManagerformVRSTADOPRINOS.SetRowSpan(this.label1IDVRSTADOPRINOS, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDVRSTADOPRINOS.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDVRSTADOPRINOS.MinimumSize = size;
            size = new System.Drawing.Size(0x91, 0x17);
            this.label1IDVRSTADOPRINOS.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDVRSTADOPRINOS.Location    = point;
            this.textIDVRSTADOPRINOS.Name        = "textIDVRSTADOPRINOS";
            this.textIDVRSTADOPRINOS.Tag         = "IDVRSTADOPRINOS";
            this.textIDVRSTADOPRINOS.TabIndex    = 0;
            this.textIDVRSTADOPRINOS.Anchor      = AnchorStyles.Left;
            this.textIDVRSTADOPRINOS.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDVRSTADOPRINOS.ReadOnly    = false;
            this.textIDVRSTADOPRINOS.PromptChar  = ' ';
            this.textIDVRSTADOPRINOS.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDVRSTADOPRINOS.DataBindings.Add(new Binding("Value", this.bindingSourceVRSTADOPRINOS, "IDVRSTADOPRINOS"));
            this.textIDVRSTADOPRINOS.NumericType = NumericType.Integer;
            this.textIDVRSTADOPRINOS.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformVRSTADOPRINOS.Controls.Add(this.textIDVRSTADOPRINOS, 1, 0);
            this.layoutManagerformVRSTADOPRINOS.SetColumnSpan(this.textIDVRSTADOPRINOS, 1);
            this.layoutManagerformVRSTADOPRINOS.SetRowSpan(this.textIDVRSTADOPRINOS, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDVRSTADOPRINOS.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDVRSTADOPRINOS.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDVRSTADOPRINOS.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVVRSTADOPRINOS.Location              = point;
            this.label1NAZIVVRSTADOPRINOS.Name                  = "label1NAZIVVRSTADOPRINOS";
            this.label1NAZIVVRSTADOPRINOS.TabIndex              = 1;
            this.label1NAZIVVRSTADOPRINOS.Tag                   = "labelNAZIVVRSTADOPRINOS";
            this.label1NAZIVVRSTADOPRINOS.Text                  = "Naziv vrste doprinosa:";
            this.label1NAZIVVRSTADOPRINOS.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVVRSTADOPRINOS.AutoSize              = true;
            this.label1NAZIVVRSTADOPRINOS.Anchor                = AnchorStyles.Left;
            this.label1NAZIVVRSTADOPRINOS.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVVRSTADOPRINOS.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVVRSTADOPRINOS.BackColor             = Color.Transparent;
            this.layoutManagerformVRSTADOPRINOS.Controls.Add(this.label1NAZIVVRSTADOPRINOS, 0, 1);
            this.layoutManagerformVRSTADOPRINOS.SetColumnSpan(this.label1NAZIVVRSTADOPRINOS, 1);
            this.layoutManagerformVRSTADOPRINOS.SetRowSpan(this.label1NAZIVVRSTADOPRINOS, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVVRSTADOPRINOS.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVVRSTADOPRINOS.MinimumSize = size;
            size = new System.Drawing.Size(0x99, 0x17);
            this.label1NAZIVVRSTADOPRINOS.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVVRSTADOPRINOS.Location    = point;
            this.textNAZIVVRSTADOPRINOS.Name        = "textNAZIVVRSTADOPRINOS";
            this.textNAZIVVRSTADOPRINOS.Tag         = "NAZIVVRSTADOPRINOS";
            this.textNAZIVVRSTADOPRINOS.TabIndex    = 0;
            this.textNAZIVVRSTADOPRINOS.Anchor      = AnchorStyles.Left;
            this.textNAZIVVRSTADOPRINOS.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVVRSTADOPRINOS.ReadOnly    = false;
            this.textNAZIVVRSTADOPRINOS.DataBindings.Add(new Binding("Text", this.bindingSourceVRSTADOPRINOS, "NAZIVVRSTADOPRINOS"));
            this.textNAZIVVRSTADOPRINOS.MaxLength = 50;
            this.layoutManagerformVRSTADOPRINOS.Controls.Add(this.textNAZIVVRSTADOPRINOS, 1, 1);
            this.layoutManagerformVRSTADOPRINOS.SetColumnSpan(this.textNAZIVVRSTADOPRINOS, 1);
            this.layoutManagerformVRSTADOPRINOS.SetRowSpan(this.textNAZIVVRSTADOPRINOS, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVVRSTADOPRINOS.Margin = padding;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVVRSTADOPRINOS.MinimumSize = size;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVVRSTADOPRINOS.Size = size;
            this.Controls.Add(this.layoutManagerformVRSTADOPRINOS);
            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.bindingSourceVRSTADOPRINOS;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "VRSTADOPRINOSFormUserControl";
            this.Text       = "Vrste doprinosa";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.VRSTADOPRINOSFormUserControl_Load);
            this.layoutManagerformVRSTADOPRINOS.ResumeLayout(false);
            this.layoutManagerformVRSTADOPRINOS.PerformLayout();
            ((ISupportInitialize)this.bindingSourceVRSTADOPRINOS).EndInit();
            ((ISupportInitialize)this.textIDVRSTADOPRINOS).EndInit();
            ((ISupportInitialize)this.textNAZIVVRSTADOPRINOS).EndInit();
            this.dsVRSTADOPRINOSDataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }