Exemplo n.º 1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsIPIDENTDataSet1 = new IPIDENTDataSet();
     this.m_StartRow        = 0;
     this.Cursor            = Cursors.WaitCursor;
     this.m_GridLoading     = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }
Exemplo n.º 2
0
 public void ChangeBinding()
 {
     this.bindingSourceIPIDENT.DataSource = this.IPIDENTController.DataSet;
     this.dsIPIDENTDataSet1 = this.IPIDENTController.DataSet;
 }
Exemplo n.º 3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(IPIDENTFormUserControl));

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

            this.layoutManagerformIPIDENT.Size        = size;
            this.layoutManagerformIPIDENT.ColumnCount = 2;
            this.layoutManagerformIPIDENT.RowCount    = 3;
            this.layoutManagerformIPIDENT.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformIPIDENT.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformIPIDENT.RowStyles.Add(new RowStyle());
            this.layoutManagerformIPIDENT.RowStyles.Add(new RowStyle());
            this.layoutManagerformIPIDENT.RowStyles.Add(new RowStyle());
            this.label1IDIPIDENT    = new UltraLabel();
            this.textIDIPIDENT      = new UltraNumericEditor();
            this.label1NAZIVIPIDENT = new UltraLabel();
            this.textNAZIVIPIDENT   = new UltraTextEditor();
            ((ISupportInitialize)this.textIDIPIDENT).BeginInit();
            ((ISupportInitialize)this.textNAZIVIPIDENT).BeginInit();
            this.dsIPIDENTDataSet1 = new IPIDENTDataSet();
            this.dsIPIDENTDataSet1.BeginInit();
            this.SuspendLayout();
            this.dsIPIDENTDataSet1.DataSetName   = "dsIPIDENT";
            this.dsIPIDENTDataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceIPIDENT.DataSource = this.dsIPIDENTDataSet1;
            this.bindingSourceIPIDENT.DataMember = "IPIDENT";
            ((ISupportInitialize)this.bindingSourceIPIDENT).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDIPIDENT.Location               = point;
            this.label1IDIPIDENT.Name                   = "label1IDIPIDENT";
            this.label1IDIPIDENT.TabIndex               = 1;
            this.label1IDIPIDENT.Tag                    = "labelIDIPIDENT";
            this.label1IDIPIDENT.Text                   = "IP Identifikator:";
            this.label1IDIPIDENT.StyleSetName           = "FieldUltraLabel";
            this.label1IDIPIDENT.AutoSize               = true;
            this.label1IDIPIDENT.Anchor                 = AnchorStyles.Left;
            this.label1IDIPIDENT.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDIPIDENT.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDIPIDENT.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDIPIDENT.ImageSize            = size;
            this.label1IDIPIDENT.Appearance.ForeColor = Color.Black;
            this.label1IDIPIDENT.BackColor            = Color.Transparent;
            this.layoutManagerformIPIDENT.Controls.Add(this.label1IDIPIDENT, 0, 0);
            this.layoutManagerformIPIDENT.SetColumnSpan(this.label1IDIPIDENT, 1);
            this.layoutManagerformIPIDENT.SetRowSpan(this.label1IDIPIDENT, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDIPIDENT.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDIPIDENT.MinimumSize = size;
            size = new System.Drawing.Size(0x71, 0x17);
            this.label1IDIPIDENT.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDIPIDENT.Location    = point;
            this.textIDIPIDENT.Name        = "textIDIPIDENT";
            this.textIDIPIDENT.Tag         = "IDIPIDENT";
            this.textIDIPIDENT.TabIndex    = 0;
            this.textIDIPIDENT.Anchor      = AnchorStyles.Left;
            this.textIDIPIDENT.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDIPIDENT.ReadOnly    = false;
            this.textIDIPIDENT.PromptChar  = ' ';
            this.textIDIPIDENT.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDIPIDENT.DataBindings.Add(new Binding("Value", this.bindingSourceIPIDENT, "IDIPIDENT"));
            this.textIDIPIDENT.NumericType = NumericType.Integer;
            this.textIDIPIDENT.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformIPIDENT.Controls.Add(this.textIDIPIDENT, 1, 0);
            this.layoutManagerformIPIDENT.SetColumnSpan(this.textIDIPIDENT, 1);
            this.layoutManagerformIPIDENT.SetRowSpan(this.textIDIPIDENT, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDIPIDENT.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDIPIDENT.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDIPIDENT.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVIPIDENT.Location              = point;
            this.label1NAZIVIPIDENT.Name                  = "label1NAZIVIPIDENT";
            this.label1NAZIVIPIDENT.TabIndex              = 1;
            this.label1NAZIVIPIDENT.Tag                   = "labelNAZIVIPIDENT";
            this.label1NAZIVIPIDENT.Text                  = "Naziv IP identifikator:";
            this.label1NAZIVIPIDENT.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVIPIDENT.AutoSize              = true;
            this.label1NAZIVIPIDENT.Anchor                = AnchorStyles.Left;
            this.label1NAZIVIPIDENT.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVIPIDENT.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVIPIDENT.BackColor             = Color.Transparent;
            this.layoutManagerformIPIDENT.Controls.Add(this.label1NAZIVIPIDENT, 0, 1);
            this.layoutManagerformIPIDENT.SetColumnSpan(this.label1NAZIVIPIDENT, 1);
            this.layoutManagerformIPIDENT.SetRowSpan(this.label1NAZIVIPIDENT, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVIPIDENT.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVIPIDENT.MinimumSize = size;
            size = new System.Drawing.Size(0x98, 0x17);
            this.label1NAZIVIPIDENT.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVIPIDENT.Location    = point;
            this.textNAZIVIPIDENT.Name        = "textNAZIVIPIDENT";
            this.textNAZIVIPIDENT.Tag         = "NAZIVIPIDENT";
            this.textNAZIVIPIDENT.TabIndex    = 0;
            this.textNAZIVIPIDENT.Anchor      = AnchorStyles.Left;
            this.textNAZIVIPIDENT.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVIPIDENT.ReadOnly    = false;
            this.textNAZIVIPIDENT.DataBindings.Add(new Binding("Text", this.bindingSourceIPIDENT, "NAZIVIPIDENT"));
            this.textNAZIVIPIDENT.MaxLength = 20;
            this.layoutManagerformIPIDENT.Controls.Add(this.textNAZIVIPIDENT, 1, 1);
            this.layoutManagerformIPIDENT.SetColumnSpan(this.textNAZIVIPIDENT, 1);
            this.layoutManagerformIPIDENT.SetRowSpan(this.textNAZIVIPIDENT, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVIPIDENT.Margin = padding;
            size = new System.Drawing.Size(0x9c, 0x16);
            this.textNAZIVIPIDENT.MinimumSize = size;
            size = new System.Drawing.Size(0x9c, 0x16);
            this.textNAZIVIPIDENT.Size = size;
            this.Controls.Add(this.layoutManagerformIPIDENT);
            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.bindingSourceIPIDENT;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "IPIDENTFormUserControl";
            this.Text       = "IP Identifikatori";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.IPIDENTFormUserControl_Load);
            this.layoutManagerformIPIDENT.ResumeLayout(false);
            this.layoutManagerformIPIDENT.PerformLayout();
            ((ISupportInitialize)this.bindingSourceIPIDENT).EndInit();
            ((ISupportInitialize)this.textIDIPIDENT).EndInit();
            ((ISupportInitialize)this.textNAZIVIPIDENT).EndInit();
            this.dsIPIDENTDataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }