private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(ucMeisteSRAIs)); this.toolStripTop = new ToolStrip(); this.toolStripButtonRefresh = new ToolStripButton(); this.toolStripProgressBar = new ToolStripProgressBar(); this.dataGridViewBesteSRAIs = new DataGridView(); this.categoryCollectionLister = new CategoryCollectionLister(); this.toolStripTop.SuspendLayout(); ((ISupportInitialize)this.dataGridViewBesteSRAIs).BeginInit(); this.SuspendLayout(); this.toolStripTop.Items.AddRange(new ToolStripItem[2] { (ToolStripItem)this.toolStripButtonRefresh, (ToolStripItem)this.toolStripProgressBar }); componentResourceManager.ApplyResources((object)this.toolStripTop, "toolStripTop"); this.toolStripTop.Name = "toolStripTop"; this.toolStripButtonRefresh.Image = (Image)Resources.sync; componentResourceManager.ApplyResources((object)this.toolStripButtonRefresh, "toolStripButtonRefresh"); this.toolStripButtonRefresh.Name = "toolStripButtonRefresh"; this.toolStripButtonRefresh.Click += new EventHandler(this.toolStripButtonRefresh_Click); this.toolStripProgressBar.Name = "toolStripProgressBar"; componentResourceManager.ApplyResources((object)this.toolStripProgressBar, "toolStripProgressBar"); this.dataGridViewBesteSRAIs.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; componentResourceManager.ApplyResources((object)this.dataGridViewBesteSRAIs, "dataGridViewBesteSRAIs"); this.dataGridViewBesteSRAIs.Name = "dataGridViewBesteSRAIs"; componentResourceManager.ApplyResources((object)this.categoryCollectionLister, "categoryCollectionLister"); this.categoryCollectionLister.Name = "categoryCollectionLister"; componentResourceManager.ApplyResources((object)this, "$this"); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.categoryCollectionLister); this.Controls.Add((Control)this.dataGridViewBesteSRAIs); this.Controls.Add((Control)this.toolStripTop); this.Name = nameof(ucMeisteSRAIs); this.Load += new EventHandler(this.ucBesteSRAIZiele_Load); this.toolStripTop.ResumeLayout(false); this.toolStripTop.PerformLayout(); ((ISupportInitialize)this.dataGridViewBesteSRAIs).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void ucBesteSRAIZiele_Resize(object sender, EventArgs e) { this.dataGridViewBesteSRAIs.Top = this.toolStripTop.Top + this.toolStripTop.Height; this.dataGridViewBesteSRAIs.Left = 0; DataGridView dataGridView = this.dataGridViewBesteSRAIs; Size clientSize = base.ClientSize; dataGridView.Height = clientSize.Height - this.toolStripTop.Top - this.toolStripTop.Height; DataGridView dataGridView2 = this.dataGridViewBesteSRAIs; clientSize = base.ClientSize; dataGridView2.Width = clientSize.Width / 3; this.ResizeAll(); this.categoryCollectionLister.Top = this.toolStripTop.Top + this.toolStripTop.Height; this.categoryCollectionLister.Left = this.dataGridViewBesteSRAIs.Left + this.dataGridViewBesteSRAIs.Width; CategoryCollectionLister obj = this.categoryCollectionLister; clientSize = base.ClientSize; obj.Height = clientSize.Height - this.toolStripTop.Top - this.toolStripTop.Height; CategoryCollectionLister obj2 = this.categoryCollectionLister; clientSize = base.ClientSize; obj2.Width = clientSize.Width - this.dataGridViewBesteSRAIs.Width; }