/// <summary>Constructor.</summary>
        public AddPackageView()
        {
            // Create buttons.
            addButton = CreateButton(StringLibrary.Add);
            cancelButton = CreateButton(StringLibrary.Cancel);

            // Load the HTML content.
            RetrieveHtml(ContentUrl, delegate
                                         {
                                             // Setup children.
                                             divInnerSlide = jQuery.Select(CssSelectors.AddPackageInnerSlide);
                                             offLeft = divInnerSlide.GetCSS(Css.Left);
                                             InitializeTextboxes();

                                             // Insert buttons.
                                             addButton.CreateView().Insert(CssSelectors.AddPackageBtnAdd, InsertMode.Replace);
                                             cancelButton.CreateView().Insert(CssSelectors.AddPackageBtnCancel, InsertMode.Replace);

                                             // Wire up events.
                                             Keyboard.Keydown += OnKeydown;

                                             // Finish up.
                                             isInitialized = true;
                                             UpdateState();
                                             SlideOn(null);
                                         });
        }
        public void ClassInitialize()
        {
            button = new IconTextButton();
            button.Text = "My Button";

            TestHarness.AddControl(button.CreateView() as IView);
        }