public Form_MoviePreview() { InitializeComponent(); buttonPanelControl = new ButtonPanelControl(MovieDataBLL.GetActorAllNameToInitial()); InitButton(); previewControl.Dock = DockStyle.Fill; panelPicSubMenu.Controls.Add(previewControl); }
private void SeachActorNames() { List <string> actorNames = MovieDataBLL.FindFuzzyActorNames(currentText); if (actorNames.Count != 0) { buttonPanelControl = new ButtonPanelControl(actorNames); buttonPanelControl.Dock = DockStyle.Left; buttonPanelControl.Button_MouseDownEvent += ButtonPanelControl_Button_MouseDownEvent; panelButton.Controls.Add(buttonPanelControl); } }