コード例 #1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsRSVRSTEOBVEZNIKADataSet1 = new RSVRSTEOBVEZNIKADataSet();
     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.bindingSourceRSVRSTEOBVEZNIKA.DataSource = this.RSVRSTEOBVEZNIKAController.DataSet;
     this.dsRSVRSTEOBVEZNIKADataSet1 = this.RSVRSTEOBVEZNIKAController.DataSet;
 }
コード例 #3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(RSVRSTEOBVEZNIKAFormUserControl));

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

            this.layoutManagerformRSVRSTEOBVEZNIKA.Size        = size;
            this.layoutManagerformRSVRSTEOBVEZNIKA.ColumnCount = 2;
            this.layoutManagerformRSVRSTEOBVEZNIKA.RowCount    = 3;
            this.layoutManagerformRSVRSTEOBVEZNIKA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformRSVRSTEOBVEZNIKA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformRSVRSTEOBVEZNIKA.RowStyles.Add(new RowStyle());
            this.layoutManagerformRSVRSTEOBVEZNIKA.RowStyles.Add(new RowStyle());
            this.layoutManagerformRSVRSTEOBVEZNIKA.RowStyles.Add(new RowStyle());
            this.label1IDRSVRSTEOBVEZNIKA    = new UltraLabel();
            this.textIDRSVRSTEOBVEZNIKA      = new UltraTextEditor();
            this.label1NAZIVRSVRSTEOBVEZNIKA = new UltraLabel();
            this.textNAZIVRSVRSTEOBVEZNIKA   = new UltraTextEditor();
            ((ISupportInitialize)this.textIDRSVRSTEOBVEZNIKA).BeginInit();
            ((ISupportInitialize)this.textNAZIVRSVRSTEOBVEZNIKA).BeginInit();
            this.dsRSVRSTEOBVEZNIKADataSet1 = new RSVRSTEOBVEZNIKADataSet();
            this.dsRSVRSTEOBVEZNIKADataSet1.BeginInit();
            this.SuspendLayout();
            this.dsRSVRSTEOBVEZNIKADataSet1.DataSetName   = "dsRSVRSTEOBVEZNIKA";
            this.dsRSVRSTEOBVEZNIKADataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceRSVRSTEOBVEZNIKA.DataSource = this.dsRSVRSTEOBVEZNIKADataSet1;
            this.bindingSourceRSVRSTEOBVEZNIKA.DataMember = "RSVRSTEOBVEZNIKA";
            ((ISupportInitialize)this.bindingSourceRSVRSTEOBVEZNIKA).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDRSVRSTEOBVEZNIKA.Location               = point;
            this.label1IDRSVRSTEOBVEZNIKA.Name                   = "label1IDRSVRSTEOBVEZNIKA";
            this.label1IDRSVRSTEOBVEZNIKA.TabIndex               = 1;
            this.label1IDRSVRSTEOBVEZNIKA.Tag                    = "labelIDRSVRSTEOBVEZNIKA";
            this.label1IDRSVRSTEOBVEZNIKA.Text                   = "Šifra vrste obveznika:";
            this.label1IDRSVRSTEOBVEZNIKA.StyleSetName           = "FieldUltraLabel";
            this.label1IDRSVRSTEOBVEZNIKA.AutoSize               = true;
            this.label1IDRSVRSTEOBVEZNIKA.Anchor                 = AnchorStyles.Left;
            this.label1IDRSVRSTEOBVEZNIKA.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDRSVRSTEOBVEZNIKA.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDRSVRSTEOBVEZNIKA.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDRSVRSTEOBVEZNIKA.ImageSize            = size;
            this.label1IDRSVRSTEOBVEZNIKA.Appearance.ForeColor = Color.Black;
            this.label1IDRSVRSTEOBVEZNIKA.BackColor            = Color.Transparent;
            this.layoutManagerformRSVRSTEOBVEZNIKA.Controls.Add(this.label1IDRSVRSTEOBVEZNIKA, 0, 0);
            this.layoutManagerformRSVRSTEOBVEZNIKA.SetColumnSpan(this.label1IDRSVRSTEOBVEZNIKA, 1);
            this.layoutManagerformRSVRSTEOBVEZNIKA.SetRowSpan(this.label1IDRSVRSTEOBVEZNIKA, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDRSVRSTEOBVEZNIKA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDRSVRSTEOBVEZNIKA.MinimumSize = size;
            size = new System.Drawing.Size(0x93, 0x17);
            this.label1IDRSVRSTEOBVEZNIKA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDRSVRSTEOBVEZNIKA.Location    = point;
            this.textIDRSVRSTEOBVEZNIKA.Name        = "textIDRSVRSTEOBVEZNIKA";
            this.textIDRSVRSTEOBVEZNIKA.Tag         = "IDRSVRSTEOBVEZNIKA";
            this.textIDRSVRSTEOBVEZNIKA.TabIndex    = 0;
            this.textIDRSVRSTEOBVEZNIKA.Anchor      = AnchorStyles.Left;
            this.textIDRSVRSTEOBVEZNIKA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDRSVRSTEOBVEZNIKA.ReadOnly    = false;
            this.textIDRSVRSTEOBVEZNIKA.DataBindings.Add(new Binding("Text", this.bindingSourceRSVRSTEOBVEZNIKA, "IDRSVRSTEOBVEZNIKA"));
            this.textIDRSVRSTEOBVEZNIKA.MaxLength = 2;
            this.layoutManagerformRSVRSTEOBVEZNIKA.Controls.Add(this.textIDRSVRSTEOBVEZNIKA, 1, 0);
            this.layoutManagerformRSVRSTEOBVEZNIKA.SetColumnSpan(this.textIDRSVRSTEOBVEZNIKA, 1);
            this.layoutManagerformRSVRSTEOBVEZNIKA.SetRowSpan(this.textIDRSVRSTEOBVEZNIKA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDRSVRSTEOBVEZNIKA.Margin = padding;
            size = new System.Drawing.Size(30, 0x16);
            this.textIDRSVRSTEOBVEZNIKA.MinimumSize = size;
            size = new System.Drawing.Size(30, 0x16);
            this.textIDRSVRSTEOBVEZNIKA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVRSVRSTEOBVEZNIKA.Location              = point;
            this.label1NAZIVRSVRSTEOBVEZNIKA.Name                  = "label1NAZIVRSVRSTEOBVEZNIKA";
            this.label1NAZIVRSVRSTEOBVEZNIKA.TabIndex              = 1;
            this.label1NAZIVRSVRSTEOBVEZNIKA.Tag                   = "labelNAZIVRSVRSTEOBVEZNIKA";
            this.label1NAZIVRSVRSTEOBVEZNIKA.Text                  = "Naziv vrste obveznika:";
            this.label1NAZIVRSVRSTEOBVEZNIKA.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVRSVRSTEOBVEZNIKA.AutoSize              = true;
            this.label1NAZIVRSVRSTEOBVEZNIKA.Anchor                = AnchorStyles.Left;
            this.label1NAZIVRSVRSTEOBVEZNIKA.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVRSVRSTEOBVEZNIKA.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVRSVRSTEOBVEZNIKA.BackColor             = Color.Transparent;
            this.layoutManagerformRSVRSTEOBVEZNIKA.Controls.Add(this.label1NAZIVRSVRSTEOBVEZNIKA, 0, 1);
            this.layoutManagerformRSVRSTEOBVEZNIKA.SetColumnSpan(this.label1NAZIVRSVRSTEOBVEZNIKA, 1);
            this.layoutManagerformRSVRSTEOBVEZNIKA.SetRowSpan(this.label1NAZIVRSVRSTEOBVEZNIKA, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVRSVRSTEOBVEZNIKA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVRSVRSTEOBVEZNIKA.MinimumSize = size;
            size = new System.Drawing.Size(0x9b, 0x17);
            this.label1NAZIVRSVRSTEOBVEZNIKA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVRSVRSTEOBVEZNIKA.Location    = point;
            this.textNAZIVRSVRSTEOBVEZNIKA.Name        = "textNAZIVRSVRSTEOBVEZNIKA";
            this.textNAZIVRSVRSTEOBVEZNIKA.Tag         = "NAZIVRSVRSTEOBVEZNIKA";
            this.textNAZIVRSVRSTEOBVEZNIKA.TabIndex    = 0;
            this.textNAZIVRSVRSTEOBVEZNIKA.Anchor      = AnchorStyles.Left;
            this.textNAZIVRSVRSTEOBVEZNIKA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVRSVRSTEOBVEZNIKA.ReadOnly    = false;
            this.textNAZIVRSVRSTEOBVEZNIKA.DataBindings.Add(new Binding("Text", this.bindingSourceRSVRSTEOBVEZNIKA, "NAZIVRSVRSTEOBVEZNIKA"));
            this.textNAZIVRSVRSTEOBVEZNIKA.MaxLength = 100;
            this.layoutManagerformRSVRSTEOBVEZNIKA.Controls.Add(this.textNAZIVRSVRSTEOBVEZNIKA, 1, 1);
            this.layoutManagerformRSVRSTEOBVEZNIKA.SetColumnSpan(this.textNAZIVRSVRSTEOBVEZNIKA, 1);
            this.layoutManagerformRSVRSTEOBVEZNIKA.SetRowSpan(this.textNAZIVRSVRSTEOBVEZNIKA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVRSVRSTEOBVEZNIKA.Margin = padding;
            size = new System.Drawing.Size(0x240, 0x16);
            this.textNAZIVRSVRSTEOBVEZNIKA.MinimumSize = size;
            size = new System.Drawing.Size(0x240, 0x16);
            this.textNAZIVRSVRSTEOBVEZNIKA.Size = size;
            this.Controls.Add(this.layoutManagerformRSVRSTEOBVEZNIKA);
            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.bindingSourceRSVRSTEOBVEZNIKA;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "RSVRSTEOBVEZNIKAFormUserControl";
            this.Text       = "R-Sm - Vrste obveznika";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.RSVRSTEOBVEZNIKAFormUserControl_Load);
            this.layoutManagerformRSVRSTEOBVEZNIKA.ResumeLayout(false);
            this.layoutManagerformRSVRSTEOBVEZNIKA.PerformLayout();
            ((ISupportInitialize)this.bindingSourceRSVRSTEOBVEZNIKA).EndInit();
            ((ISupportInitialize)this.textIDRSVRSTEOBVEZNIKA).EndInit();
            ((ISupportInitialize)this.textNAZIVRSVRSTEOBVEZNIKA).EndInit();
            this.dsRSVRSTEOBVEZNIKADataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }