public SelectSudijaForm() { InitializeComponent(); Text = "Izaberi sudiju"; filterSudijaUserControl1 = new FilterSudijaUserControl(); filterSudijaUserControl1.initialize(); this.pnlFilter.SuspendLayout(); this.pnlFilter.Controls.Add(filterSudijaUserControl1); this.pnlFilter.Width = filterSudijaUserControl1.Width; this.pnlFilter.ResumeLayout(false); filterSudijaUserControl1.Filter += filterSudijaUserControl1_Filter; int x = filterSudijaUserControl1.Location.X + filterSudijaUserControl1.Width + 30; int y = filterSudijaUserControl1.Location.Y + filterSudijaUserControl1.btnPonistiLocation.Y; btnOk.Location = new Point(x, y); btnCancel.Location = new Point(btnOk.Location.X + 85, btnOk.Location.Y); this.ClientSize = new Size(btnCancel.Location.X + btnCancel.Size.Width + 20, 540); initializeGridColumns(); DataGridViewUserControl.GridColumnHeaderMouseClick += new EventHandler <GridColumnHeaderMouseClickEventArgs>( DataGridViewUserControl_GridColumnHeaderMouseClick); showAll(); }
public SudijeForm() { this.Text = "Sudije"; filterSudijaUserControl1 = new FilterSudijaUserControl(); this.pnlFilter.SuspendLayout(); this.pnlFilter.Controls.Add(filterSudijaUserControl1); this.pnlFilter.ResumeLayout(false); this.pnlFilter.Height = filterSudijaUserControl1.Height + 10; filterSudijaUserControl1.initialize(); filterSudijaUserControl1.Filter += filterSudijaUserControl1_Filter; int offset = filterSudijaUserControl1.Bottom + 10 - btnNewItem.Location.Y; btnNewItem.Location = new Point(btnNewItem.Location.X, btnNewItem.Location.Y + offset); btnEditItem.Location = new Point(btnEditItem.Location.X, btnEditItem.Location.Y + offset); btnDeleteItem.Location = new Point(btnDeleteItem.Location.X, btnDeleteItem.Location.Y + offset); btnRefresh.Location = new Point(btnRefresh.Location.X, btnRefresh.Location.Y + offset); btnPrintPreview.Location = new Point(btnPrintPreview.Location.X, btnPrintPreview.Location.Y + offset); btnClose.Location = new Point(btnClose.Location.X, btnClose.Location.Y + offset); this.ClientSize = new Size(filterSudijaUserControl1.Width + panel1.Width + 20, 540); dataGridViewUserControl1.GridColumnHeaderMouseClick += new EventHandler <GridColumnHeaderMouseClickEventArgs>(DataGridViewUserControl_GridColumnHeaderMouseClick); InitializeGridColumns(); prikaziSve(); }