/// <summary> /// Creates a panel containing OK and Cancel buttons /// </summary> /// <param name="nestedControl">The control to place above the buttons</param> /// <returns>Returns the created panel</returns> public IOKCancelPanel CreateOKCancelPanel(IControlHabanero nestedControl) { OKCancelPanelVWG mainPanel = new OKCancelPanelVWG(_controlFactory); mainPanel.Width = nestedControl.Width; mainPanel.Height = nestedControl.Height + mainPanel.ButtonGroupControl.Height; mainPanel.ContentPanel.Controls.Add(nestedControl); nestedControl.Dock = DockStyle.Fill; return mainPanel; }
/// <summary> /// Creates a panel containing OK and Cancel buttons /// </summary> /// <param name="nestedControl">The control to place above the buttons</param> /// <returns>Returns the created panel</returns> public IOKCancelPanel CreateOKCancelPanel(IControlHabanero nestedControl) { OKCancelPanelVWG mainPanel = new OKCancelPanelVWG(_controlFactory); mainPanel.Width = nestedControl.Width; mainPanel.Height = nestedControl.Height + mainPanel.ButtonGroupControl.Height; mainPanel.ContentPanel.Controls.Add(nestedControl); nestedControl.Dock = DockStyle.Fill; return(mainPanel); }