public void DoCommand(String aCommand, Object aData)
        {
            Console.WriteLine(aCommand);
            switch (aCommand)
            {
            case "file-new-window":
                OpenBrowser();
                break;

            case "file-open":
                Open();
                break;

            case "file-save-as":
                SavePageAs();
                break;

            case "file-save-form":
                TestForm frm = new TestForm();
                frm.Show();
                break;

            case "file-exit":
                Quit();
                break;

            case "view-statusbar":
                if (mStatusBar.Visible)
                {
                    mStatusBar.Hide();
                }
                else
                {
                    mStatusBar.Show();
                }
                break;

            case "view-go-back":
                mWebBrowser.GoBack();
                break;

            case "view-go-forward":
                mWebBrowser.GoForward();
                break;

            case "view-go-home":
                mWebBrowser.GoHome();
                break;

            case "view-reload":
                mWebBrowser.RefreshPage();
                break;

            case "view-stop":
                mWebBrowser.Stop();
                break;

            case "view-layout-gecko":
                mWebBrowser.SwitchLayoutEngine("gecko");
                break;

            case "view-layout-ie":
                mWebBrowser.SwitchLayoutEngine("trident");
                break;

            case "bookmarks-manage":
                BookmarksWindow bm = new BookmarksWindow();
                bm.Show();
                break;

            case "bookmarks-item":
                String url = ServiceManager.Bookmarks.GetBookmarkAttribute(aData as String, "url");
                LoadURL(url);
                break;

            case "bookmarks-add":
                // XXX need to allow user to customize this.
                Bookmarks bmks       = ServiceManager.Bookmarks;
                String    bookmarkID = bmks.CreateBookmark(mTitle, "Bookmarks", -1);
                bmks.SetBookmarkAttribute(bookmarkID, "url", URL);
                break;

            case "bookmarks-file":
                // XXX work on this
                FileBookmark fpWindow = new FileBookmark(URL, mTitle);
                fpWindow.ShowDialog();
                break;

            case "help-about":
                AboutDialog aboutDialog = new AboutDialog(this);
                aboutDialog.ShowDialog();
                break;

            case "tools-options":
                PrefsDialog prefsDialog = new PrefsDialog(this);
                prefsDialog.ShowDialog();
                break;
            }
        }