예제 #1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsPLVRSTEIZNOSADataSet1 = new PLVRSTEIZNOSADataSet();
     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.bindingSourcePLVRSTEIZNOSA.DataSource = this.PLVRSTEIZNOSAController.DataSet;
     this.dsPLVRSTEIZNOSADataSet1 = this.PLVRSTEIZNOSAController.DataSet;
 }
예제 #3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(PLVRSTEIZNOSAFormUserControl));

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

            this.layoutManagerformPLVRSTEIZNOSA.Size        = size;
            this.layoutManagerformPLVRSTEIZNOSA.ColumnCount = 2;
            this.layoutManagerformPLVRSTEIZNOSA.RowCount    = 3;
            this.layoutManagerformPLVRSTEIZNOSA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformPLVRSTEIZNOSA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformPLVRSTEIZNOSA.RowStyles.Add(new RowStyle());
            this.layoutManagerformPLVRSTEIZNOSA.RowStyles.Add(new RowStyle());
            this.layoutManagerformPLVRSTEIZNOSA.RowStyles.Add(new RowStyle());
            this.label1IDPLVRSTEIZNOSA    = new UltraLabel();
            this.textIDPLVRSTEIZNOSA      = new UltraNumericEditor();
            this.label1NAZIVPLVRSTEIZNOSA = new UltraLabel();
            this.textNAZIVPLVRSTEIZNOSA   = new UltraTextEditor();
            ((ISupportInitialize)this.textIDPLVRSTEIZNOSA).BeginInit();
            ((ISupportInitialize)this.textNAZIVPLVRSTEIZNOSA).BeginInit();
            this.dsPLVRSTEIZNOSADataSet1 = new PLVRSTEIZNOSADataSet();
            this.dsPLVRSTEIZNOSADataSet1.BeginInit();
            this.SuspendLayout();
            this.dsPLVRSTEIZNOSADataSet1.DataSetName   = "dsPLVRSTEIZNOSA";
            this.dsPLVRSTEIZNOSADataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourcePLVRSTEIZNOSA.DataSource = this.dsPLVRSTEIZNOSADataSet1;
            this.bindingSourcePLVRSTEIZNOSA.DataMember = "PLVRSTEIZNOSA";
            ((ISupportInitialize)this.bindingSourcePLVRSTEIZNOSA).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDPLVRSTEIZNOSA.Location               = point;
            this.label1IDPLVRSTEIZNOSA.Name                   = "label1IDPLVRSTEIZNOSA";
            this.label1IDPLVRSTEIZNOSA.TabIndex               = 1;
            this.label1IDPLVRSTEIZNOSA.Tag                    = "labelIDPLVRSTEIZNOSA";
            this.label1IDPLVRSTEIZNOSA.Text                   = "Šifra:";
            this.label1IDPLVRSTEIZNOSA.StyleSetName           = "FieldUltraLabel";
            this.label1IDPLVRSTEIZNOSA.AutoSize               = true;
            this.label1IDPLVRSTEIZNOSA.Anchor                 = AnchorStyles.Left;
            this.label1IDPLVRSTEIZNOSA.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDPLVRSTEIZNOSA.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDPLVRSTEIZNOSA.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDPLVRSTEIZNOSA.ImageSize            = size;
            this.label1IDPLVRSTEIZNOSA.Appearance.ForeColor = Color.Black;
            this.label1IDPLVRSTEIZNOSA.BackColor            = Color.Transparent;
            this.layoutManagerformPLVRSTEIZNOSA.Controls.Add(this.label1IDPLVRSTEIZNOSA, 0, 0);
            this.layoutManagerformPLVRSTEIZNOSA.SetColumnSpan(this.label1IDPLVRSTEIZNOSA, 1);
            this.layoutManagerformPLVRSTEIZNOSA.SetRowSpan(this.label1IDPLVRSTEIZNOSA, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDPLVRSTEIZNOSA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDPLVRSTEIZNOSA.MinimumSize = size;
            size = new System.Drawing.Size(0x2d, 0x17);
            this.label1IDPLVRSTEIZNOSA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDPLVRSTEIZNOSA.Location    = point;
            this.textIDPLVRSTEIZNOSA.Name        = "textIDPLVRSTEIZNOSA";
            this.textIDPLVRSTEIZNOSA.Tag         = "IDPLVRSTEIZNOSA";
            this.textIDPLVRSTEIZNOSA.TabIndex    = 0;
            this.textIDPLVRSTEIZNOSA.Anchor      = AnchorStyles.Left;
            this.textIDPLVRSTEIZNOSA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDPLVRSTEIZNOSA.ReadOnly    = false;
            this.textIDPLVRSTEIZNOSA.PromptChar  = ' ';
            this.textIDPLVRSTEIZNOSA.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDPLVRSTEIZNOSA.DataBindings.Add(new Binding("Value", this.bindingSourcePLVRSTEIZNOSA, "IDPLVRSTEIZNOSA"));
            this.textIDPLVRSTEIZNOSA.NumericType = NumericType.Integer;
            this.textIDPLVRSTEIZNOSA.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformPLVRSTEIZNOSA.Controls.Add(this.textIDPLVRSTEIZNOSA, 1, 0);
            this.layoutManagerformPLVRSTEIZNOSA.SetColumnSpan(this.textIDPLVRSTEIZNOSA, 1);
            this.layoutManagerformPLVRSTEIZNOSA.SetRowSpan(this.textIDPLVRSTEIZNOSA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDPLVRSTEIZNOSA.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDPLVRSTEIZNOSA.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDPLVRSTEIZNOSA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVPLVRSTEIZNOSA.Location              = point;
            this.label1NAZIVPLVRSTEIZNOSA.Name                  = "label1NAZIVPLVRSTEIZNOSA";
            this.label1NAZIVPLVRSTEIZNOSA.TabIndex              = 1;
            this.label1NAZIVPLVRSTEIZNOSA.Tag                   = "labelNAZIVPLVRSTEIZNOSA";
            this.label1NAZIVPLVRSTEIZNOSA.Text                  = "Vrsta iznosa:";
            this.label1NAZIVPLVRSTEIZNOSA.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVPLVRSTEIZNOSA.AutoSize              = true;
            this.label1NAZIVPLVRSTEIZNOSA.Anchor                = AnchorStyles.Left;
            this.label1NAZIVPLVRSTEIZNOSA.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVPLVRSTEIZNOSA.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVPLVRSTEIZNOSA.BackColor             = Color.Transparent;
            this.layoutManagerformPLVRSTEIZNOSA.Controls.Add(this.label1NAZIVPLVRSTEIZNOSA, 0, 1);
            this.layoutManagerformPLVRSTEIZNOSA.SetColumnSpan(this.label1NAZIVPLVRSTEIZNOSA, 1);
            this.layoutManagerformPLVRSTEIZNOSA.SetRowSpan(this.label1NAZIVPLVRSTEIZNOSA, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVPLVRSTEIZNOSA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVPLVRSTEIZNOSA.MinimumSize = size;
            size = new System.Drawing.Size(0x5f, 0x17);
            this.label1NAZIVPLVRSTEIZNOSA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVPLVRSTEIZNOSA.Location    = point;
            this.textNAZIVPLVRSTEIZNOSA.Name        = "textNAZIVPLVRSTEIZNOSA";
            this.textNAZIVPLVRSTEIZNOSA.Tag         = "NAZIVPLVRSTEIZNOSA";
            this.textNAZIVPLVRSTEIZNOSA.TabIndex    = 0;
            this.textNAZIVPLVRSTEIZNOSA.Anchor      = AnchorStyles.Left;
            this.textNAZIVPLVRSTEIZNOSA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVPLVRSTEIZNOSA.ReadOnly    = false;
            this.textNAZIVPLVRSTEIZNOSA.DataBindings.Add(new Binding("Text", this.bindingSourcePLVRSTEIZNOSA, "NAZIVPLVRSTEIZNOSA"));
            this.textNAZIVPLVRSTEIZNOSA.MaxLength = 50;
            this.layoutManagerformPLVRSTEIZNOSA.Controls.Add(this.textNAZIVPLVRSTEIZNOSA, 1, 1);
            this.layoutManagerformPLVRSTEIZNOSA.SetColumnSpan(this.textNAZIVPLVRSTEIZNOSA, 1);
            this.layoutManagerformPLVRSTEIZNOSA.SetRowSpan(this.textNAZIVPLVRSTEIZNOSA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVPLVRSTEIZNOSA.Margin = padding;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVPLVRSTEIZNOSA.MinimumSize = size;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVPLVRSTEIZNOSA.Size = size;
            this.Controls.Add(this.layoutManagerformPLVRSTEIZNOSA);
            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.bindingSourcePLVRSTEIZNOSA;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "PLVRSTEIZNOSAFormUserControl";
            this.Text       = "PLVRSTEIZNOSA";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.PLVRSTEIZNOSAFormUserControl_Load);
            this.layoutManagerformPLVRSTEIZNOSA.ResumeLayout(false);
            this.layoutManagerformPLVRSTEIZNOSA.PerformLayout();
            ((ISupportInitialize)this.bindingSourcePLVRSTEIZNOSA).EndInit();
            ((ISupportInitialize)this.textIDPLVRSTEIZNOSA).EndInit();
            ((ISupportInitialize)this.textNAZIVPLVRSTEIZNOSA).EndInit();
            this.dsPLVRSTEIZNOSADataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }