本文整理汇总了C#中IApplicationComponent类的典型用法代码示例。如果您正苦于以下问题:C# IApplicationComponent类的具体用法?C# IApplicationComponent怎么用?C# IApplicationComponent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IApplicationComponent类属于命名空间,在下文中一共展示了IApplicationComponent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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, ", "));
});
}
示例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();
}
示例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);
}
}
}
示例10: SetComponent
public void SetComponent(IApplicationComponent component)
{
_component = (ReportingMppsDocumentationComponent)component;
}
示例11: SetComponent
/// <summary>
/// Called by the host to assign this view to a component.
/// </summary>
public void SetComponent(IApplicationComponent component)
{
_component = (AIMTCGAComponent)component;
}
示例12: SetComponent
/// <summary>
/// Called by the host to assign this view to a component.
/// </summary>
public void SetComponent(IApplicationComponent component)
{
_component = (AimAnnotationComponent)component;
}
示例13: SetComponent
public void SetComponent(IApplicationComponent component)
{
_component = (ProcedureTypeGroupEditorComponent)component;
}
示例14: SetComponent
public void SetComponent(IApplicationComponent component)
{
_component = (PhoneNumberEditorComponent)component;
}
示例15: SetComponent
public void SetComponent(IApplicationComponent component)
{
_component = (OrderEditorComponent)component;
}