本文整理汇总了C#中IApplicationComponent类的典型用法代码示例。如果您正苦于以下问题:C# IApplicationComponent类的具体用法?C# IApplicationComponent怎么用?C# IApplicationComponent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IApplicationComponent类属于命名空间,在下文中一共展示了IApplicationComponent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: NavigatorPage
/// <summary>
/// Constructor.
/// </summary>
/// <param name="path">The path to this page in the navigation tree.</param>
/// <param name="component">The application component to be displayed by this page</param>
public NavigatorPage(Path path, IApplicationComponent component)
:base(component)
{
Platform.CheckForNullReference(path, "path");
_path = path;
}
开发者ID:nhannd,项目名称:Xian,代码行数:12,代码来源:NavigatorPage.cs
示例2: ChildComponentHost
/// <summary>
/// Constructor.
/// </summary>
/// <param name="parentHost">The object that hosts the <paramref name="childComponent"/>'s parent component.</param>
/// <param name="childComponent">The child application component being hosted.</param>
public ChildComponentHost(IApplicationComponentHost parentHost, IApplicationComponent childComponent)
: base(childComponent)
{
Platform.CheckForNullReference(parentHost, "parentHost");
_parentHost = parentHost;
}
开发者ID:m-berkani,项目名称:ClearCanvas,代码行数:12,代码来源:ChildComponentHost.cs
示例3: SplitPane
/// <summary>
/// Constructor.
/// </summary>
/// <param name="name">The name of the <see cref="SplitPane"/>.</param>
/// <param name="component">The <see cref="IApplicationComponent"/> to be hosted.</param>
/// <param name="fix">Whether or not the pane should be fixed (based on size). Only one of the two <see cref="SplitPane"/>s can be fixed.</param>
public SplitPane(string name, IApplicationComponent component, bool fix)
{
_name = name;
_component = component;
_weight = 0F;
_fixed = fix;
}
开发者ID:nhannd,项目名称:Xian,代码行数:13,代码来源:SplitPane.cs
示例4: ContainedComponentHost
/// <summary>
/// Contruct the contained sub host with the <see cref="ApplicationComponentContainer"/>
/// owner that will provide access to the real host. The contained component is passed
/// to the base <see cref="ApplicationComponentHost"/>.
/// </summary>
/// <param name="owner"></param>
/// <param name="component"></param>
public ContainedComponentHost(
ApplicationComponentContainer owner,
IApplicationComponent component)
: base(component)
{
Platform.CheckForNullReference(owner, "owner");
_owner = owner;
}
开发者ID:m-berkani,项目名称:ClearCanvas,代码行数:16,代码来源:ApplicationComponentContainer.cs
示例5: StackTabPage
/// <summary>
/// Constructor.
/// </summary>
/// <param name="name">The name of the page.</param>
/// <param name="component">The <see cref="IApplicationComponent"/> to be hosted in this page.</param>
/// <param name="title">The text to display on the title bar.</param>
/// <param name="iconSet">The icon to display on the title bar.</param>
/// <param name="fallbackResolver">Resource resolver to fall back on in case the default failed to find resources.</param>
public StackTabPage(string name,
IApplicationComponent component,
string title,
IconSet iconSet,
IResourceResolver fallbackResolver)
: base(name, component)
{
_title = title;
_iconSet = iconSet;
_resourceResolver = new ApplicationThemeResourceResolver(typeof(StackTabPage).Assembly, fallbackResolver);
}
开发者ID:nhannd,项目名称:Xian,代码行数:19,代码来源:StackTabPage.cs
示例6: DialogBoxView
/// <summary>
/// Constructor.
/// </summary>
/// <param name="dialogBox"></param>
/// <param name="owner"></param>
protected internal DialogBoxView(DialogBox dialogBox, DesktopWindowView owner)
{
IApplicationComponentView componentView = dialogBox.ComponentView;
// cache the app component - we'll need it later to get the ExitCode
_component = (IApplicationComponent)dialogBox.Component;
_form = CreateDialogBoxForm(dialogBox, (Control)componentView.GuiElement);
_form.FormClosing += new FormClosingEventHandler(_form_FormClosing);
_owner = owner.DesktopForm;
}
开发者ID:jasper-yeh,项目名称:ClearCanvas,代码行数:17,代码来源:DialogBoxView.cs
示例7: GetErrorsString
/// <summary>
/// Gets the concatenation of all error strings, based on the results of all
/// <see cref="IValidationRule"/>s in the set.
/// </summary>
public string GetErrorsString(IApplicationComponent component)
{
List<IValidationRule> brokenRules = _rules.FindAll(
delegate(IValidationRule r) { return r.GetResult(component).Success == false; });
return StringUtilities.Combine(brokenRules, "\n",
delegate(IValidationRule r)
{
return string.Format("{0}: {1}",
r.PropertyName,
StringUtilities.Combine(r.GetResult(component).Messages, ", "));
});
}
开发者ID:nhannd,项目名称:Xian,代码行数:17,代码来源:ValidationRuleSet.cs
示例8: HtmlComponentControl
/// <summary>
/// Constructor
/// </summary>
public HtmlComponentControl(IApplicationComponent component, ActiveTemplate template)
{
InitializeComponent();
_component = component;
_template = template;
#if DEBUG
_webBrowser.IsWebBrowserContextMenuEnabled = true;
#else
_webBrowser.IsWebBrowserContextMenuEnabled = false;
#endif
_component.AllPropertiesChanged += AllPropertiesChangedEventHandler;
this.Disposed += new EventHandler(DisposedEventHandler);
ReloadPage();
}
开发者ID:nhannd,项目名称:Xian,代码行数:19,代码来源:HtmlComponentControl.cs
示例9: ApplicationComponentUserControl
/// <summary>
/// Constructor
/// </summary>
/// <param name="component"></param>
public ApplicationComponentUserControl(IApplicationComponent component)
{
InitializeComponent();
_errorProvider.DataSource = component;
component.ValidationVisibleChanged += ValidationVisibleChangedEventHandler;
if (component is ApplicationComponent)
{
ActionModelNode menuModel = ((ApplicationComponent)component).MetaContextMenuModel;
if (menuModel != null)
{
ToolStripBuilder.BuildMenu(_contextMenu.Items, menuModel.ChildNodes);
}
}
}
开发者ID:m-berkani,项目名称:ClearCanvas,代码行数:20,代码来源:ApplicationComponentUserControl.cs
示例10: SetComponent
public void SetComponent(IApplicationComponent component)
{
_component = (ReportingMppsDocumentationComponent)component;
}
开发者ID:nhannd,项目名称:Xian,代码行数:4,代码来源:ReportingMppsDocumentationComponentView.cs
示例11: SetComponent
/// <summary>
/// Called by the host to assign this view to a component.
/// </summary>
public void SetComponent(IApplicationComponent component)
{
_component = (AIMTCGAComponent)component;
}
开发者ID:CuriousX,项目名称:annotation-and-image-markup,代码行数:7,代码来源:AIMTCGAComponentView.cs
示例12: SetComponent
/// <summary>
/// Called by the host to assign this view to a component.
/// </summary>
public void SetComponent(IApplicationComponent component)
{
_component = (AimAnnotationComponent)component;
}
开发者ID:vikasvm,项目名称:annotation-and-image-markup,代码行数:7,代码来源:AimAnnotationComponentView.cs
示例13: SetComponent
public void SetComponent(IApplicationComponent component)
{
_component = (ProcedureTypeGroupEditorComponent)component;
}
开发者ID:m-berkani,项目名称:ClearCanvas,代码行数:4,代码来源:ProcedureTypeGroupEditorComponentView.cs
示例14: SetComponent
public void SetComponent(IApplicationComponent component)
{
_component = (PhoneNumberEditorComponent)component;
}
开发者ID:nhannd,项目名称:Xian,代码行数:4,代码来源:PhoneNumberEditorComponentView.cs
示例15: SetComponent
public void SetComponent(IApplicationComponent component)
{
_component = (OrderEditorComponent)component;
}
开发者ID:m-berkani,项目名称:ClearCanvas,代码行数:4,代码来源:OrderEditorComponentView.cs
示例16: SetComponent
public void SetComponent(IApplicationComponent component)
{
_component = (DefaultCodeEditorComponent)component;
}
开发者ID:m-berkani,项目名称:ClearCanvas,代码行数:4,代码来源:DefaultCodeEditorComponentView.cs
示例17: SetComponent
public void SetComponent(IApplicationComponent component)
{
_component = (AddressEditorComponent)component;
}
开发者ID:m-berkani,项目名称:ClearCanvas,代码行数:4,代码来源:AddressEditorComponentView.cs
示例18: Host
internal Host(Workspace workspace, IApplicationComponent component)
: base(component)
{
Platform.CheckForNullReference(workspace, "workspace");
_workspace = workspace;
}
开发者ID:nhannd,项目名称:Xian,代码行数:6,代码来源:Workspace.cs
示例19: Host
internal Host(DialogBox owner, IApplicationComponent component)
: base(component)
{
Platform.CheckForNullReference(owner, "owner");
_owner = owner;
}
开发者ID:nhannd,项目名称:Xian,代码行数:6,代码来源:DialogBox.cs
示例20: SetComponent
/// <summary>
/// Called by the host to assign this view to a component.
/// </summary>
public void SetComponent(IApplicationComponent component)
{
_component = (RenameStudyComponent)component;
}
开发者ID:fparisotto,项目名称:ClearCanvas-Contrib,代码行数:7,代码来源:RenameStudyComponentView.cs
注:本文中的IApplicationComponent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论