public override void OnInit()
    {
        QueryHelper.ValidateHash("hash");
        Control.ResourceID = QueryHelper.GetInteger("resourceid", -1);

        CMSUIPage page = (CMSUIPage)Control.Page;


        page.DialogFooter.HideCancelButton();
        if (Control.FooterControl != null)
        {
            page.DialogFooter.AddControl(Control.FooterControl);
        }
    }
 public override void OnInit()
 {
     btnSelect = new LocalizedButton();
     page      = ((CMSUIPage)Control.Page);
     btnSelect.ResourceString = "general.select";
     btnSelect.Click         += btnSelectClick;
     btnSelect.ID             = "btnSelect";
     page.DialogFooter.AddControl(btnSelect);
     page.DialogFooter.HideCancelButton();
     if (!RequestHelper.IsPostBack())
     {
         SessionHelper.Remove("DialogSelectedParameters");
     }
 }