当前位置: 首页>>代码示例>>C#>>正文


C# IUrlGenerator类代码示例

本文整理汇总了C#中IUrlGenerator的典型用法代码示例。如果您正苦于以下问题:C# IUrlGenerator类的具体用法?C# IUrlGenerator怎么用?C# IUrlGenerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IUrlGenerator类属于命名空间,在下文中一共展示了IUrlGenerator类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: MenuItemJsonConverter

        public MenuItemJsonConverter(ControllerContext controllerContext, IUrlGenerator urlGenerator)
            : base(controllerContext)
        {
            Guard.IsNotNull(urlGenerator, "urlGenerator");

            UrlGenerator = urlGenerator;
        }
开发者ID:timbooker,项目名称:telerikaspnetmvc,代码行数:7,代码来源:MenuItemJsonConverter.cs

示例2: RadialGauge

 /// <summary>
 /// Initializes a new instance of the <see cref="LinearGauge" /> class.
 /// </summary>
 /// <param name="viewContext">The view context.</param>
 /// <param name="initializer">The javascript initializer.</param>
 /// <param name="urlGenerator">The URL Generator.</param>
 public RadialGauge(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
     : base(viewContext, initializer, urlGenerator)
 {
     Scale = new GaugeRadialScale(this);
     Pointer = new GaugeRadialPointer();
     Pointers = new List<GaugeRadialPointer>();
 }
开发者ID:jstevenson81,项目名称:wodgeaux,代码行数:13,代码来源:RadialGauge.cs

示例3: Editor

        public Editor(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
            : base(viewContext, initializer)
        {
            UrlGenerator = urlGenerator;

            DefaultToolGroup = new EditorToolGroup(this);

            Template = new HtmlTemplate();
            Messages = new EditorMessages();
            StyleSheets = new List<string>();
            Pdf = new PDFSettings();

            new EditorToolFactory(DefaultToolGroup)
                .Formatting()
                .Bold().Italic().Underline()
                .JustifyLeft().JustifyCenter().JustifyRight()
                .InsertUnorderedList().InsertOrderedList()
                .Outdent().Indent()
                .CreateLink().Unlink()
                .InsertImage()
                .TableEditing();

            TagName = "textarea";

            ImageBrowserSettings = new EditorImageBrowserSettings(Messages.ImageBrowserMessages);
            FileBrowserSettings = new EditorFileBrowserSettings(Messages.FileBrowserMessages);

            //>> Initialization

            Resizable = new EditorResizableSettings();

            Serialization = new EditorSerializationSettings();

            //<< Initialization
        }
开发者ID:jstevenson81,项目名称:wodgeaux,代码行数:35,代码来源:Editor.cs

示例4: DiagnosticRequestHandler

 public DiagnosticRequestHandler(BundleCollection bundles, CassetteSettings settings, IUrlGenerator urlGenerator, IBundleCacheRebuilder bundleCacheRebuilder)
 {
   this.bundles = bundles;
   this.settings = settings;
   this.urlGenerator = urlGenerator;
   this.bundleCacheRebuilder = bundleCacheRebuilder;
 }
开发者ID:prabirshrestha,项目名称:Cassette.Nancy,代码行数:7,代码来源:DiagnosticRequestHandler.cs

示例5: ComboBox

        public ComboBox(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator)
            : base(viewContext, clientSideObjectWriterFactory)
        {
            ScriptFileNames.AddRange(new[] { "telerik.common.js", "telerik.list.js", "telerik.combobox.js" });

            UrlGenerator = urlGenerator;

            ClientEvents = new DropDownClientEvents();
            DataBinding = new AutoCompleteDataBindingConfiguration();
            DropDownHtmlAttributes = new RouteValueDictionary();
            HiddenInputHtmlAttributes = new RouteValueDictionary();
            InputHtmlAttributes = new RouteValueDictionary();

            Effects = new Effects();
            defaultEffects.Each(el => Effects.Container.Add(el));

            Filtering = new ComboBoxFilterSettings();

            Items = new List<DropDownItem>();
            SelectedIndex = -1;
            Enabled = true;
            Encoded = true;
            OpenOnFocus = false;
            IgnoreCase = true;
        }
开发者ID:vialpando09,项目名称:RallyPortal2,代码行数:25,代码来源:ComboBox.cs

示例6: ViewComponentFactory

        public ViewComponentFactory(HtmlHelper htmlHelper, IUrlGenerator urlGenerator)
            : base(htmlHelper.ViewContext)
        {
            Guard.IsNotNull(urlGenerator, "urlGenerator");

            this.urlGenerator = urlGenerator;
        }
开发者ID:timbooker,项目名称:telerikaspnetmvc,代码行数:7,代码来源:ViewComponentFactory.cs

示例7: Editor

        public Editor(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
            : base(viewContext, initializer)
        {
            UrlGenerator = urlGenerator;

            DefaultToolGroup = new EditorToolGroup(this);

            Template = new HtmlTemplate();
            Messages = new EditorMessages();
            StyleSheets = new List<string>();

            new EditorToolFactory(DefaultToolGroup)
                .Bold().Italic().Underline().Strikethrough()
                .FontName()
                .FontSize()
                .FontColor().BackColor()
                .JustifyLeft().JustifyCenter().JustifyRight().JustifyFull()
                .InsertUnorderedList().InsertOrderedList()
                .Outdent().Indent()
                .FormatBlock()
                .CreateLink().Unlink()
                .InsertImage();

            ImageBrowserSettings = new EditorImageBrowserSettings(Messages.ImageBrowserMessages);
        }
开发者ID:danielkaradachki,项目名称:HomeWork,代码行数:25,代码来源:Editor.cs

示例8: Gauge

 /// <summary>
 /// Initializes a new instance of the <see cref="Gauge" /> class.
 /// </summary>
 /// <param name="viewContext">The view context.</param>
 /// <param name="initializer">The javascript initializer.</param>
 /// <param name="urlGenerator">The URL Generator.</param>
 public Gauge(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
     : base(viewContext, initializer)
 {
     UrlGenerator = urlGenerator;
     GaugeArea = new GaugeArea();
     Transitions = true;
 }
开发者ID:danielkaradachki,项目名称:HomeWork,代码行数:13,代码来源:Gauge.cs

示例9: Menu

        public Menu(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator)
            : base(viewContext, clientSideObjectWriterFactory)
        {
            Guard.IsNotNull(urlGenerator, "urlGenerator");

            UrlGenerator = urlGenerator;
            Items = new LinkedObjectCollection<MenuItem>(null);
        }
开发者ID:timbooker,项目名称:telerikaspnetmvc,代码行数:8,代码来源:Menu.cs

示例10: MobileSwitch

        public MobileSwitch(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
            : base(viewContext, initializer)
        {
            this.urlGenerator = urlGenerator;
            //>> Initialization

            //<< Initialization
        }
开发者ID:wanaxe,项目名称:Study,代码行数:8,代码来源:MobileSwitch.cs

示例11: DropDownListBase

        public DropDownListBase(ViewContext viewContext, IJavaScriptInitializer initializer, ViewDataDictionary viewData, IUrlGenerator urlGenerator)
            : base(viewContext, initializer, viewData)
        {
            Animation = new PopupAnimation();

            DataSource = new DataSource();

            UrlGenerator = urlGenerator;
        }
开发者ID:danielkaradachki,项目名称:HomeWork,代码行数:9,代码来源:DropDownListBase.cs

示例12: ReadOnlyDataSourceBuilder

        public ReadOnlyDataSourceBuilder(DataSource dataSource, ViewContext viewContext, IUrlGenerator urlGenerator)
        {
            this.viewContext = viewContext;
            this.urlGenerator = urlGenerator;
            this.dataSource = dataSource;

            dataSource.Schema.Data = "";
            dataSource.Schema.Total = "";
        }
开发者ID:akhuang,项目名称:Zing,代码行数:9,代码来源:ReadOnlyDataSourceBuilder.cs

示例13: Calendar

        public Calendar(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
            : base(viewContext, initializer)
        {
            this.urlGenerator = urlGenerator;

            MonthTemplate = new MonthTemplate();

            SelectionSettings = new CalendarSelectionSettings();
        }
开发者ID:danielkaradachki,项目名称:HomeWork,代码行数:9,代码来源:Calendar.cs

示例14: Spreadsheet

        public Spreadsheet(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
            : base(viewContext, initializer)
        {
            this.urlGenerator = urlGenerator;
//>> Initialization
        
            Sheets = new List<SpreadsheetSheet>();
                
        //<< Initialization
        }
开发者ID:mparsin,项目名称:Elements,代码行数:10,代码来源:Spreadsheet.cs

示例15: MobileSplitView

        public MobileSplitView(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
            : base(viewContext, initializer)
        {
            this.urlGenerator = urlGenerator;
            //>> Initialization

            Panes = new List<MobileSplitViewPane>();

            //<< Initialization
        }
开发者ID:akhuang,项目名称:Zing,代码行数:10,代码来源:MobileSplitView.cs


注:本文中的IUrlGenerator类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。