public PreferencesForm() { // // Required for Windows Form Designer support // InitializeComponent(); this.buttonOK.Text = Res.Get(StringId.OKButtonText); this.buttonCancel.Text = Res.Get(StringId.CancelButton); this.buttonApply.Text = Res.Get(StringId.ApplyButton); // Set the title of the form. Text = Res.Get(StringId.Options); // Instantiate and initialize the SideBarControl. sideBarControl = new SideBarControl(); sideBarControl.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom; sideBarControl.TabStop = true; sideBarControl.TabIndex = 0; sideBarControl.SelectedIndexChanged += new EventHandler(sideBarControl_SelectedIndexChanged); sideBarControl.Location = new Point(10, 10); sideBarControl.Size = new Size(151, ClientSize.Height - 20); Controls.Add(sideBarControl); }
internal TabSwitcher(SideBarControl control) { this.control = control; }