Example #1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsRAD1MELEMENTIVEZADataSet1 = new RAD1MELEMENTIVEZADataSet();
     this.m_StartRow    = 0;
     this.Cursor        = Cursors.WaitCursor;
     this.m_GridLoading = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }
Example #2
0
 public void ChangeBinding()
 {
     this.bindingSourceRAD1MELEMENTIVEZA.DataSource = this.RAD1MELEMENTIVEZAController.DataSet;
     this.dsRAD1MELEMENTIVEZADataSet1 = this.RAD1MELEMENTIVEZAController.DataSet;
 }
Example #3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(RAD1MELEMENTIVEZAFormUserControl));

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

            this.layoutManagerformRAD1MELEMENTIVEZA.Size        = size;
            this.layoutManagerformRAD1MELEMENTIVEZA.ColumnCount = 2;
            this.layoutManagerformRAD1MELEMENTIVEZA.RowCount    = 3;
            this.layoutManagerformRAD1MELEMENTIVEZA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformRAD1MELEMENTIVEZA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformRAD1MELEMENTIVEZA.RowStyles.Add(new RowStyle());
            this.layoutManagerformRAD1MELEMENTIVEZA.RowStyles.Add(new RowStyle());
            this.layoutManagerformRAD1MELEMENTIVEZA.RowStyles.Add(new RowStyle());
            this.label1RAD1ELEMENTIID        = new UltraLabel();
            this.comboRAD1ELEMENTIID         = new RAD1MELEMENTIComboBox();
            this.label1IDELEMENT             = new UltraLabel();
            this.comboIDELEMENT              = new ELEMENTComboBox();
            this.dsRAD1MELEMENTIVEZADataSet1 = new RAD1MELEMENTIVEZADataSet();
            this.dsRAD1MELEMENTIVEZADataSet1.BeginInit();
            this.SuspendLayout();
            this.dsRAD1MELEMENTIVEZADataSet1.DataSetName   = "dsRAD1MELEMENTIVEZA";
            this.dsRAD1MELEMENTIVEZADataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceRAD1MELEMENTIVEZA.DataSource = this.dsRAD1MELEMENTIVEZADataSet1;
            this.bindingSourceRAD1MELEMENTIVEZA.DataMember = "RAD1MELEMENTIVEZA";
            ((ISupportInitialize)this.bindingSourceRAD1MELEMENTIVEZA).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1RAD1ELEMENTIID.Location               = point;
            this.label1RAD1ELEMENTIID.Name                   = "label1RAD1ELEMENTIID";
            this.label1RAD1ELEMENTIID.TabIndex               = 1;
            this.label1RAD1ELEMENTIID.Tag                    = "labelRAD1ELEMENTIID";
            this.label1RAD1ELEMENTIID.Text                   = "Element iz RAD-1M obrasca:";
            this.label1RAD1ELEMENTIID.StyleSetName           = "FieldUltraLabel";
            this.label1RAD1ELEMENTIID.AutoSize               = true;
            this.label1RAD1ELEMENTIID.Anchor                 = AnchorStyles.Left;
            this.label1RAD1ELEMENTIID.Appearance.TextVAlign  = VAlign.Middle;
            this.label1RAD1ELEMENTIID.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1RAD1ELEMENTIID.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1RAD1ELEMENTIID.ImageSize            = size;
            this.label1RAD1ELEMENTIID.Appearance.ForeColor = Color.Black;
            this.label1RAD1ELEMENTIID.BackColor            = Color.Transparent;
            this.layoutManagerformRAD1MELEMENTIVEZA.Controls.Add(this.label1RAD1ELEMENTIID, 0, 0);
            this.layoutManagerformRAD1MELEMENTIVEZA.SetColumnSpan(this.label1RAD1ELEMENTIID, 1);
            this.layoutManagerformRAD1MELEMENTIVEZA.SetRowSpan(this.label1RAD1ELEMENTIID, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1RAD1ELEMENTIID.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1RAD1ELEMENTIID.MinimumSize = size;
            size = new System.Drawing.Size(0xbb, 0x17);
            this.label1RAD1ELEMENTIID.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.comboRAD1ELEMENTIID.Location                  = point;
            this.comboRAD1ELEMENTIID.Name                      = "comboRAD1ELEMENTIID";
            this.comboRAD1ELEMENTIID.Tag                       = "RAD1ELEMENTIID";
            this.comboRAD1ELEMENTIID.TabIndex                  = 0;
            this.comboRAD1ELEMENTIID.Anchor                    = AnchorStyles.Left;
            this.comboRAD1ELEMENTIID.MouseEnter               += new EventHandler(this.mouseEnter_Text);
            this.comboRAD1ELEMENTIID.DropDownStyle             = DropDownStyle.DropDown;
            this.comboRAD1ELEMENTIID.ComboBox.DropDownStyle    = DropDownStyle.DropDown;
            this.comboRAD1ELEMENTIID.ComboBox.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Suggest;
            this.comboRAD1ELEMENTIID.Enabled                   = true;
            this.comboRAD1ELEMENTIID.DataBindings.Add(new Binding("Value", this.bindingSourceRAD1MELEMENTIVEZA, "RAD1ELEMENTIID"));
            this.comboRAD1ELEMENTIID.ShowPictureBox     = true;
            this.comboRAD1ELEMENTIID.PictureBoxClicked += new EventHandler(this.PictureBoxClickedRAD1ELEMENTIID);
            this.comboRAD1ELEMENTIID.ValueMember        = "RAD1ELEMENTIID";
            this.comboRAD1ELEMENTIID.SelectionChanged  += new EventHandler(this.SelectedIndexChangedRAD1ELEMENTIID);
            this.layoutManagerformRAD1MELEMENTIVEZA.Controls.Add(this.comboRAD1ELEMENTIID, 1, 0);
            this.layoutManagerformRAD1MELEMENTIVEZA.SetColumnSpan(this.comboRAD1ELEMENTIID, 1);
            this.layoutManagerformRAD1MELEMENTIVEZA.SetRowSpan(this.comboRAD1ELEMENTIID, 1);
            padding = new Padding(0, 1, 3, 2);
            this.comboRAD1ELEMENTIID.Margin = padding;
            size = new System.Drawing.Size(0x196, 0x17);
            this.comboRAD1ELEMENTIID.MinimumSize = size;
            size = new System.Drawing.Size(0x196, 0x17);
            this.comboRAD1ELEMENTIID.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1IDELEMENT.Location               = point;
            this.label1IDELEMENT.Name                   = "label1IDELEMENT";
            this.label1IDELEMENT.TabIndex               = 1;
            this.label1IDELEMENT.Tag                    = "labelIDELEMENT";
            this.label1IDELEMENT.Text                   = "Element iz programa plaća:";
            this.label1IDELEMENT.StyleSetName           = "FieldUltraLabel";
            this.label1IDELEMENT.AutoSize               = true;
            this.label1IDELEMENT.Anchor                 = AnchorStyles.Left;
            this.label1IDELEMENT.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDELEMENT.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDELEMENT.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDELEMENT.ImageSize            = size;
            this.label1IDELEMENT.Appearance.ForeColor = Color.Black;
            this.label1IDELEMENT.BackColor            = Color.Transparent;
            this.layoutManagerformRAD1MELEMENTIVEZA.Controls.Add(this.label1IDELEMENT, 0, 1);
            this.layoutManagerformRAD1MELEMENTIVEZA.SetColumnSpan(this.label1IDELEMENT, 1);
            this.layoutManagerformRAD1MELEMENTIVEZA.SetRowSpan(this.label1IDELEMENT, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1IDELEMENT.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDELEMENT.MinimumSize = size;
            size = new System.Drawing.Size(0xb5, 0x17);
            this.label1IDELEMENT.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.comboIDELEMENT.Location                  = point;
            this.comboIDELEMENT.Name                      = "comboIDELEMENT";
            this.comboIDELEMENT.Tag                       = "IDELEMENT";
            this.comboIDELEMENT.TabIndex                  = 0;
            this.comboIDELEMENT.Anchor                    = AnchorStyles.Left;
            this.comboIDELEMENT.MouseEnter               += new EventHandler(this.mouseEnter_Text);
            this.comboIDELEMENT.DropDownStyle             = DropDownStyle.DropDown;
            this.comboIDELEMENT.ComboBox.DropDownStyle    = DropDownStyle.DropDown;
            this.comboIDELEMENT.ComboBox.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Suggest;
            this.comboIDELEMENT.Enabled                   = true;
            this.comboIDELEMENT.DataBindings.Add(new Binding("Value", this.bindingSourceRAD1MELEMENTIVEZA, "IDELEMENT"));
            this.comboIDELEMENT.ShowPictureBox     = true;
            this.comboIDELEMENT.PictureBoxClicked += new EventHandler(this.PictureBoxClickedIDELEMENT);
            this.comboIDELEMENT.ValueMember        = "IDELEMENT";
            this.comboIDELEMENT.SelectionChanged  += new EventHandler(this.SelectedIndexChangedIDELEMENT);
            this.layoutManagerformRAD1MELEMENTIVEZA.Controls.Add(this.comboIDELEMENT, 1, 1);
            this.layoutManagerformRAD1MELEMENTIVEZA.SetColumnSpan(this.comboIDELEMENT, 1);
            this.layoutManagerformRAD1MELEMENTIVEZA.SetRowSpan(this.comboIDELEMENT, 1);
            padding = new Padding(0, 1, 3, 2);
            this.comboIDELEMENT.Margin = padding;
            size = new System.Drawing.Size(0x268, 0x17);
            this.comboIDELEMENT.MinimumSize = size;
            size = new System.Drawing.Size(0x268, 0x17);
            this.comboIDELEMENT.Size = size;
            this.Controls.Add(this.layoutManagerformRAD1MELEMENTIVEZA);
            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.bindingSourceRAD1MELEMENTIVEZA;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "RAD1MELEMENTIVEZAFormUserControl";
            this.Text       = "Veza RAD1M elementi i elementi";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.RAD1MELEMENTIVEZAFormUserControl_Load);
            this.layoutManagerformRAD1MELEMENTIVEZA.ResumeLayout(false);
            this.layoutManagerformRAD1MELEMENTIVEZA.PerformLayout();
            ((ISupportInitialize)this.bindingSourceRAD1MELEMENTIVEZA).EndInit();
            this.dsRAD1MELEMENTIVEZADataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }