Esempio n. 1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsBRACNOSTANJEDataSet1 = new BRACNOSTANJEDataSet();
     this.m_StartRow             = 0;
     this.Cursor        = Cursors.WaitCursor;
     this.m_GridLoading = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }
Esempio n. 2
0
 public void ChangeBinding()
 {
     this.bindingSourceBRACNOSTANJE.DataSource = this.BRACNOSTANJEController.DataSet;
     this.dsBRACNOSTANJEDataSet1 = this.BRACNOSTANJEController.DataSet;
 }
Esempio n. 3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(BRACNOSTANJEFormUserControl));

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

            this.layoutManagerformBRACNOSTANJE.Size        = size;
            this.layoutManagerformBRACNOSTANJE.ColumnCount = 2;
            this.layoutManagerformBRACNOSTANJE.RowCount    = 3;
            this.layoutManagerformBRACNOSTANJE.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformBRACNOSTANJE.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformBRACNOSTANJE.RowStyles.Add(new RowStyle());
            this.layoutManagerformBRACNOSTANJE.RowStyles.Add(new RowStyle());
            this.layoutManagerformBRACNOSTANJE.RowStyles.Add(new RowStyle());
            this.label1IDBRACNOSTANJE    = new UltraLabel();
            this.textIDBRACNOSTANJE      = new UltraNumericEditor();
            this.label1NAZIVBRACNOSTANJE = new UltraLabel();
            this.textNAZIVBRACNOSTANJE   = new UltraTextEditor();
            ((ISupportInitialize)this.textIDBRACNOSTANJE).BeginInit();
            ((ISupportInitialize)this.textNAZIVBRACNOSTANJE).BeginInit();
            this.dsBRACNOSTANJEDataSet1 = new BRACNOSTANJEDataSet();
            this.dsBRACNOSTANJEDataSet1.BeginInit();
            this.SuspendLayout();
            this.dsBRACNOSTANJEDataSet1.DataSetName   = "dsBRACNOSTANJE";
            this.dsBRACNOSTANJEDataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceBRACNOSTANJE.DataSource = this.dsBRACNOSTANJEDataSet1;
            this.bindingSourceBRACNOSTANJE.DataMember = "BRACNOSTANJE";
            ((ISupportInitialize)this.bindingSourceBRACNOSTANJE).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDBRACNOSTANJE.Location               = point;
            this.label1IDBRACNOSTANJE.Name                   = "label1IDBRACNOSTANJE";
            this.label1IDBRACNOSTANJE.TabIndex               = 1;
            this.label1IDBRACNOSTANJE.Tag                    = "labelIDBRACNOSTANJE";
            this.label1IDBRACNOSTANJE.Text                   = "Šifra bračnog stanja:";
            this.label1IDBRACNOSTANJE.StyleSetName           = "FieldUltraLabel";
            this.label1IDBRACNOSTANJE.AutoSize               = true;
            this.label1IDBRACNOSTANJE.Anchor                 = AnchorStyles.Left;
            this.label1IDBRACNOSTANJE.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDBRACNOSTANJE.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDBRACNOSTANJE.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDBRACNOSTANJE.ImageSize            = size;
            this.label1IDBRACNOSTANJE.Appearance.ForeColor = Color.Black;
            this.label1IDBRACNOSTANJE.BackColor            = Color.Transparent;
            this.layoutManagerformBRACNOSTANJE.Controls.Add(this.label1IDBRACNOSTANJE, 0, 0);
            this.layoutManagerformBRACNOSTANJE.SetColumnSpan(this.label1IDBRACNOSTANJE, 1);
            this.layoutManagerformBRACNOSTANJE.SetRowSpan(this.label1IDBRACNOSTANJE, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDBRACNOSTANJE.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDBRACNOSTANJE.MinimumSize = size;
            size = new System.Drawing.Size(0x8d, 0x17);
            this.label1IDBRACNOSTANJE.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDBRACNOSTANJE.Location    = point;
            this.textIDBRACNOSTANJE.Name        = "textIDBRACNOSTANJE";
            this.textIDBRACNOSTANJE.Tag         = "IDBRACNOSTANJE";
            this.textIDBRACNOSTANJE.TabIndex    = 0;
            this.textIDBRACNOSTANJE.Anchor      = AnchorStyles.Left;
            this.textIDBRACNOSTANJE.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDBRACNOSTANJE.ReadOnly    = false;
            this.textIDBRACNOSTANJE.PromptChar  = ' ';
            this.textIDBRACNOSTANJE.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDBRACNOSTANJE.DataBindings.Add(new Binding("Value", this.bindingSourceBRACNOSTANJE, "IDBRACNOSTANJE"));
            this.textIDBRACNOSTANJE.NumericType = NumericType.Integer;
            this.textIDBRACNOSTANJE.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformBRACNOSTANJE.Controls.Add(this.textIDBRACNOSTANJE, 1, 0);
            this.layoutManagerformBRACNOSTANJE.SetColumnSpan(this.textIDBRACNOSTANJE, 1);
            this.layoutManagerformBRACNOSTANJE.SetRowSpan(this.textIDBRACNOSTANJE, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDBRACNOSTANJE.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDBRACNOSTANJE.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDBRACNOSTANJE.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVBRACNOSTANJE.Location              = point;
            this.label1NAZIVBRACNOSTANJE.Name                  = "label1NAZIVBRACNOSTANJE";
            this.label1NAZIVBRACNOSTANJE.TabIndex              = 1;
            this.label1NAZIVBRACNOSTANJE.Tag                   = "labelNAZIVBRACNOSTANJE";
            this.label1NAZIVBRACNOSTANJE.Text                  = "Naziv bračnog stanja:";
            this.label1NAZIVBRACNOSTANJE.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVBRACNOSTANJE.AutoSize              = true;
            this.label1NAZIVBRACNOSTANJE.Anchor                = AnchorStyles.Left;
            this.label1NAZIVBRACNOSTANJE.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVBRACNOSTANJE.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVBRACNOSTANJE.BackColor             = Color.Transparent;
            this.layoutManagerformBRACNOSTANJE.Controls.Add(this.label1NAZIVBRACNOSTANJE, 0, 1);
            this.layoutManagerformBRACNOSTANJE.SetColumnSpan(this.label1NAZIVBRACNOSTANJE, 1);
            this.layoutManagerformBRACNOSTANJE.SetRowSpan(this.label1NAZIVBRACNOSTANJE, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVBRACNOSTANJE.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVBRACNOSTANJE.MinimumSize = size;
            size = new System.Drawing.Size(150, 0x17);
            this.label1NAZIVBRACNOSTANJE.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVBRACNOSTANJE.Location    = point;
            this.textNAZIVBRACNOSTANJE.Name        = "textNAZIVBRACNOSTANJE";
            this.textNAZIVBRACNOSTANJE.Tag         = "NAZIVBRACNOSTANJE";
            this.textNAZIVBRACNOSTANJE.TabIndex    = 0;
            this.textNAZIVBRACNOSTANJE.Anchor      = AnchorStyles.Left;
            this.textNAZIVBRACNOSTANJE.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVBRACNOSTANJE.ReadOnly    = false;
            this.textNAZIVBRACNOSTANJE.DataBindings.Add(new Binding("Text", this.bindingSourceBRACNOSTANJE, "NAZIVBRACNOSTANJE"));
            this.textNAZIVBRACNOSTANJE.MaxLength = 50;
            this.layoutManagerformBRACNOSTANJE.Controls.Add(this.textNAZIVBRACNOSTANJE, 1, 1);
            this.layoutManagerformBRACNOSTANJE.SetColumnSpan(this.textNAZIVBRACNOSTANJE, 1);
            this.layoutManagerformBRACNOSTANJE.SetRowSpan(this.textNAZIVBRACNOSTANJE, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVBRACNOSTANJE.Margin = padding;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVBRACNOSTANJE.MinimumSize = size;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVBRACNOSTANJE.Size = size;
            this.Controls.Add(this.layoutManagerformBRACNOSTANJE);
            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.bindingSourceBRACNOSTANJE;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "BRACNOSTANJEFormUserControl";
            this.Text       = "Braeno stanje";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.BRACNOSTANJEFormUserControl_Load);
            this.layoutManagerformBRACNOSTANJE.ResumeLayout(false);
            this.layoutManagerformBRACNOSTANJE.PerformLayout();
            ((ISupportInitialize)this.bindingSourceBRACNOSTANJE).EndInit();
            ((ISupportInitialize)this.textIDBRACNOSTANJE).EndInit();
            ((ISupportInitialize)this.textNAZIVBRACNOSTANJE).EndInit();
            this.dsBRACNOSTANJEDataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }