Beispiel #1
0
 public void ChangeBinding()
 {
     this.bindingSourceMZOSTABLICE.DataSource = this.MZOSTABLICEController.DataSet;
     this.dsMZOSTABLICEDataSet1 = this.MZOSTABLICEController.DataSet;
 }
Beispiel #2
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(MZOSTABLICEFormUserControl));

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

            this.layoutManagerformMZOSTABLICE.Size        = size;
            this.layoutManagerformMZOSTABLICE.ColumnCount = 2;
            this.layoutManagerformMZOSTABLICE.RowCount    = 3;
            this.layoutManagerformMZOSTABLICE.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformMZOSTABLICE.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformMZOSTABLICE.RowStyles.Add(new RowStyle());
            this.layoutManagerformMZOSTABLICE.RowStyles.Add(new RowStyle());
            this.layoutManagerformMZOSTABLICE.RowStyles.Add(new RowStyle());
            this.label1IDMZOSTABLICE   = new UltraLabel();
            this.textIDMZOSTABLICE     = new UltraNumericEditor();
            this.label1OPISMZOSTABLICE = new UltraLabel();
            this.textOPISMZOSTABLICE   = new UltraTextEditor();
            ((ISupportInitialize)this.textIDMZOSTABLICE).BeginInit();
            ((ISupportInitialize)this.textOPISMZOSTABLICE).BeginInit();
            this.dsMZOSTABLICEDataSet1 = new MZOSTABLICEDataSet();
            this.dsMZOSTABLICEDataSet1.BeginInit();
            this.SuspendLayout();
            this.dsMZOSTABLICEDataSet1.DataSetName   = "dsMZOSTABLICE";
            this.dsMZOSTABLICEDataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceMZOSTABLICE.DataSource = this.dsMZOSTABLICEDataSet1;
            this.bindingSourceMZOSTABLICE.DataMember = "MZOSTABLICE";
            ((ISupportInitialize)this.bindingSourceMZOSTABLICE).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDMZOSTABLICE.Location               = point;
            this.label1IDMZOSTABLICE.Name                   = "label1IDMZOSTABLICE";
            this.label1IDMZOSTABLICE.TabIndex               = 1;
            this.label1IDMZOSTABLICE.Tag                    = "labelIDMZOSTABLICE";
            this.label1IDMZOSTABLICE.Text                   = "Šifra tablice:";
            this.label1IDMZOSTABLICE.StyleSetName           = "FieldUltraLabel";
            this.label1IDMZOSTABLICE.AutoSize               = true;
            this.label1IDMZOSTABLICE.Anchor                 = AnchorStyles.Left;
            this.label1IDMZOSTABLICE.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDMZOSTABLICE.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDMZOSTABLICE.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDMZOSTABLICE.ImageSize            = size;
            this.label1IDMZOSTABLICE.Appearance.ForeColor = Color.Black;
            this.label1IDMZOSTABLICE.BackColor            = Color.Transparent;
            this.layoutManagerformMZOSTABLICE.Controls.Add(this.label1IDMZOSTABLICE, 0, 0);
            this.layoutManagerformMZOSTABLICE.SetColumnSpan(this.label1IDMZOSTABLICE, 1);
            this.layoutManagerformMZOSTABLICE.SetRowSpan(this.label1IDMZOSTABLICE, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDMZOSTABLICE.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDMZOSTABLICE.MinimumSize = size;
            size = new System.Drawing.Size(90, 0x17);
            this.label1IDMZOSTABLICE.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDMZOSTABLICE.Location    = point;
            this.textIDMZOSTABLICE.Name        = "textIDMZOSTABLICE";
            this.textIDMZOSTABLICE.Tag         = "IDMZOSTABLICE";
            this.textIDMZOSTABLICE.TabIndex    = 0;
            this.textIDMZOSTABLICE.Anchor      = AnchorStyles.Left;
            this.textIDMZOSTABLICE.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDMZOSTABLICE.ReadOnly    = false;
            this.textIDMZOSTABLICE.PromptChar  = ' ';
            this.textIDMZOSTABLICE.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDMZOSTABLICE.DataBindings.Add(new Binding("Value", this.bindingSourceMZOSTABLICE, "IDMZOSTABLICE"));
            this.textIDMZOSTABLICE.NumericType = NumericType.Integer;
            this.textIDMZOSTABLICE.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformMZOSTABLICE.Controls.Add(this.textIDMZOSTABLICE, 1, 0);
            this.layoutManagerformMZOSTABLICE.SetColumnSpan(this.textIDMZOSTABLICE, 1);
            this.layoutManagerformMZOSTABLICE.SetRowSpan(this.textIDMZOSTABLICE, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDMZOSTABLICE.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDMZOSTABLICE.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDMZOSTABLICE.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1OPISMZOSTABLICE.Location              = point;
            this.label1OPISMZOSTABLICE.Name                  = "label1OPISMZOSTABLICE";
            this.label1OPISMZOSTABLICE.TabIndex              = 1;
            this.label1OPISMZOSTABLICE.Tag                   = "labelOPISMZOSTABLICE";
            this.label1OPISMZOSTABLICE.Text                  = "Naziv tablice:";
            this.label1OPISMZOSTABLICE.StyleSetName          = "FieldUltraLabel";
            this.label1OPISMZOSTABLICE.AutoSize              = true;
            this.label1OPISMZOSTABLICE.Anchor                = AnchorStyles.Left;
            this.label1OPISMZOSTABLICE.Appearance.TextVAlign = VAlign.Middle;
            this.label1OPISMZOSTABLICE.Appearance.ForeColor  = Color.Black;
            this.label1OPISMZOSTABLICE.BackColor             = Color.Transparent;
            this.layoutManagerformMZOSTABLICE.Controls.Add(this.label1OPISMZOSTABLICE, 0, 1);
            this.layoutManagerformMZOSTABLICE.SetColumnSpan(this.label1OPISMZOSTABLICE, 1);
            this.layoutManagerformMZOSTABLICE.SetRowSpan(this.label1OPISMZOSTABLICE, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1OPISMZOSTABLICE.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1OPISMZOSTABLICE.MinimumSize = size;
            size = new System.Drawing.Size(0x63, 0x17);
            this.label1OPISMZOSTABLICE.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textOPISMZOSTABLICE.Location    = point;
            this.textOPISMZOSTABLICE.Name        = "textOPISMZOSTABLICE";
            this.textOPISMZOSTABLICE.Tag         = "OPISMZOSTABLICE";
            this.textOPISMZOSTABLICE.TabIndex    = 0;
            this.textOPISMZOSTABLICE.Anchor      = AnchorStyles.Left;
            this.textOPISMZOSTABLICE.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textOPISMZOSTABLICE.ReadOnly    = false;
            this.textOPISMZOSTABLICE.DataBindings.Add(new Binding("Text", this.bindingSourceMZOSTABLICE, "OPISMZOSTABLICE"));
            this.textOPISMZOSTABLICE.MaxLength = 20;
            this.layoutManagerformMZOSTABLICE.Controls.Add(this.textOPISMZOSTABLICE, 1, 1);
            this.layoutManagerformMZOSTABLICE.SetColumnSpan(this.textOPISMZOSTABLICE, 1);
            this.layoutManagerformMZOSTABLICE.SetRowSpan(this.textOPISMZOSTABLICE, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textOPISMZOSTABLICE.Margin = padding;
            size = new System.Drawing.Size(0x9c, 0x16);
            this.textOPISMZOSTABLICE.MinimumSize = size;
            size = new System.Drawing.Size(0x9c, 0x16);
            this.textOPISMZOSTABLICE.Size = size;
            this.Controls.Add(this.layoutManagerformMZOSTABLICE);
            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.bindingSourceMZOSTABLICE;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "MZOSTABLICEFormUserControl";
            this.Text       = "MZOŠ Tablica";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.MZOSTABLICEFormUserControl_Load);
            this.layoutManagerformMZOSTABLICE.ResumeLayout(false);
            this.layoutManagerformMZOSTABLICE.PerformLayout();
            ((ISupportInitialize)this.bindingSourceMZOSTABLICE).EndInit();
            ((ISupportInitialize)this.textIDMZOSTABLICE).EndInit();
            ((ISupportInitialize)this.textOPISMZOSTABLICE).EndInit();
            this.dsMZOSTABLICEDataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }