/// <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)
 {
     OKCancelPanelWin mainPanel = new OKCancelPanelWin(_controlFactory);
     mainPanel.Width = nestedControl.Width;
     mainPanel.Height = nestedControl.Height + mainPanel.ButtonGroupControl.Height;
     mainPanel.ContentPanel.Controls.Add(nestedControl);
     nestedControl.Dock = DockStyle.Fill;
     return mainPanel;
 }
Exemplo n.º 2
0
        /// <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)
        {
            OKCancelPanelWin mainPanel = new OKCancelPanelWin(_controlFactory);

            mainPanel.Width  = nestedControl.Width;
            mainPanel.Height = nestedControl.Height + mainPanel.ButtonGroupControl.Height;
            mainPanel.ContentPanel.Controls.Add(nestedControl);
            nestedControl.Dock = DockStyle.Fill;
            return(mainPanel);
        }