Exemple #1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsVALUTEDataSet1 = new VALUTEDataSet();
     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.bindingSourceVALUTE.DataSource = this.VALUTEController.DataSet;
     this.dsVALUTEDataSet1 = this.VALUTEController.DataSet;
 }
Exemple #3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(VALUTEFormUserControl));

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

            this.layoutManagerformVALUTE.Size        = size;
            this.layoutManagerformVALUTE.ColumnCount = 2;
            this.layoutManagerformVALUTE.RowCount    = 4;
            this.layoutManagerformVALUTE.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformVALUTE.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformVALUTE.RowStyles.Add(new RowStyle());
            this.layoutManagerformVALUTE.RowStyles.Add(new RowStyle());
            this.layoutManagerformVALUTE.RowStyles.Add(new RowStyle());
            this.layoutManagerformVALUTE.RowStyles.Add(new RowStyle());
            this.label1IDVALUTA    = new UltraLabel();
            this.textIDVALUTA      = new UltraNumericEditor();
            this.label1NAZIVVALUTA = new UltraLabel();
            this.textNAZIVVALUTA   = new UltraTextEditor();
            this.label1TECAJ       = new UltraLabel();
            this.textTECAJ         = new UltraNumericEditor();
            ((ISupportInitialize)this.textIDVALUTA).BeginInit();
            ((ISupportInitialize)this.textNAZIVVALUTA).BeginInit();
            ((ISupportInitialize)this.textTECAJ).BeginInit();
            this.dsVALUTEDataSet1 = new VALUTEDataSet();
            this.dsVALUTEDataSet1.BeginInit();
            this.SuspendLayout();
            this.dsVALUTEDataSet1.DataSetName   = "dsVALUTE";
            this.dsVALUTEDataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceVALUTE.DataSource = this.dsVALUTEDataSet1;
            this.bindingSourceVALUTE.DataMember = "VALUTE";
            ((ISupportInitialize)this.bindingSourceVALUTE).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDVALUTA.Location               = point;
            this.label1IDVALUTA.Name                   = "label1IDVALUTA";
            this.label1IDVALUTA.TabIndex               = 1;
            this.label1IDVALUTA.Tag                    = "labelIDVALUTA";
            this.label1IDVALUTA.Text                   = "Šifra valute:";
            this.label1IDVALUTA.StyleSetName           = "FieldUltraLabel";
            this.label1IDVALUTA.AutoSize               = true;
            this.label1IDVALUTA.Anchor                 = AnchorStyles.Left;
            this.label1IDVALUTA.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDVALUTA.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDVALUTA.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDVALUTA.ImageSize            = size;
            this.label1IDVALUTA.Appearance.ForeColor = Color.Black;
            this.label1IDVALUTA.BackColor            = Color.Transparent;
            this.layoutManagerformVALUTE.Controls.Add(this.label1IDVALUTA, 0, 0);
            this.layoutManagerformVALUTE.SetColumnSpan(this.label1IDVALUTA, 1);
            this.layoutManagerformVALUTE.SetRowSpan(this.label1IDVALUTA, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDVALUTA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDVALUTA.MinimumSize = size;
            size = new System.Drawing.Size(0x57, 0x17);
            this.label1IDVALUTA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDVALUTA.Location    = point;
            this.textIDVALUTA.Name        = "textIDVALUTA";
            this.textIDVALUTA.Tag         = "IDVALUTA";
            this.textIDVALUTA.TabIndex    = 0;
            this.textIDVALUTA.Anchor      = AnchorStyles.Left;
            this.textIDVALUTA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDVALUTA.ReadOnly    = false;
            this.textIDVALUTA.PromptChar  = ' ';
            this.textIDVALUTA.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDVALUTA.DataBindings.Add(new Binding("Value", this.bindingSourceVALUTE, "IDVALUTA"));
            this.textIDVALUTA.NumericType = NumericType.Integer;
            this.textIDVALUTA.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformVALUTE.Controls.Add(this.textIDVALUTA, 1, 0);
            this.layoutManagerformVALUTE.SetColumnSpan(this.textIDVALUTA, 1);
            this.layoutManagerformVALUTE.SetRowSpan(this.textIDVALUTA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDVALUTA.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDVALUTA.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDVALUTA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVVALUTA.Location              = point;
            this.label1NAZIVVALUTA.Name                  = "label1NAZIVVALUTA";
            this.label1NAZIVVALUTA.TabIndex              = 1;
            this.label1NAZIVVALUTA.Tag                   = "labelNAZIVVALUTA";
            this.label1NAZIVVALUTA.Text                  = "Naziv valute:";
            this.label1NAZIVVALUTA.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVVALUTA.AutoSize              = true;
            this.label1NAZIVVALUTA.Anchor                = AnchorStyles.Left;
            this.label1NAZIVVALUTA.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVVALUTA.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVVALUTA.BackColor             = Color.Transparent;
            this.layoutManagerformVALUTE.Controls.Add(this.label1NAZIVVALUTA, 0, 1);
            this.layoutManagerformVALUTE.SetColumnSpan(this.label1NAZIVVALUTA, 1);
            this.layoutManagerformVALUTE.SetRowSpan(this.label1NAZIVVALUTA, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVVALUTA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVVALUTA.MinimumSize = size;
            size = new System.Drawing.Size(0x60, 0x17);
            this.label1NAZIVVALUTA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVVALUTA.Location    = point;
            this.textNAZIVVALUTA.Name        = "textNAZIVVALUTA";
            this.textNAZIVVALUTA.Tag         = "NAZIVVALUTA";
            this.textNAZIVVALUTA.TabIndex    = 0;
            this.textNAZIVVALUTA.Anchor      = AnchorStyles.Left;
            this.textNAZIVVALUTA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVVALUTA.ReadOnly    = false;
            this.textNAZIVVALUTA.DataBindings.Add(new Binding("Text", this.bindingSourceVALUTE, "NAZIVVALUTA"));
            this.textNAZIVVALUTA.MaxLength = 50;
            this.layoutManagerformVALUTE.Controls.Add(this.textNAZIVVALUTA, 1, 1);
            this.layoutManagerformVALUTE.SetColumnSpan(this.textNAZIVVALUTA, 1);
            this.layoutManagerformVALUTE.SetRowSpan(this.textNAZIVVALUTA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVVALUTA.Margin = padding;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVVALUTA.MinimumSize = size;
            size = new System.Drawing.Size(0x16e, 0x16);
            this.textNAZIVVALUTA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1TECAJ.Location              = point;
            this.label1TECAJ.Name                  = "label1TECAJ";
            this.label1TECAJ.TabIndex              = 1;
            this.label1TECAJ.Tag                   = "labelTECAJ";
            this.label1TECAJ.Text                  = "Tečaj:";
            this.label1TECAJ.StyleSetName          = "FieldUltraLabel";
            this.label1TECAJ.AutoSize              = true;
            this.label1TECAJ.Anchor                = AnchorStyles.Left;
            this.label1TECAJ.Appearance.TextVAlign = VAlign.Middle;
            this.label1TECAJ.Appearance.ForeColor  = Color.Black;
            this.label1TECAJ.BackColor             = Color.Transparent;
            this.layoutManagerformVALUTE.Controls.Add(this.label1TECAJ, 0, 2);
            this.layoutManagerformVALUTE.SetColumnSpan(this.label1TECAJ, 1);
            this.layoutManagerformVALUTE.SetRowSpan(this.label1TECAJ, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1TECAJ.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1TECAJ.MinimumSize = size;
            size = new System.Drawing.Size(0x34, 0x17);
            this.label1TECAJ.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textTECAJ.Location    = point;
            this.textTECAJ.Name        = "textTECAJ";
            this.textTECAJ.Tag         = "TECAJ";
            this.textTECAJ.TabIndex    = 0;
            this.textTECAJ.Anchor      = AnchorStyles.Left;
            this.textTECAJ.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textTECAJ.ReadOnly    = false;
            this.textTECAJ.PromptChar  = ' ';
            this.textTECAJ.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textTECAJ.DataBindings.Add(new Binding("Value", this.bindingSourceVALUTE, "TECAJ"));
            this.textTECAJ.NumericType = NumericType.Double;
            this.textTECAJ.MaxValue    = 79228162514264337593543950335M;
            this.textTECAJ.MinValue    = -79228162514264337593543950335M;
            this.textTECAJ.MaskInput   = "{LOC}-nnnn.nnnnnnnn";
            this.layoutManagerformVALUTE.Controls.Add(this.textTECAJ, 1, 2);
            this.layoutManagerformVALUTE.SetColumnSpan(this.textTECAJ, 1);
            this.layoutManagerformVALUTE.SetRowSpan(this.textTECAJ, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textTECAJ.Margin = padding;
            size = new System.Drawing.Size(0x66, 0x16);
            this.textTECAJ.MinimumSize = size;
            size = new System.Drawing.Size(0x66, 0x16);
            this.textTECAJ.Size = size;
            this.Controls.Add(this.layoutManagerformVALUTE);
            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.bindingSourceVALUTE;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "VALUTEFormUserControl";
            this.Text       = "Valute i teeajna lista";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.VALUTEFormUserControl_Load);
            this.layoutManagerformVALUTE.ResumeLayout(false);
            this.layoutManagerformVALUTE.PerformLayout();
            ((ISupportInitialize)this.bindingSourceVALUTE).EndInit();
            ((ISupportInitialize)this.textIDVALUTA).EndInit();
            ((ISupportInitialize)this.textNAZIVVALUTA).EndInit();
            ((ISupportInitialize)this.textTECAJ).EndInit();
            this.dsVALUTEDataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }