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


C# IUnityContainer.StartViewActivity方法代码示例

本文整理汇总了C#中IUnityContainer.StartViewActivity方法的典型用法代码示例。如果您正苦于以下问题:C# IUnityContainer.StartViewActivity方法的具体用法?C# IUnityContainer.StartViewActivity怎么用?C# IUnityContainer.StartViewActivity使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IUnityContainer的用法示例。


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

示例1: Show

		public static FSharpAsync<Unit> Show(IUnityContainer container) {
			return container.StartViewActivity<Unit>(context => {
				var view = new AboutView(context);
				var presenter = container.Resolve<IViewPresenter>();
				presenter.ShowView(view);
			});
		}
开发者ID:zzilla,项目名称:ONVIF-Device-Manager,代码行数:7,代码来源:AboutView.xaml.cs

示例2: Show

		public static FSharpAsync<Result> Show(IUnityContainer container, Model model) {
			return container.StartViewActivity<Result>(context => {
				var view = new UserManagementView(model, context);
				var presenter = container.Resolve<IViewPresenter>();
				presenter.ShowView(view);
			});
		}
开发者ID:zzilla,项目名称:ONVIF-Device-Manager,代码行数:7,代码来源:UserManagementView.xaml.cs

示例3: Show

		public static FSharpAsync<Result> Show(IUnityContainer container, Model model) {
			return container.StartViewActivity<Result>(context => {
				var view = new EngineControlSimpleInputModifyView(model, context);
				var presenter = container.Resolve<IViewPresenter>();
				presenter.ShowView(view);
			});
		}
开发者ID:zzilla,项目名称:ONVIF-Device-Manager,代码行数:7,代码来源:EngineControlSimpleInputModifyView.xaml.cs

示例4: Show

		public static FSharpAsync<Result> Show(IUnityContainer container, Exception error) {
			var model = new Model(error);
			return container.StartViewActivity<Result>(context => {
				var view = new ErrorView(model, context);
				var presenter = container.Resolve<IViewPresenter>();
				presenter.ShowView(view);
			});
		}
开发者ID:zzilla,项目名称:ONVIF-Device-Manager,代码行数:8,代码来源:ErrorView.xaml.cs

示例5: Show

		public static FSharpAsync<Result> Show(IUnityContainer container, string message) {
			var model = new Model(message);
			return container.StartViewActivity<Result>(context => {
				var view = new InfoView(model, context);
				var presenter = container.Resolve<IViewPresenter>();
				presenter.ShowView(view);
			});
		}
开发者ID:zzilla,项目名称:ONVIF-Device-Manager,代码行数:8,代码来源:InfoView.xaml.cs


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