private void SelectLayout(object unused)
        {
            string          filter;
            ProjectLanguage language = Model.ActiveProject.GetCodeLanguage();

            if (language == ProjectLanguage.CSharp)
            {
                filter = Resources.MasterPageCsHtmlFilter;
            }
            else if (language == ProjectLanguage.VisualBasic)
            {
                filter = Resources.MasterPageVbHtmlFilter;
            }
            else
            {
                Contract.Assert(false, "We shouldn't get here, this project's language is not supported.");
                return;
            }

            string file;

            if (DialogHost.TrySelectFile(
                    Model.ActiveProject,
                    Resources.LayoutPageSelectorHeading,
                    filter,
                    SavedSettingsKeys.LayoutPageFileKey,
                    out file))
            {
                LayoutPageFile = file;
            }
        }