예제 #1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsRACUNDataSet1 = new RACUNDataSet();
     this.m_StartRow      = 0;
     this.Cursor          = Cursors.WaitCursor;
     this.m_GridLoading   = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }
예제 #2
0
 public void Initialize(DeklaritMode mode, DataRow parentRow, bool isCopy)
 {
     this.m_ParentRow     = parentRow;
     this.dsRACUNDataSet1 = (RACUNDataSet)this.m_ParentRow.Table.DataSet;
     this.bindingSourceRACUNRacunStavke.DataSource = DataSetUtil.GetSubTreeDataView(this.m_ParentRow, this.dsRACUNDataSet1.Tables["RACUNRacunStavke"]);
     this.bindingSourceRACUNRacunStavke.DataMember = "";
     this.RegisterBindingSources();
     this.m_Mode        = mode;
     this.m_BaseMethods = new GenericFormClass(this.m_FrameworkDescription, this.m_FirstLevelName, "RACUN", this.m_Mode, this.dsRACUNDataSet1, this.dsRACUNDataSet1.RACUNRacunStavke.Columns, this.Controls, this.m_DataGrids, this.m_AutoNumber);
     this.m_BaseMethods.FormLoadStyle();
     if ((this.m_BaseMethods.IsUpdate() || this.m_BaseMethods.IsDelete()) || (this.m_BaseMethods.IsSelect() || isCopy))
     {
         this.m_CurrentRow = (RACUNDataSet.RACUNRacunStavkeRow)((DataRowView)this.bindingSourceRACUNRacunStavke.Current).Row;
     }
     if (this.m_BaseMethods.IsInsert() && !isCopy)
     {
         this.m_CurrentRow = (RACUNDataSet.RACUNRacunStavkeRow)((DataRowView)this.bindingSourceRACUNRacunStavke.AddNew()).Row;
         this.m_CurrentRow.SetParentRow(this.m_ParentRow);
     }
     this.SetFocusInFirstField();
 }
