Exemple #1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsVRSTAOBUSTAVEDataSet1 = new VRSTAOBUSTAVEDataSet();
     this.m_StartRow    = 0;
     this.Cursor        = Cursors.WaitCursor;
     this.m_GridLoading = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }
Exemple #2
0
 public void ChangeBinding()
 {
     this.bindingSourceVRSTEOBUSTAVA.DataSource = this.VRSTAOBUSTAVEController.DataSet;
     this.dsVRSTAOBUSTAVEDataSet1 = this.VRSTAOBUSTAVEController.DataSet;
 }
Exemple #3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(VRSTAOBUSTAVEFormUserControl));

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

            this.layoutManagerformVRSTEOBUSTAVA.Size        = size;
            this.layoutManagerformVRSTEOBUSTAVA.ColumnCount = 2;
            this.layoutManagerformVRSTEOBUSTAVA.RowCount    = 3;
            this.layoutManagerformVRSTEOBUSTAVA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformVRSTEOBUSTAVA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformVRSTEOBUSTAVA.RowStyles.Add(new RowStyle());
            this.layoutManagerformVRSTEOBUSTAVA.RowStyles.Add(new RowStyle());
            this.layoutManagerformVRSTEOBUSTAVA.RowStyles.Add(new RowStyle());
            this.label1VRSTAOBUSTAVE      = new UltraLabel();
            this.textVRSTAOBUSTAVE        = new UltraNumericEditor();
            this.label1NAZIVVRSTAOBUSTAVE = new UltraLabel();
            this.textNAZIVVRSTAOBUSTAVE   = new UltraTextEditor();
            ((ISupportInitialize)this.textVRSTAOBUSTAVE).BeginInit();
            ((ISupportInitialize)this.textNAZIVVRSTAOBUSTAVE).BeginInit();
            this.dsVRSTAOBUSTAVEDataSet1 = new VRSTAOBUSTAVEDataSet();
            this.dsVRSTAOBUSTAVEDataSet1.BeginInit();
            this.SuspendLayout();
            this.dsVRSTAOBUSTAVEDataSet1.DataSetName   = "dsVRSTAOBUSTAVE";
            this.dsVRSTAOBUSTAVEDataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceVRSTEOBUSTAVA.DataSource = this.dsVRSTAOBUSTAVEDataSet1;
            this.bindingSourceVRSTEOBUSTAVA.DataMember = "VRSTEOBUSTAVA";
            ((ISupportInitialize)this.bindingSourceVRSTEOBUSTAVA).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1VRSTAOBUSTAVE.Location               = point;
            this.label1VRSTAOBUSTAVE.Name                   = "label1VRSTAOBUSTAVE";
            this.label1VRSTAOBUSTAVE.TabIndex               = 1;
            this.label1VRSTAOBUSTAVE.Tag                    = "labelVRSTAOBUSTAVE";
            this.label1VRSTAOBUSTAVE.Text                   = "Šifra:";
            this.label1VRSTAOBUSTAVE.StyleSetName           = "FieldUltraLabel";
            this.label1VRSTAOBUSTAVE.AutoSize               = true;
            this.label1VRSTAOBUSTAVE.Anchor                 = AnchorStyles.Left;
            this.label1VRSTAOBUSTAVE.Appearance.TextVAlign  = VAlign.Middle;
            this.label1VRSTAOBUSTAVE.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1VRSTAOBUSTAVE.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1VRSTAOBUSTAVE.ImageSize            = size;
            this.label1VRSTAOBUSTAVE.Appearance.ForeColor = Color.Black;
            this.label1VRSTAOBUSTAVE.BackColor            = Color.Transparent;
            this.layoutManagerformVRSTEOBUSTAVA.Controls.Add(this.label1VRSTAOBUSTAVE, 0, 0);
            this.layoutManagerformVRSTEOBUSTAVA.SetColumnSpan(this.label1VRSTAOBUSTAVE, 1);
            this.layoutManagerformVRSTEOBUSTAVA.SetRowSpan(this.label1VRSTAOBUSTAVE, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1VRSTAOBUSTAVE.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1VRSTAOBUSTAVE.MinimumSize = size;
            size = new System.Drawing.Size(0x2d, 0x17);
            this.label1VRSTAOBUSTAVE.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textVRSTAOBUSTAVE.Location    = point;
            this.textVRSTAOBUSTAVE.Name        = "textVRSTAOBUSTAVE";
            this.textVRSTAOBUSTAVE.Tag         = "VRSTAOBUSTAVE";
            this.textVRSTAOBUSTAVE.TabIndex    = 0;
            this.textVRSTAOBUSTAVE.Anchor      = AnchorStyles.Left;
            this.textVRSTAOBUSTAVE.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textVRSTAOBUSTAVE.ReadOnly    = false;
            this.textVRSTAOBUSTAVE.PromptChar  = ' ';
            this.textVRSTAOBUSTAVE.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textVRSTAOBUSTAVE.DataBindings.Add(new Binding("Value", this.bindingSourceVRSTEOBUSTAVA, "VRSTAOBUSTAVE"));
            this.textVRSTAOBUSTAVE.NumericType = NumericType.Integer;
            this.textVRSTAOBUSTAVE.MaskInput   = "{LOC}-nn";
            this.layoutManagerformVRSTEOBUSTAVA.Controls.Add(this.textVRSTAOBUSTAVE, 1, 0);
            this.layoutManagerformVRSTEOBUSTAVA.SetColumnSpan(this.textVRSTAOBUSTAVE, 1);
            this.layoutManagerformVRSTEOBUSTAVA.SetRowSpan(this.textVRSTAOBUSTAVE, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textVRSTAOBUSTAVE.Margin = padding;
            size = new System.Drawing.Size(0x1f, 0x16);
            this.textVRSTAOBUSTAVE.MinimumSize = size;
            size = new System.Drawing.Size(0x1f, 0x16);
            this.textVRSTAOBUSTAVE.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVVRSTAOBUSTAVE.Location              = point;
            this.label1NAZIVVRSTAOBUSTAVE.Name                  = "label1NAZIVVRSTAOBUSTAVE";
            this.label1NAZIVVRSTAOBUSTAVE.TabIndex              = 1;
            this.label1NAZIVVRSTAOBUSTAVE.Tag                   = "labelNAZIVVRSTAOBUSTAVE";
            this.label1NAZIVVRSTAOBUSTAVE.Text                  = "Vrsta obustave:";
            this.label1NAZIVVRSTAOBUSTAVE.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVVRSTAOBUSTAVE.AutoSize              = true;
            this.label1NAZIVVRSTAOBUSTAVE.Anchor                = AnchorStyles.Left;
            this.label1NAZIVVRSTAOBUSTAVE.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVVRSTAOBUSTAVE.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVVRSTAOBUSTAVE.BackColor             = Color.Transparent;
            this.layoutManagerformVRSTEOBUSTAVA.Controls.Add(this.label1NAZIVVRSTAOBUSTAVE, 0, 1);
            this.layoutManagerformVRSTEOBUSTAVA.SetColumnSpan(this.label1NAZIVVRSTAOBUSTAVE, 1);
            this.layoutManagerformVRSTEOBUSTAVA.SetRowSpan(this.label1NAZIVVRSTAOBUSTAVE, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVVRSTAOBUSTAVE.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVVRSTAOBUSTAVE.MinimumSize = size;
            size = new System.Drawing.Size(0x70, 0x17);
            this.label1NAZIVVRSTAOBUSTAVE.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVVRSTAOBUSTAVE.Location    = point;
            this.textNAZIVVRSTAOBUSTAVE.Name        = "textNAZIVVRSTAOBUSTAVE";
            this.textNAZIVVRSTAOBUSTAVE.Tag         = "NAZIVVRSTAOBUSTAVE";
            this.textNAZIVVRSTAOBUSTAVE.TabIndex    = 0;
            this.textNAZIVVRSTAOBUSTAVE.Anchor      = AnchorStyles.Left;
            this.textNAZIVVRSTAOBUSTAVE.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVVRSTAOBUSTAVE.ReadOnly    = false;
            this.textNAZIVVRSTAOBUSTAVE.DataBindings.Add(new Binding("Text", this.bindingSourceVRSTEOBUSTAVA, "NAZIVVRSTAOBUSTAVE"));
            this.textNAZIVVRSTAOBUSTAVE.MaxLength = 50;
            this.layoutManagerformVRSTEOBUSTAVA.Controls.Add(this.textNAZIVVRSTAOBUSTAVE, 1, 1);
            this.layoutManagerformVRSTEOBUSTAVA.SetColumnSpan(this.textNAZIVVRSTAOBUSTAVE, 1);
            this.layoutManagerformVRSTEOBUSTAVA.SetRowSpan(this.textNAZIVVRSTAOBUSTAVE, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVVRSTAOBUSTAVE.Margin = padding;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVVRSTAOBUSTAVE.MinimumSize = size;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVVRSTAOBUSTAVE.Size = size;
            this.Controls.Add(this.layoutManagerformVRSTEOBUSTAVA);
            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.bindingSourceVRSTEOBUSTAVA;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "VRSTAOBUSTAVEFormUserControl";
            this.Text       = "Vrste obustava";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.VRSTAOBUSTAVEFormUserControl_Load);
            this.layoutManagerformVRSTEOBUSTAVA.ResumeLayout(false);
            this.layoutManagerformVRSTEOBUSTAVA.PerformLayout();
            ((ISupportInitialize)this.bindingSourceVRSTEOBUSTAVA).EndInit();
            ((ISupportInitialize)this.textVRSTAOBUSTAVE).EndInit();
            ((ISupportInitialize)this.textNAZIVVRSTAOBUSTAVE).EndInit();
            this.dsVRSTAOBUSTAVEDataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }