本文整理汇总了C#中IEditorService.GetService方法的典型用法代码示例。如果您正苦于以下问题:C# IEditorService.GetService方法的具体用法?C# IEditorService.GetService怎么用?C# IEditorService.GetService使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IEditorService
的用法示例。
在下文中一共展示了IEditorService.GetService方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Bind
public override void Bind(IEditorService service)
{
_edsvc = service;
_edsvc.RegisterCustomNotifier(this);
try
{
_fsvc = (IFusionService)_edsvc.GetService((int)ServiceType.Fusion);
_baseUrl = service.GetCustomProperty("BaseUrl").ToString(); //NOXLATE
if (!_baseUrl.EndsWith("/")) //NOXLATE
_baseUrl += "/"; //NOXLATE
}
catch
{
throw new NotSupportedException(Strings.IncompatibleConnection);
}
_edsvc.Saved += OnSaved;
_flexLayout = (IApplicationDefinition)service.GetEditedResource();
TextBoxBinder.BindText(txtTemplateUrl, _flexLayout, "TemplateUrl"); //NOXLATE
TextBoxBinder.BindText(txtTitle, _flexLayout, "Title"); //NOXLATE
var templates = _fsvc.GetApplicationTemplates();
InitializeTemplateList(templates);
GeneratePreviewUrl();
}
示例2: WidgetReferenceCtrl
public WidgetReferenceCtrl(IWidgetItem item, IEditorService edsvc)
: this()
{
_widgetRef = item;
_flexLayout = (IApplicationDefinition)edsvc.GetEditedResource();
_fsvc = (IFusionService)edsvc.GetService((int)ServiceType.Fusion);
_context = new FlexibleLayoutEditorContext(_fsvc);
cmbWidgetRefs.DataSource = _context.GetDockableWidgetNames(_flexLayout);
cmbWidgetRefs.SelectedItem = item.Widget;
_init = false;
}
示例3: Bind
public override void Bind(IEditorService service)
{
try
{
_edsvc = service;
_fsvc = (IFusionService)_edsvc.GetService((int)ServiceType.Fusion);
_context = new FlexibleLayoutEditorContext(_fsvc);
_baseUrl = service.GetCustomProperty("BaseUrl").ToString(); //NOXLATE
if (!_baseUrl.EndsWith("/")) //NOXLATE
_baseUrl += "/"; //NOXLATE
}
catch
{
throw new NotSupportedException(Strings.IncompatibleConnection);
}
service.RegisterCustomNotifier(this);
_flexLayout = (IApplicationDefinition)service.GetEditedResource();
InitWidgetSet();
}
示例4: Bind
public override void Bind(IEditorService service)
{
service.RegisterCustomNotifier(this);
try
{
_fsvc = (IFusionService)service.GetService((int)ServiceType.Fusion);
_baseUrl = service.GetCustomProperty("BaseUrl").ToString(); //NOXLATE
if (!_baseUrl.EndsWith("/")) //NOXLATE
_baseUrl += "/"; //NOXLATE
}
catch
{
throw new NotSupportedException(Strings.IncompatibleConnection);
}
_edsvc = service;
_edsvc.RegisterCustomNotifier(this);
_flexLayout = (IApplicationDefinition)service.GetEditedResource();
foreach (var grp in _flexLayout.MapSet.MapGroups)
{
AddMap(grp);
}
}