예제 #3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(RACUNFormRACUNRacunStavkeUserControl));

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

            this.layoutManagerformRACUNRacunStavke.Size        = size;
            this.layoutManagerformRACUNRacunStavke.ColumnCount = 2;
            this.layoutManagerformRACUNRacunStavke.RowCount    = 7;
            this.layoutManagerformRACUNRacunStavke.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformRACUNRacunStavke.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformRACUNRacunStavke.RowStyles.Add(new RowStyle());
            this.layoutManagerformRACUNRacunStavke.RowStyles.Add(new RowStyle());
            this.layoutManagerformRACUNRacunStavke.RowStyles.Add(new RowStyle());
            this.layoutManagerformRACUNRacunStavke.RowStyles.Add(new RowStyle());
            this.layoutManagerformRACUNRacunStavke.RowStyles.Add(new RowStyle());
            this.layoutManagerformRACUNRacunStavke.RowStyles.Add(new RowStyle());
            this.layoutManagerformRACUNRacunStavke.RowStyles.Add(new RowStyle());
            this.label1BROJSTAVKE         = new UltraLabel();
            this.textBROJSTAVKE           = new UltraNumericEditor();
            this.label1IDPROIZVOD         = new UltraLabel();
            this.comboIDPROIZVOD          = new PROIZVODComboBox();
            this.label1NAZIVPROIZVODRACUN = new UltraLabel();
            this.textNAZIVPROIZVODRACUN   = new UltraTextEditor();
            this.label1CIJENARACUN        = new UltraLabel();
            this.textCIJENARACUN          = new UltraNumericEditor();
            this.label1KOLICINA           = new UltraLabel();
            this.textKOLICINA             = new UltraNumericEditor();
            this.label1RABAT = new UltraLabel();
            this.textRABAT   = new UltraNumericEditor();
            ((ISupportInitialize)this.textBROJSTAVKE).BeginInit();
            ((ISupportInitialize)this.textNAZIVPROIZVODRACUN).BeginInit();
            ((ISupportInitialize)this.textCIJENARACUN).BeginInit();
            ((ISupportInitialize)this.textKOLICINA).BeginInit();
            ((ISupportInitialize)this.textRABAT).BeginInit();
            this.dsRACUNDataSet1 = new RACUNDataSet();
            this.dsRACUNDataSet1.BeginInit();
            this.SuspendLayout();
            this.dsRACUNDataSet1.DataSetName = "dsRACUN";
            this.dsRACUNDataSet1.Locale      = new CultureInfo("hr-HR");
            this.bindingSourceRACUNRacunStavke.DataSource = this.dsRACUNDataSet1;
            this.bindingSourceRACUNRacunStavke.DataMember = "RACUNRacunStavke";
            ((ISupportInitialize)this.bindingSourceRACUNRacunStavke).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1BROJSTAVKE.Location               = point;
            this.label1BROJSTAVKE.Name                   = "label1BROJSTAVKE";
            this.label1BROJSTAVKE.TabIndex               = 1;
            this.label1BROJSTAVKE.Tag                    = "labelBROJSTAVKE";
            this.label1BROJSTAVKE.Text                   = "Stavka:";
            this.label1BROJSTAVKE.StyleSetName           = "FieldUltraLabel";
            this.label1BROJSTAVKE.AutoSize               = true;
            this.label1BROJSTAVKE.Anchor                 = AnchorStyles.Left;
            this.label1BROJSTAVKE.Appearance.TextVAlign  = VAlign.Middle;
            this.label1BROJSTAVKE.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1BROJSTAVKE.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1BROJSTAVKE.ImageSize            = size;
            this.label1BROJSTAVKE.Appearance.ForeColor = Color.Black;
            this.label1BROJSTAVKE.BackColor            = Color.Transparent;
            this.layoutManagerformRACUNRacunStavke.Controls.Add(this.label1BROJSTAVKE, 0, 0);
            this.layoutManagerformRACUNRacunStavke.SetColumnSpan(this.label1BROJSTAVKE, 1);
            this.layoutManagerformRACUNRacunStavke.SetRowSpan(this.label1BROJSTAVKE, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1BROJSTAVKE.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1BROJSTAVKE.MinimumSize = size;
            size = new System.Drawing.Size(0x3a, 0x17);
            this.label1BROJSTAVKE.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textBROJSTAVKE.Location    = point;
            this.textBROJSTAVKE.Name        = "textBROJSTAVKE";
            this.textBROJSTAVKE.Tag         = "BROJSTAVKE";
            this.textBROJSTAVKE.TabIndex    = 0;
            this.textBROJSTAVKE.Anchor      = AnchorStyles.Left;
            this.textBROJSTAVKE.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textBROJSTAVKE.ReadOnly    = true;
            this.textBROJSTAVKE.TabStop     = false;
            this.textBROJSTAVKE.PromptChar  = ' ';
            this.textBROJSTAVKE.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textBROJSTAVKE.DataBindings.Add(new Binding("Value", this.bindingSourceRACUNRacunStavke, "BROJSTAVKE"));
            this.textBROJSTAVKE.NumericType = NumericType.Integer;
            this.textBROJSTAVKE.MaskInput   = "{LOC}-nnnnnn";
            this.layoutManagerformRACUNRacunStavke.Controls.Add(this.textBROJSTAVKE, 1, 0);
            this.layoutManagerformRACUNRacunStavke.SetColumnSpan(this.textBROJSTAVKE, 1);
            this.layoutManagerformRACUNRacunStavke.SetRowSpan(this.textBROJSTAVKE, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textBROJSTAVKE.Margin = padding;
            size = new System.Drawing.Size(0x3a, 0x16);
            this.textBROJSTAVKE.MinimumSize = size;
            size = new System.Drawing.Size(0x3a, 0x16);
            this.textBROJSTAVKE.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1IDPROIZVOD.Location              = point;
            this.label1IDPROIZVOD.Name                  = "label1IDPROIZVOD";
            this.label1IDPROIZVOD.TabIndex              = 1;
            this.label1IDPROIZVOD.Tag                   = "labelIDPROIZVOD";
            this.label1IDPROIZVOD.Text                  = "Šif. pro:";
            this.label1IDPROIZVOD.StyleSetName          = "FieldUltraLabel";
            this.label1IDPROIZVOD.AutoSize              = true;
            this.label1IDPROIZVOD.Anchor                = AnchorStyles.Left;
            this.label1IDPROIZVOD.Appearance.TextVAlign = VAlign.Middle;
            this.label1IDPROIZVOD.Appearance.ForeColor  = Color.Black;
            this.label1IDPROIZVOD.BackColor             = Color.Transparent;
            this.layoutManagerformRACUNRacunStavke.Controls.Add(this.label1IDPROIZVOD, 0, 1);
            this.layoutManagerformRACUNRacunStavke.SetColumnSpan(this.label1IDPROIZVOD, 1);
            this.layoutManagerformRACUNRacunStavke.SetRowSpan(this.label1IDPROIZVOD, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1IDPROIZVOD.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDPROIZVOD.MinimumSize = size;
            size = new System.Drawing.Size(0x40, 0x17);
            this.label1IDPROIZVOD.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.comboIDPROIZVOD.Location                  = point;
            this.comboIDPROIZVOD.Name                      = "comboIDPROIZVOD";
            this.comboIDPROIZVOD.Tag                       = "IDPROIZVOD";
            this.comboIDPROIZVOD.TabIndex                  = 0;
            this.comboIDPROIZVOD.Anchor                    = AnchorStyles.Left;
            this.comboIDPROIZVOD.MouseEnter               += new EventHandler(this.mouseEnter_Text);
            this.comboIDPROIZVOD.DropDownStyle             = DropDownStyle.DropDown;
            this.comboIDPROIZVOD.ComboBox.DropDownStyle    = DropDownStyle.DropDown;
            this.comboIDPROIZVOD.ComboBox.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Suggest;
            this.comboIDPROIZVOD.Enabled                   = true;
            this.comboIDPROIZVOD.DataBindings.Add(new Binding("Value", this.bindingSourceRACUNRacunStavke, "IDPROIZVOD"));
            this.comboIDPROIZVOD.ShowPictureBox     = true;
            this.comboIDPROIZVOD.PictureBoxClicked += new EventHandler(this.PictureBoxClickedIDPROIZVOD);
            this.comboIDPROIZVOD.ValueMember        = "IDPROIZVOD";
            this.comboIDPROIZVOD.SelectionChanged  += new EventHandler(this.SelectedIndexChangedIDPROIZVOD);
            this.layoutManagerformRACUNRacunStavke.Controls.Add(this.comboIDPROIZVOD, 1, 1);
            this.layoutManagerformRACUNRacunStavke.SetColumnSpan(this.comboIDPROIZVOD, 1);
            this.layoutManagerformRACUNRacunStavke.SetRowSpan(this.comboIDPROIZVOD, 1);
            padding = new Padding(0, 1, 3, 2);
            this.comboIDPROIZVOD.Margin = padding;
            size = new System.Drawing.Size(0x268, 0x17);
            this.comboIDPROIZVOD.MinimumSize = size;
            size = new System.Drawing.Size(0x268, 0x17);
            this.comboIDPROIZVOD.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVPROIZVODRACUN.Location              = point;
            this.label1NAZIVPROIZVODRACUN.Name                  = "label1NAZIVPROIZVODRACUN";
            this.label1NAZIVPROIZVODRACUN.TabIndex              = 1;
            this.label1NAZIVPROIZVODRACUN.Tag                   = "labelNAZIVPROIZVODRACUN";
            this.label1NAZIVPROIZVODRACUN.Text                  = "Proizvod:";
            this.label1NAZIVPROIZVODRACUN.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVPROIZVODRACUN.AutoSize              = true;
            this.label1NAZIVPROIZVODRACUN.Anchor                = AnchorStyles.Left | AnchorStyles.Top;
            this.label1NAZIVPROIZVODRACUN.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVPROIZVODRACUN.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVPROIZVODRACUN.BackColor             = Color.Transparent;
            this.layoutManagerformRACUNRacunStavke.Controls.Add(this.label1NAZIVPROIZVODRACUN, 0, 2);
            this.layoutManagerformRACUNRacunStavke.SetColumnSpan(this.label1NAZIVPROIZVODRACUN, 1);
            this.layoutManagerformRACUNRacunStavke.SetRowSpan(this.label1NAZIVPROIZVODRACUN, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVPROIZVODRACUN.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVPROIZVODRACUN.MinimumSize = size;
            size = new System.Drawing.Size(0x49, 0x17);
            this.label1NAZIVPROIZVODRACUN.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVPROIZVODRACUN.Location    = point;
            this.textNAZIVPROIZVODRACUN.Name        = "textNAZIVPROIZVODRACUN";
            this.textNAZIVPROIZVODRACUN.Tag         = "NAZIVPROIZVODRACUN";
            this.textNAZIVPROIZVODRACUN.TabIndex    = 0;
            this.textNAZIVPROIZVODRACUN.Anchor      = AnchorStyles.Left;
            this.textNAZIVPROIZVODRACUN.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVPROIZVODRACUN.ReadOnly    = false;
            this.textNAZIVPROIZVODRACUN.DataBindings.Add(new Binding("Text", this.bindingSourceRACUNRacunStavke, "NAZIVPROIZVODRACUN"));
            this.textNAZIVPROIZVODRACUN.Multiline = true;
            this.textNAZIVPROIZVODRACUN.MaxLength = 500;
            this.layoutManagerformRACUNRacunStavke.Controls.Add(this.textNAZIVPROIZVODRACUN, 1, 2);
            this.layoutManagerformRACUNRacunStavke.SetColumnSpan(this.textNAZIVPROIZVODRACUN, 1);
            this.layoutManagerformRACUNRacunStavke.SetRowSpan(this.textNAZIVPROIZVODRACUN, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVPROIZVODRACUN.Margin = padding;
            size = new System.Drawing.Size(0x240, 110);
            this.textNAZIVPROIZVODRACUN.MinimumSize = size;
            size = new System.Drawing.Size(0x240, 110);
            this.textNAZIVPROIZVODRACUN.Size = size;
            this.textNAZIVPROIZVODRACUN.Dock = DockStyle.Fill;
            point = new System.Drawing.Point(0, 0);
            this.label1CIJENARACUN.Location              = point;
            this.label1CIJENARACUN.Name                  = "label1CIJENARACUN";
            this.label1CIJENARACUN.TabIndex              = 1;
            this.label1CIJENARACUN.Tag                   = "labelCIJENARACUN";
            this.label1CIJENARACUN.Text                  = "Cijena:";
            this.label1CIJENARACUN.StyleSetName          = "FieldUltraLabel";
            this.label1CIJENARACUN.AutoSize              = true;
            this.label1CIJENARACUN.Anchor                = AnchorStyles.Left;
            this.label1CIJENARACUN.Appearance.TextVAlign = VAlign.Middle;
            this.label1CIJENARACUN.Appearance.ForeColor  = Color.Black;
            this.label1CIJENARACUN.BackColor             = Color.Transparent;
            this.layoutManagerformRACUNRacunStavke.Controls.Add(this.label1CIJENARACUN, 0, 3);
            this.layoutManagerformRACUNRacunStavke.SetColumnSpan(this.label1CIJENARACUN, 1);
            this.layoutManagerformRACUNRacunStavke.SetRowSpan(this.label1CIJENARACUN, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1CIJENARACUN.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1CIJENARACUN.MinimumSize = size;
            size = new System.Drawing.Size(0x3a, 0x17);
            this.label1CIJENARACUN.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textCIJENARACUN.Location    = point;
            this.textCIJENARACUN.Name        = "textCIJENARACUN";
            this.textCIJENARACUN.Tag         = "CIJENARACUN";
            this.textCIJENARACUN.TabIndex    = 0;
            this.textCIJENARACUN.Anchor      = AnchorStyles.Left;
            this.textCIJENARACUN.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textCIJENARACUN.ReadOnly    = false;
            this.textCIJENARACUN.PromptChar  = ' ';
            this.textCIJENARACUN.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textCIJENARACUN.DataBindings.Add(new Binding("Value", this.bindingSourceRACUNRacunStavke, "CIJENARACUN"));
            this.textCIJENARACUN.NumericType = NumericType.Double;
            this.textCIJENARACUN.MaxValue    = 79228162514264337593543950335M;
            this.textCIJENARACUN.MinValue    = -79228162514264337593543950335M;
            this.textCIJENARACUN.MaskInput   = "{LOC}-nnnnn.nnnn";
            this.layoutManagerformRACUNRacunStavke.Controls.Add(this.textCIJENARACUN, 1, 3);
            this.layoutManagerformRACUNRacunStavke.SetColumnSpan(this.textCIJENARACUN, 1);
            this.layoutManagerformRACUNRacunStavke.SetRowSpan(this.textCIJENARACUN, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textCIJENARACUN.Margin = padding;
            size = new System.Drawing.Size(0x52, 0x16);
            this.textCIJENARACUN.MinimumSize = size;
            size = new System.Drawing.Size(0x52, 0x16);
            this.textCIJENARACUN.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1KOLICINA.Location              = point;
            this.label1KOLICINA.Name                  = "label1KOLICINA";
            this.label1KOLICINA.TabIndex              = 1;
            this.label1KOLICINA.Tag                   = "labelKOLICINA";
            this.label1KOLICINA.Text                  = "Količina:";
            this.label1KOLICINA.StyleSetName          = "FieldUltraLabel";
            this.label1KOLICINA.AutoSize              = true;
            this.label1KOLICINA.Anchor                = AnchorStyles.Left;
            this.label1KOLICINA.Appearance.TextVAlign = VAlign.Middle;
            this.label1KOLICINA.Appearance.ForeColor  = Color.Black;
            this.label1KOLICINA.BackColor             = Color.Transparent;
            this.layoutManagerformRACUNRacunStavke.Controls.Add(this.label1KOLICINA, 0, 4);
            this.layoutManagerformRACUNRacunStavke.SetColumnSpan(this.label1KOLICINA, 1);
            this.layoutManagerformRACUNRacunStavke.SetRowSpan(this.label1KOLICINA, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1KOLICINA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1KOLICINA.MinimumSize = size;
            size = new System.Drawing.Size(0x44, 0x17);
            this.label1KOLICINA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textKOLICINA.Location    = point;
            this.textKOLICINA.Name        = "textKOLICINA";
            this.textKOLICINA.Tag         = "KOLICINA";
            this.textKOLICINA.TabIndex    = 0;
            this.textKOLICINA.Anchor      = AnchorStyles.Left;
            this.textKOLICINA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textKOLICINA.ReadOnly    = false;
            this.textKOLICINA.PromptChar  = ' ';
            this.textKOLICINA.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textKOLICINA.DataBindings.Add(new Binding("Value", this.bindingSourceRACUNRacunStavke, "KOLICINA"));
            this.textKOLICINA.NumericType = NumericType.Double;
            this.textKOLICINA.MaxValue    = 79228162514264337593543950335M;
            this.textKOLICINA.MinValue    = -79228162514264337593543950335M;
            this.textKOLICINA.MaskInput   = "{LOC}-nnnnnnnnnn.nn";
            this.layoutManagerformRACUNRacunStavke.Controls.Add(this.textKOLICINA, 1, 4);
            this.layoutManagerformRACUNRacunStavke.SetColumnSpan(this.textKOLICINA, 1);
            this.layoutManagerformRACUNRacunStavke.SetRowSpan(this.textKOLICINA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textKOLICINA.Margin = padding;
            size = new System.Drawing.Size(0x66, 0x16);
            this.textKOLICINA.MinimumSize = size;
            size = new System.Drawing.Size(0x66, 0x16);
            this.textKOLICINA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1RABAT.Location              = point;
            this.label1RABAT.Name                  = "label1RABAT";
            this.label1RABAT.TabIndex              = 1;
            this.label1RABAT.Tag                   = "labelRABAT";
            this.label1RABAT.Text                  = "% Rabat:";
            this.label1RABAT.StyleSetName          = "FieldUltraLabel";
            this.label1RABAT.AutoSize              = true;
            this.label1RABAT.Anchor                = AnchorStyles.Left;
            this.label1RABAT.Appearance.TextVAlign = VAlign.Middle;
            this.label1RABAT.Appearance.ForeColor  = Color.Black;
            this.label1RABAT.BackColor             = Color.Transparent;
            this.layoutManagerformRACUNRacunStavke.Controls.Add(this.label1RABAT, 0, 5);
            this.layoutManagerformRACUNRacunStavke.SetColumnSpan(this.label1RABAT, 1);
            this.layoutManagerformRACUNRacunStavke.SetRowSpan(this.label1RABAT, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1RABAT.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1RABAT.MinimumSize = size;
            size = new System.Drawing.Size(0x4a, 0x17);
            this.label1RABAT.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textRABAT.Location    = point;
            this.textRABAT.Name        = "textRABAT";
            this.textRABAT.Tag         = "RABAT";
            this.textRABAT.TabIndex    = 0;
            this.textRABAT.Anchor      = AnchorStyles.Left;
            this.textRABAT.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textRABAT.ReadOnly    = false;
            this.textRABAT.PromptChar  = ' ';
            this.textRABAT.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textRABAT.DataBindings.Add(new Binding("Value", this.bindingSourceRACUNRacunStavke, "RABAT"));
            this.textRABAT.NumericType = NumericType.Double;
            this.textRABAT.MaxValue    = 79228162514264337593543950335M;
            this.textRABAT.MinValue    = -79228162514264337593543950335M;
            this.textRABAT.MaskInput   = "{LOC}-nnn.nn";
            this.layoutManagerformRACUNRacunStavke.Controls.Add(this.textRABAT, 1, 5);
            this.layoutManagerformRACUNRacunStavke.SetColumnSpan(this.textRABAT, 1);
            this.layoutManagerformRACUNRacunStavke.SetRowSpan(this.textRABAT, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textRABAT.Margin = padding;
            size = new System.Drawing.Size(0x37, 0x16);
            this.textRABAT.MinimumSize = size;
            size = new System.Drawing.Size(0x37, 0x16);
            this.textRABAT.Size = size;
            this.Controls.Add(this.layoutManagerformRACUNRacunStavke);
            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.bindingSourceRACUNRacunStavke;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "RACUNFormRACUNRacunStavkeUserControl";
            this.Text       = " Stavke racuna";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.RACUNFormUserControl_Load);
            this.layoutManagerformRACUNRacunStavke.ResumeLayout(false);
            this.layoutManagerformRACUNRacunStavke.PerformLayout();
            ((ISupportInitialize)this.bindingSourceRACUNRacunStavke).EndInit();
            ((ISupportInitialize)this.textBROJSTAVKE).EndInit();
            ((ISupportInitialize)this.textNAZIVPROIZVODRACUN).EndInit();
            ((ISupportInitialize)this.textCIJENARACUN).EndInit();
            ((ISupportInitialize)this.textKOLICINA).EndInit();
            ((ISupportInitialize)this.textRABAT).EndInit();
            this.dsRACUNDataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
예제 #4
0
 public void ChangeBinding()
 {
     this.bindingSourceRACUNRacunStavke.DataSource = this.RACUNController.DataSet;
     this.dsRACUNDataSet1 = this.RACUNController.DataSet;
 }