Beispiel #1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsVRSTAELEMENTDataSet1 = new VRSTAELEMENTDataSet();
     this.m_StartRow             = 0;
     this.Cursor        = Cursors.WaitCursor;
     this.m_GridLoading = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }
Beispiel #2
0
 public void ChangeBinding()
 {
     this.bindingSourceVRSTAELEMENT.DataSource = this.VRSTAELEMENTController.DataSet;
     this.dsVRSTAELEMENTDataSet1 = this.VRSTAELEMENTController.DataSet;
 }
Beispiel #3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(VRSTAELEMENTFormUserControl));

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

            this.layoutManagerformVRSTAELEMENT.Size        = size;
            this.layoutManagerformVRSTAELEMENT.ColumnCount = 2;
            this.layoutManagerformVRSTAELEMENT.RowCount    = 3;
            this.layoutManagerformVRSTAELEMENT.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformVRSTAELEMENT.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformVRSTAELEMENT.RowStyles.Add(new RowStyle());
            this.layoutManagerformVRSTAELEMENT.RowStyles.Add(new RowStyle());
            this.layoutManagerformVRSTAELEMENT.RowStyles.Add(new RowStyle());
            this.label1IDVRSTAELEMENTA   = new UltraLabel();
            this.textIDVRSTAELEMENTA     = new UltraNumericEditor();
            this.label1NAZIVVRSTAELEMENT = new UltraLabel();
            this.textNAZIVVRSTAELEMENT   = new UltraTextEditor();
            ((ISupportInitialize)this.textIDVRSTAELEMENTA).BeginInit();
            ((ISupportInitialize)this.textNAZIVVRSTAELEMENT).BeginInit();
            this.dsVRSTAELEMENTDataSet1 = new VRSTAELEMENTDataSet();
            this.dsVRSTAELEMENTDataSet1.BeginInit();
            this.SuspendLayout();
            this.dsVRSTAELEMENTDataSet1.DataSetName   = "dsVRSTAELEMENT";
            this.dsVRSTAELEMENTDataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceVRSTAELEMENT.DataSource = this.dsVRSTAELEMENTDataSet1;
            this.bindingSourceVRSTAELEMENT.DataMember = "VRSTAELEMENT";
            ((ISupportInitialize)this.bindingSourceVRSTAELEMENT).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDVRSTAELEMENTA.Location               = point;
            this.label1IDVRSTAELEMENTA.Name                   = "label1IDVRSTAELEMENTA";
            this.label1IDVRSTAELEMENTA.TabIndex               = 1;
            this.label1IDVRSTAELEMENTA.Tag                    = "labelIDVRSTAELEMENTA";
            this.label1IDVRSTAELEMENTA.Text                   = "Šifra Vrste elementa:";
            this.label1IDVRSTAELEMENTA.StyleSetName           = "FieldUltraLabel";
            this.label1IDVRSTAELEMENTA.AutoSize               = true;
            this.label1IDVRSTAELEMENTA.Anchor                 = AnchorStyles.Left;
            this.label1IDVRSTAELEMENTA.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDVRSTAELEMENTA.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDVRSTAELEMENTA.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDVRSTAELEMENTA.ImageSize            = size;
            this.label1IDVRSTAELEMENTA.Appearance.ForeColor = Color.Black;
            this.label1IDVRSTAELEMENTA.BackColor            = Color.Transparent;
            this.layoutManagerformVRSTAELEMENT.Controls.Add(this.label1IDVRSTAELEMENTA, 0, 0);
            this.layoutManagerformVRSTAELEMENT.SetColumnSpan(this.label1IDVRSTAELEMENTA, 1);
            this.layoutManagerformVRSTAELEMENT.SetRowSpan(this.label1IDVRSTAELEMENTA, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDVRSTAELEMENTA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDVRSTAELEMENTA.MinimumSize = size;
            size = new System.Drawing.Size(0x8f, 0x17);
            this.label1IDVRSTAELEMENTA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDVRSTAELEMENTA.Location    = point;
            this.textIDVRSTAELEMENTA.Name        = "textIDVRSTAELEMENTA";
            this.textIDVRSTAELEMENTA.Tag         = "IDVRSTAELEMENTA";
            this.textIDVRSTAELEMENTA.TabIndex    = 0;
            this.textIDVRSTAELEMENTA.Anchor      = AnchorStyles.Left;
            this.textIDVRSTAELEMENTA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDVRSTAELEMENTA.ReadOnly    = false;
            this.textIDVRSTAELEMENTA.PromptChar  = ' ';
            this.textIDVRSTAELEMENTA.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDVRSTAELEMENTA.DataBindings.Add(new Binding("Value", this.bindingSourceVRSTAELEMENT, "IDVRSTAELEMENTA"));
            this.textIDVRSTAELEMENTA.NumericType = NumericType.Integer;
            this.textIDVRSTAELEMENTA.MaskInput   = "{LOC}-nnnn";
            this.layoutManagerformVRSTAELEMENT.Controls.Add(this.textIDVRSTAELEMENTA, 1, 0);
            this.layoutManagerformVRSTAELEMENT.SetColumnSpan(this.textIDVRSTAELEMENTA, 1);
            this.layoutManagerformVRSTAELEMENT.SetRowSpan(this.textIDVRSTAELEMENTA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDVRSTAELEMENTA.Margin = padding;
            size = new System.Drawing.Size(0x2d, 0x16);
            this.textIDVRSTAELEMENTA.MinimumSize = size;
            size = new System.Drawing.Size(0x2d, 0x16);
            this.textIDVRSTAELEMENTA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVVRSTAELEMENT.Location              = point;
            this.label1NAZIVVRSTAELEMENT.Name                  = "label1NAZIVVRSTAELEMENT";
            this.label1NAZIVVRSTAELEMENT.TabIndex              = 1;
            this.label1NAZIVVRSTAELEMENT.Tag                   = "labelNAZIVVRSTAELEMENT";
            this.label1NAZIVVRSTAELEMENT.Text                  = "Naziv vrste elementa:";
            this.label1NAZIVVRSTAELEMENT.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVVRSTAELEMENT.AutoSize              = true;
            this.label1NAZIVVRSTAELEMENT.Anchor                = AnchorStyles.Left;
            this.label1NAZIVVRSTAELEMENT.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVVRSTAELEMENT.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVVRSTAELEMENT.BackColor             = Color.Transparent;
            this.layoutManagerformVRSTAELEMENT.Controls.Add(this.label1NAZIVVRSTAELEMENT, 0, 1);
            this.layoutManagerformVRSTAELEMENT.SetColumnSpan(this.label1NAZIVVRSTAELEMENT, 1);
            this.layoutManagerformVRSTAELEMENT.SetRowSpan(this.label1NAZIVVRSTAELEMENT, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVVRSTAELEMENT.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVVRSTAELEMENT.MinimumSize = size;
            size = new System.Drawing.Size(150, 0x17);
            this.label1NAZIVVRSTAELEMENT.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVVRSTAELEMENT.Location    = point;
            this.textNAZIVVRSTAELEMENT.Name        = "textNAZIVVRSTAELEMENT";
            this.textNAZIVVRSTAELEMENT.Tag         = "NAZIVVRSTAELEMENT";
            this.textNAZIVVRSTAELEMENT.TabIndex    = 0;
            this.textNAZIVVRSTAELEMENT.Anchor      = AnchorStyles.Left;
            this.textNAZIVVRSTAELEMENT.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVVRSTAELEMENT.ReadOnly    = false;
            this.textNAZIVVRSTAELEMENT.DataBindings.Add(new Binding("Text", this.bindingSourceVRSTAELEMENT, "NAZIVVRSTAELEMENT"));
            this.textNAZIVVRSTAELEMENT.MaxLength = 0x19;
            this.layoutManagerformVRSTAELEMENT.Controls.Add(this.textNAZIVVRSTAELEMENT, 1, 1);
            this.layoutManagerformVRSTAELEMENT.SetColumnSpan(this.textNAZIVVRSTAELEMENT, 1);
            this.layoutManagerformVRSTAELEMENT.SetRowSpan(this.textNAZIVVRSTAELEMENT, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVVRSTAELEMENT.Margin = padding;
            size = new System.Drawing.Size(0xbf, 0x16);
            this.textNAZIVVRSTAELEMENT.MinimumSize = size;
            size = new System.Drawing.Size(0xbf, 0x16);
            this.textNAZIVVRSTAELEMENT.Size = size;
            this.Controls.Add(this.layoutManagerformVRSTAELEMENT);
            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.bindingSourceVRSTAELEMENT;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "VRSTAELEMENTFormUserControl";
            this.Text       = "Vrste elementa";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.VRSTAELEMENTFormUserControl_Load);
            this.layoutManagerformVRSTAELEMENT.ResumeLayout(false);
            this.layoutManagerformVRSTAELEMENT.PerformLayout();
            ((ISupportInitialize)this.bindingSourceVRSTAELEMENT).EndInit();
            ((ISupportInitialize)this.textIDVRSTAELEMENTA).EndInit();
            ((ISupportInitialize)this.textNAZIVVRSTAELEMENT).EndInit();
            this.dsVRSTAELEMENTDataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }