Esempio n. 1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsGRUPEOLAKSICADataSet1 = new GRUPEOLAKSICADataSet();
     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.bindingSourceGRUPEOLAKSICA.DataSource = this.GRUPEOLAKSICAController.DataSet;
     this.dsGRUPEOLAKSICADataSet1 = this.GRUPEOLAKSICAController.DataSet;
 }
Esempio n. 3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(GRUPEOLAKSICAFormUserControl));

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

            this.layoutManagerformGRUPEOLAKSICA.Size        = size;
            this.layoutManagerformGRUPEOLAKSICA.ColumnCount = 2;
            this.layoutManagerformGRUPEOLAKSICA.RowCount    = 4;
            this.layoutManagerformGRUPEOLAKSICA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformGRUPEOLAKSICA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformGRUPEOLAKSICA.RowStyles.Add(new RowStyle());
            this.layoutManagerformGRUPEOLAKSICA.RowStyles.Add(new RowStyle());
            this.layoutManagerformGRUPEOLAKSICA.RowStyles.Add(new RowStyle());
            this.layoutManagerformGRUPEOLAKSICA.RowStyles.Add(new RowStyle());
            this.label1IDGRUPEOLAKSICA     = new UltraLabel();
            this.textIDGRUPEOLAKSICA       = new UltraNumericEditor();
            this.label1NAZIVGRUPEOLAKSICA  = new UltraLabel();
            this.textNAZIVGRUPEOLAKSICA    = new UltraTextEditor();
            this.label1MAXIMALNIIZNOSGRUPE = new UltraLabel();
            this.textMAXIMALNIIZNOSGRUPE   = new UltraNumericEditor();
            ((ISupportInitialize)this.textIDGRUPEOLAKSICA).BeginInit();
            ((ISupportInitialize)this.textNAZIVGRUPEOLAKSICA).BeginInit();
            ((ISupportInitialize)this.textMAXIMALNIIZNOSGRUPE).BeginInit();
            this.dsGRUPEOLAKSICADataSet1 = new GRUPEOLAKSICADataSet();
            this.dsGRUPEOLAKSICADataSet1.BeginInit();
            this.SuspendLayout();
            this.dsGRUPEOLAKSICADataSet1.DataSetName   = "dsGRUPEOLAKSICA";
            this.dsGRUPEOLAKSICADataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceGRUPEOLAKSICA.DataSource = this.dsGRUPEOLAKSICADataSet1;
            this.bindingSourceGRUPEOLAKSICA.DataMember = "GRUPEOLAKSICA";
            ((ISupportInitialize)this.bindingSourceGRUPEOLAKSICA).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDGRUPEOLAKSICA.Location               = point;
            this.label1IDGRUPEOLAKSICA.Name                   = "label1IDGRUPEOLAKSICA";
            this.label1IDGRUPEOLAKSICA.TabIndex               = 1;
            this.label1IDGRUPEOLAKSICA.Tag                    = "labelIDGRUPEOLAKSICA";
            this.label1IDGRUPEOLAKSICA.Text                   = "Šifra grupe olakšica:";
            this.label1IDGRUPEOLAKSICA.StyleSetName           = "FieldUltraLabel";
            this.label1IDGRUPEOLAKSICA.AutoSize               = true;
            this.label1IDGRUPEOLAKSICA.Anchor                 = AnchorStyles.Left;
            this.label1IDGRUPEOLAKSICA.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDGRUPEOLAKSICA.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDGRUPEOLAKSICA.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDGRUPEOLAKSICA.ImageSize            = size;
            this.label1IDGRUPEOLAKSICA.Appearance.ForeColor = Color.Black;
            this.label1IDGRUPEOLAKSICA.BackColor            = Color.Transparent;
            this.layoutManagerformGRUPEOLAKSICA.Controls.Add(this.label1IDGRUPEOLAKSICA, 0, 0);
            this.layoutManagerformGRUPEOLAKSICA.SetColumnSpan(this.label1IDGRUPEOLAKSICA, 1);
            this.layoutManagerformGRUPEOLAKSICA.SetRowSpan(this.label1IDGRUPEOLAKSICA, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDGRUPEOLAKSICA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDGRUPEOLAKSICA.MinimumSize = size;
            size = new System.Drawing.Size(0x8b, 0x17);
            this.label1IDGRUPEOLAKSICA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDGRUPEOLAKSICA.Location    = point;
            this.textIDGRUPEOLAKSICA.Name        = "textIDGRUPEOLAKSICA";
            this.textIDGRUPEOLAKSICA.Tag         = "IDGRUPEOLAKSICA";
            this.textIDGRUPEOLAKSICA.TabIndex    = 0;
            this.textIDGRUPEOLAKSICA.Anchor      = AnchorStyles.Left;
            this.textIDGRUPEOLAKSICA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDGRUPEOLAKSICA.ReadOnly    = false;
            this.textIDGRUPEOLAKSICA.PromptChar  = ' ';
            this.textIDGRUPEOLAKSICA.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDGRUPEOLAKSICA.DataBindings.Add(new Binding("Value", this.bindingSourceGRUPEOLAKSICA, "IDGRUPEOLAKSICA"));
            this.textIDGRUPEOLAKSICA.NumericType = NumericType.Integer;
            this.textIDGRUPEOLAKSICA.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformGRUPEOLAKSICA.Controls.Add(this.textIDGRUPEOLAKSICA, 1, 0);
            this.layoutManagerformGRUPEOLAKSICA.SetColumnSpan(this.textIDGRUPEOLAKSICA, 1);
            this.layoutManagerformGRUPEOLAKSICA.SetRowSpan(this.textIDGRUPEOLAKSICA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDGRUPEOLAKSICA.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDGRUPEOLAKSICA.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDGRUPEOLAKSICA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVGRUPEOLAKSICA.Location              = point;
            this.label1NAZIVGRUPEOLAKSICA.Name                  = "label1NAZIVGRUPEOLAKSICA";
            this.label1NAZIVGRUPEOLAKSICA.TabIndex              = 1;
            this.label1NAZIVGRUPEOLAKSICA.Tag                   = "labelNAZIVGRUPEOLAKSICA";
            this.label1NAZIVGRUPEOLAKSICA.Text                  = "Naziv grupe olakšice:";
            this.label1NAZIVGRUPEOLAKSICA.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVGRUPEOLAKSICA.AutoSize              = true;
            this.label1NAZIVGRUPEOLAKSICA.Anchor                = AnchorStyles.Left;
            this.label1NAZIVGRUPEOLAKSICA.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVGRUPEOLAKSICA.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVGRUPEOLAKSICA.BackColor             = Color.Transparent;
            this.layoutManagerformGRUPEOLAKSICA.Controls.Add(this.label1NAZIVGRUPEOLAKSICA, 0, 1);
            this.layoutManagerformGRUPEOLAKSICA.SetColumnSpan(this.label1NAZIVGRUPEOLAKSICA, 1);
            this.layoutManagerformGRUPEOLAKSICA.SetRowSpan(this.label1NAZIVGRUPEOLAKSICA, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVGRUPEOLAKSICA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVGRUPEOLAKSICA.MinimumSize = size;
            size = new System.Drawing.Size(0x93, 0x17);
            this.label1NAZIVGRUPEOLAKSICA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVGRUPEOLAKSICA.Location    = point;
            this.textNAZIVGRUPEOLAKSICA.Name        = "textNAZIVGRUPEOLAKSICA";
            this.textNAZIVGRUPEOLAKSICA.Tag         = "NAZIVGRUPEOLAKSICA";
            this.textNAZIVGRUPEOLAKSICA.TabIndex    = 0;
            this.textNAZIVGRUPEOLAKSICA.Anchor      = AnchorStyles.Left;
            this.textNAZIVGRUPEOLAKSICA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVGRUPEOLAKSICA.ReadOnly    = false;
            this.textNAZIVGRUPEOLAKSICA.DataBindings.Add(new Binding("Text", this.bindingSourceGRUPEOLAKSICA, "NAZIVGRUPEOLAKSICA"));
            this.textNAZIVGRUPEOLAKSICA.MaxLength = 100;
            this.layoutManagerformGRUPEOLAKSICA.Controls.Add(this.textNAZIVGRUPEOLAKSICA, 1, 1);
            this.layoutManagerformGRUPEOLAKSICA.SetColumnSpan(this.textNAZIVGRUPEOLAKSICA, 1);
            this.layoutManagerformGRUPEOLAKSICA.SetRowSpan(this.textNAZIVGRUPEOLAKSICA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVGRUPEOLAKSICA.Margin = padding;
            size = new System.Drawing.Size(0x240, 0x16);
            this.textNAZIVGRUPEOLAKSICA.MinimumSize = size;
            size = new System.Drawing.Size(0x240, 0x16);
            this.textNAZIVGRUPEOLAKSICA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1MAXIMALNIIZNOSGRUPE.Location              = point;
            this.label1MAXIMALNIIZNOSGRUPE.Name                  = "label1MAXIMALNIIZNOSGRUPE";
            this.label1MAXIMALNIIZNOSGRUPE.TabIndex              = 1;
            this.label1MAXIMALNIIZNOSGRUPE.Tag                   = "labelMAXIMALNIIZNOSGRUPE";
            this.label1MAXIMALNIIZNOSGRUPE.Text                  = "Maks. iznos olakšica u grupi:";
            this.label1MAXIMALNIIZNOSGRUPE.StyleSetName          = "FieldUltraLabel";
            this.label1MAXIMALNIIZNOSGRUPE.AutoSize              = true;
            this.label1MAXIMALNIIZNOSGRUPE.Anchor                = AnchorStyles.Left;
            this.label1MAXIMALNIIZNOSGRUPE.Appearance.TextVAlign = VAlign.Middle;
            this.label1MAXIMALNIIZNOSGRUPE.Appearance.ForeColor  = Color.Black;
            this.label1MAXIMALNIIZNOSGRUPE.BackColor             = Color.Transparent;
            this.layoutManagerformGRUPEOLAKSICA.Controls.Add(this.label1MAXIMALNIIZNOSGRUPE, 0, 2);
            this.layoutManagerformGRUPEOLAKSICA.SetColumnSpan(this.label1MAXIMALNIIZNOSGRUPE, 1);
            this.layoutManagerformGRUPEOLAKSICA.SetRowSpan(this.label1MAXIMALNIIZNOSGRUPE, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1MAXIMALNIIZNOSGRUPE.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1MAXIMALNIIZNOSGRUPE.MinimumSize = size;
            size = new System.Drawing.Size(0xc0, 0x17);
            this.label1MAXIMALNIIZNOSGRUPE.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textMAXIMALNIIZNOSGRUPE.Location    = point;
            this.textMAXIMALNIIZNOSGRUPE.Name        = "textMAXIMALNIIZNOSGRUPE";
            this.textMAXIMALNIIZNOSGRUPE.Tag         = "MAXIMALNIIZNOSGRUPE";
            this.textMAXIMALNIIZNOSGRUPE.TabIndex    = 0;
            this.textMAXIMALNIIZNOSGRUPE.Anchor      = AnchorStyles.Left;
            this.textMAXIMALNIIZNOSGRUPE.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textMAXIMALNIIZNOSGRUPE.ReadOnly    = false;
            this.textMAXIMALNIIZNOSGRUPE.PromptChar  = ' ';
            this.textMAXIMALNIIZNOSGRUPE.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textMAXIMALNIIZNOSGRUPE.DataBindings.Add(new Binding("Value", this.bindingSourceGRUPEOLAKSICA, "MAXIMALNIIZNOSGRUPE"));
            this.textMAXIMALNIIZNOSGRUPE.NumericType = NumericType.Double;
            this.textMAXIMALNIIZNOSGRUPE.MaxValue    = 79228162514264337593543950335M;
            this.textMAXIMALNIIZNOSGRUPE.MinValue    = -79228162514264337593543950335M;
            this.textMAXIMALNIIZNOSGRUPE.MaskInput   = "{LOC}-nnnnnnnnnn.nn";
            this.layoutManagerformGRUPEOLAKSICA.Controls.Add(this.textMAXIMALNIIZNOSGRUPE, 1, 2);
            this.layoutManagerformGRUPEOLAKSICA.SetColumnSpan(this.textMAXIMALNIIZNOSGRUPE, 1);
            this.layoutManagerformGRUPEOLAKSICA.SetRowSpan(this.textMAXIMALNIIZNOSGRUPE, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textMAXIMALNIIZNOSGRUPE.Margin = padding;
            size = new System.Drawing.Size(0x66, 0x16);
            this.textMAXIMALNIIZNOSGRUPE.MinimumSize = size;
            size = new System.Drawing.Size(0x66, 0x16);
            this.textMAXIMALNIIZNOSGRUPE.Size = size;
            this.Controls.Add(this.layoutManagerformGRUPEOLAKSICA);
            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.bindingSourceGRUPEOLAKSICA;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "GRUPEOLAKSICAFormUserControl";
            this.Text       = "Grupe olakšica";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.GRUPEOLAKSICAFormUserControl_Load);
            this.layoutManagerformGRUPEOLAKSICA.ResumeLayout(false);
            this.layoutManagerformGRUPEOLAKSICA.PerformLayout();
            ((ISupportInitialize)this.bindingSourceGRUPEOLAKSICA).EndInit();
            ((ISupportInitialize)this.textIDGRUPEOLAKSICA).EndInit();
            ((ISupportInitialize)this.textNAZIVGRUPEOLAKSICA).EndInit();
            ((ISupportInitialize)this.textMAXIMALNIIZNOSGRUPE).EndInit();
            this.dsGRUPEOLAKSICADataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }