private StatusBarPane CreateNewStatusBarPane() { StatusBarPane pane = new StatusBarPane(); pane.Text = "Pane " + _nextStatusBarPaneNumber++; Label paneLabel = new Label(); paneLabel.Text = pane.Text; paneLabel.ScreenTip.Caption = pane.Text; paneLabel.Tag = pane; paneLabel.Parent = pane; paneLabel.AutoSize = true; CurrentPaneComboBox.Items.Add(pane); CurrentPaneComboBox.SelectedItem = pane; return(pane); }
private StatusBarPane CreateNewStatusBarPane() { StatusBarPane pane = new StatusBarPane(); pane.Text = "Pane " + _nextStatusBarPaneNumber++; Label paneLabel = new Label(); paneLabel.Text = pane.Text; paneLabel.ScreenTip.Caption = pane.Text; paneLabel.Tag = pane; paneLabel.Parent = pane; paneLabel.AutoSize = true; CurrentPaneComboBox.Items.Add(pane); CurrentPaneComboBox.SelectedItem = pane; return pane; }