コード例 #1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsDRZAVLJANSTVODataSet1 = new DRZAVLJANSTVODataSet();
     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.bindingSourceDRZAVLJANSTVO.DataSource = this.DRZAVLJANSTVOController.DataSet;
     this.dsDRZAVLJANSTVODataSet1 = this.DRZAVLJANSTVOController.DataSet;
 }
コード例 #3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(DRZAVLJANSTVOFormUserControl));

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

            this.layoutManagerformDRZAVLJANSTVO.Size        = size;
            this.layoutManagerformDRZAVLJANSTVO.ColumnCount = 2;
            this.layoutManagerformDRZAVLJANSTVO.RowCount    = 3;
            this.layoutManagerformDRZAVLJANSTVO.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformDRZAVLJANSTVO.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformDRZAVLJANSTVO.RowStyles.Add(new RowStyle());
            this.layoutManagerformDRZAVLJANSTVO.RowStyles.Add(new RowStyle());
            this.layoutManagerformDRZAVLJANSTVO.RowStyles.Add(new RowStyle());
            this.label1IDDRZAVLJANSTVO    = new UltraLabel();
            this.textIDDRZAVLJANSTVO      = new UltraNumericEditor();
            this.label1NAZIVDRZAVLJANSTVO = new UltraLabel();
            this.textNAZIVDRZAVLJANSTVO   = new UltraTextEditor();
            ((ISupportInitialize)this.textIDDRZAVLJANSTVO).BeginInit();
            ((ISupportInitialize)this.textNAZIVDRZAVLJANSTVO).BeginInit();
            this.dsDRZAVLJANSTVODataSet1 = new DRZAVLJANSTVODataSet();
            this.dsDRZAVLJANSTVODataSet1.BeginInit();
            this.SuspendLayout();
            this.dsDRZAVLJANSTVODataSet1.DataSetName   = "dsDRZAVLJANSTVO";
            this.dsDRZAVLJANSTVODataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceDRZAVLJANSTVO.DataSource = this.dsDRZAVLJANSTVODataSet1;
            this.bindingSourceDRZAVLJANSTVO.DataMember = "DRZAVLJANSTVO";
            ((ISupportInitialize)this.bindingSourceDRZAVLJANSTVO).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDDRZAVLJANSTVO.Location               = point;
            this.label1IDDRZAVLJANSTVO.Name                   = "label1IDDRZAVLJANSTVO";
            this.label1IDDRZAVLJANSTVO.TabIndex               = 1;
            this.label1IDDRZAVLJANSTVO.Tag                    = "labelIDDRZAVLJANSTVO";
            this.label1IDDRZAVLJANSTVO.Text                   = "Šifra:";
            this.label1IDDRZAVLJANSTVO.StyleSetName           = "FieldUltraLabel";
            this.label1IDDRZAVLJANSTVO.AutoSize               = true;
            this.label1IDDRZAVLJANSTVO.Anchor                 = AnchorStyles.Left;
            this.label1IDDRZAVLJANSTVO.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDDRZAVLJANSTVO.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDDRZAVLJANSTVO.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDDRZAVLJANSTVO.ImageSize            = size;
            this.label1IDDRZAVLJANSTVO.Appearance.ForeColor = Color.Black;
            this.label1IDDRZAVLJANSTVO.BackColor            = Color.Transparent;
            this.layoutManagerformDRZAVLJANSTVO.Controls.Add(this.label1IDDRZAVLJANSTVO, 0, 0);
            this.layoutManagerformDRZAVLJANSTVO.SetColumnSpan(this.label1IDDRZAVLJANSTVO, 1);
            this.layoutManagerformDRZAVLJANSTVO.SetRowSpan(this.label1IDDRZAVLJANSTVO, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDDRZAVLJANSTVO.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDDRZAVLJANSTVO.MinimumSize = size;
            size = new System.Drawing.Size(0x2d, 0x17);
            this.label1IDDRZAVLJANSTVO.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDDRZAVLJANSTVO.Location    = point;
            this.textIDDRZAVLJANSTVO.Name        = "textIDDRZAVLJANSTVO";
            this.textIDDRZAVLJANSTVO.Tag         = "IDDRZAVLJANSTVO";
            this.textIDDRZAVLJANSTVO.TabIndex    = 0;
            this.textIDDRZAVLJANSTVO.Anchor      = AnchorStyles.Left;
            this.textIDDRZAVLJANSTVO.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDDRZAVLJANSTVO.ReadOnly    = false;
            this.textIDDRZAVLJANSTVO.PromptChar  = ' ';
            this.textIDDRZAVLJANSTVO.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDDRZAVLJANSTVO.DataBindings.Add(new Binding("Value", this.bindingSourceDRZAVLJANSTVO, "IDDRZAVLJANSTVO"));
            this.textIDDRZAVLJANSTVO.NumericType = NumericType.Integer;
            this.textIDDRZAVLJANSTVO.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformDRZAVLJANSTVO.Controls.Add(this.textIDDRZAVLJANSTVO, 1, 0);
            this.layoutManagerformDRZAVLJANSTVO.SetColumnSpan(this.textIDDRZAVLJANSTVO, 1);
            this.layoutManagerformDRZAVLJANSTVO.SetRowSpan(this.textIDDRZAVLJANSTVO, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDDRZAVLJANSTVO.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDDRZAVLJANSTVO.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDDRZAVLJANSTVO.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVDRZAVLJANSTVO.Location              = point;
            this.label1NAZIVDRZAVLJANSTVO.Name                  = "label1NAZIVDRZAVLJANSTVO";
            this.label1NAZIVDRZAVLJANSTVO.TabIndex              = 1;
            this.label1NAZIVDRZAVLJANSTVO.Tag                   = "labelNAZIVDRZAVLJANSTVO";
            this.label1NAZIVDRZAVLJANSTVO.Text                  = "Drzavljanstvo:";
            this.label1NAZIVDRZAVLJANSTVO.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVDRZAVLJANSTVO.AutoSize              = true;
            this.label1NAZIVDRZAVLJANSTVO.Anchor                = AnchorStyles.Left;
            this.label1NAZIVDRZAVLJANSTVO.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVDRZAVLJANSTVO.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVDRZAVLJANSTVO.BackColor             = Color.Transparent;
            this.layoutManagerformDRZAVLJANSTVO.Controls.Add(this.label1NAZIVDRZAVLJANSTVO, 0, 1);
            this.layoutManagerformDRZAVLJANSTVO.SetColumnSpan(this.label1NAZIVDRZAVLJANSTVO, 1);
            this.layoutManagerformDRZAVLJANSTVO.SetRowSpan(this.label1NAZIVDRZAVLJANSTVO, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVDRZAVLJANSTVO.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVDRZAVLJANSTVO.MinimumSize = size;
            size = new System.Drawing.Size(0x69, 0x17);
            this.label1NAZIVDRZAVLJANSTVO.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVDRZAVLJANSTVO.Location    = point;
            this.textNAZIVDRZAVLJANSTVO.Name        = "textNAZIVDRZAVLJANSTVO";
            this.textNAZIVDRZAVLJANSTVO.Tag         = "NAZIVDRZAVLJANSTVO";
            this.textNAZIVDRZAVLJANSTVO.TabIndex    = 0;
            this.textNAZIVDRZAVLJANSTVO.Anchor      = AnchorStyles.Left;
            this.textNAZIVDRZAVLJANSTVO.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVDRZAVLJANSTVO.ReadOnly    = false;
            this.textNAZIVDRZAVLJANSTVO.DataBindings.Add(new Binding("Text", this.bindingSourceDRZAVLJANSTVO, "NAZIVDRZAVLJANSTVO"));
            this.textNAZIVDRZAVLJANSTVO.MaxLength = 50;
            this.layoutManagerformDRZAVLJANSTVO.Controls.Add(this.textNAZIVDRZAVLJANSTVO, 1, 1);
            this.layoutManagerformDRZAVLJANSTVO.SetColumnSpan(this.textNAZIVDRZAVLJANSTVO, 1);
            this.layoutManagerformDRZAVLJANSTVO.SetRowSpan(this.textNAZIVDRZAVLJANSTVO, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVDRZAVLJANSTVO.Margin = padding;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVDRZAVLJANSTVO.MinimumSize = size;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVDRZAVLJANSTVO.Size = size;
            this.Controls.Add(this.layoutManagerformDRZAVLJANSTVO);
            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.bindingSourceDRZAVLJANSTVO;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "DRZAVLJANSTVOFormUserControl";
            this.Text       = "Državljanstvo";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.DRZAVLJANSTVOFormUserControl_Load);
            this.layoutManagerformDRZAVLJANSTVO.ResumeLayout(false);
            this.layoutManagerformDRZAVLJANSTVO.PerformLayout();
            ((ISupportInitialize)this.bindingSourceDRZAVLJANSTVO).EndInit();
            ((ISupportInitialize)this.textIDDRZAVLJANSTVO).EndInit();
            ((ISupportInitialize)this.textNAZIVDRZAVLJANSTVO).EndInit();
            this.dsDRZAVLJANSTVODataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }