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


C# IRegion类代码示例

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


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

示例1: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            isConstValueTypeLoad = false;
            this.cmbCustomerTop.InnerDropDownList.Load += new EventHandler(cmbCustomerTop_Load);
            
            iRegion = ServiceAgent.getInstance().GetMaintainObjectByName<IRegion>(WebConstant.IRegion);
            pmtMessage1 = this.GetLocalResourceObject(Pre + "_pmtMessage1").ToString();
            pmtMessage2 = this.GetLocalResourceObject(Pre + "_pmtMessage2").ToString();
            pmtMessage3 = this.GetLocalResourceObject(Pre + "_pmtMessage3").ToString();
            pmtMessage4 = this.GetLocalResourceObject(Pre + "_pmtMessage4").ToString();
            pmtMessage5 = this.GetLocalResourceObject(Pre + "_pmtMessage5").ToString();
            pmtMessage6 = this.GetLocalResourceObject(Pre + "_pmtMessage6").ToString();
            if (!this.IsPostBack)
            {
                userName = Master.userInfo.UserId;
                this.HiddenUserName.Value = userName;
                initLabel();
                initcustomer();
                bindTable(null, DEFAULT_ROWS);
            }

            ScriptManager.RegisterStartupScript(this.updatePanelAll, typeof(System.Object), "InitControl", "initControls();", true);
        }
        catch (FisException ex)
        {
            showErrorMessage(ex.mErrmsg);
        }
        catch (Exception ex)
        {
            showErrorMessage(ex.Message);
        }
    }
开发者ID:wra222,项目名称:testgit,代码行数:34,代码来源:RegionMaintain.aspx.cs

示例2: Field

 public Field(ReturnType type, string fullyQualifiedName, Modifier m, IRegion region)
 {
     this.returnType = type;
     this.FullyQualifiedName = fullyQualifiedName;
     this.region = region;
     modifiers = (ModifierEnum)m;
 }
开发者ID:slluis,项目名称:monodevelop-prehistoric,代码行数:7,代码来源:Field.cs

示例3: HeaderRegionController

 public HeaderRegionController(IUnityContainer container, IEventAggregator eventAggregator, 
     [Dependency(ShellRegionNames.HeaderRegion)] IRegion headerRegion)
 {
     _container = container;
     _eventAggregator = eventAggregator;
     _headerRegion = headerRegion;
 }
开发者ID:CHOUAiB,项目名称:WPF-Framework,代码行数:7,代码来源:HeaderRegionController.cs

示例4: Constructor

		public Constructor(Modifier m, IRegion region, IRegion bodyRegion)
		{
			FullyQualifiedName = "ctor";
			this.region     = region;
			this.bodyRegion = bodyRegion;
			modifiers = (ModifierEnum)m;
		}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:7,代码来源:Constructor.cs

示例5: Adapt

        protected override void Adapt(IRegion region, Selector regionTarget)
        {
            if (!(regionTarget is OutlookBarControl))
                throw new ArgumentException(Resources.RegionTargetNotValidException);

            base.Adapt(region, regionTarget);
        }
开发者ID:jfromaniello,项目名称:prismcontrib,代码行数:7,代码来源:OutlookBarControlRegionAdapter.cs

示例6: Add

			public void Add(IRegion region)
			{
				if (region.Name == null)
				{
					throw new InvalidOperationException("Region name cannot be empty");
				}

				if (this.GetRegionByName(region.Name) != null)
				{
					throw new ArgumentException("Region already exists: " + region.Name);
				}

				var r = region as Region;
				if (r != null)
				{
					if (r.RegionManager != null)
					{
						throw new ArgumentException("Region is already associated with a region manager");
					}
					r.RegionManager = _regionManager;

					string regionName = region.Name;
					r.RegionClosed += delegate { Remove(regionName); };
				}

				_regions.Add(region);
			}
开发者ID:matthewc-mps-aust,项目名称:quokka,代码行数:27,代码来源:RegionManager.cs

示例7: Destructor

 public Destructor(string className, Modifier m, IRegion region, IRegion bodyRegion)
 {
     FullyQualifiedName = "~" + className;
     this.region     = region;
     this.bodyRegion = bodyRegion;
     modifiers = (ModifierEnum)m;
 }
开发者ID:slluis,项目名称:monodevelop-prehistoric,代码行数:7,代码来源:Destructor.cs

示例8: MenuRegionController

 public MenuRegionController(IUnityContainer container,
     [Dependency(ShellRegionNames.MenuRegion)] IRegion menuRegion)
 {
     _container = container;
     _eventAggregator = _container.Resolve<IEventAggregator>();
     _menuRegion = menuRegion;
 }
开发者ID:CHOUAiB,项目名称:WPF-Framework,代码行数:7,代码来源:MenuRegionController.cs

示例9: Class

 public Class(CompilationUnit cu, ClassType t, Modifier m, IRegion region)
 {
     this.cu = cu;
     classType = t;
     this.region = region;
     modifiers = (ModifierEnum)m;
 }
开发者ID:slluis,项目名称:monodevelop-prehistoric,代码行数:7,代码来源:Class.cs

示例10: RegionDisplayItem

 public RegionDisplayItem(IRegion region)
 {
     Id = region.Id;
     Name = region.Name;
     AverageCTDI = region.DRL_CTDI;
     AverageDLP = region.DRL_DLP;
 }
开发者ID:Trigger2991,项目名称:CTSurvey,代码行数:7,代码来源:RegionDisplayItem.cs

示例11: LoginController

        public LoginController(IEventAggregator eventAggregator, 
            IRegionManager regionManager, ILoginView view, ILinqApi api, ICredentialsStore store, IAsyncManager manager)
        {
            eventAggregator.GetEvent<InitialViewActivatedEvent>().Subscribe(
                DoLogin);

            this.region = regionManager.Regions[RegionNames.DialogRegion];

            this.eventAggregator = eventAggregator;
            this.view = view;
            this.api = api;
            this.store = store;
            this.manager = manager;
            this.region.Add(this.view);

            this.username = store.Username;
            this.password = store.Password;

            this.view.DataContext = this;

            this.provideCredentialsCommand =
                new DelegateCommand<object>(this.ProvideCredentials,
                                            o =>
                                            !(String.IsNullOrEmpty(this.Username) ||
                                              String.IsNullOrEmpty(this.Password)));
        }
开发者ID:ArildF,项目名称:linqtwit,代码行数:26,代码来源:LoginController.cs

示例12: AttachBehaviors

        protected override void AttachBehaviors(IRegion region, Selector regionTarget)
        {
            base.AttachBehaviors(region, regionTarget);

            OutlookBarPublishBehavior behavior = new OutlookBarPublishBehavior(regionTarget, eventAggregator);
            behavior.Attach();
        }
开发者ID:jfromaniello,项目名称:prismcontrib,代码行数:7,代码来源:OutlookBarControlRegionAdapter.cs

示例13: DeleteRegionCore

 protected override void DeleteRegionCore(IRegion region)
 {
     BetaRegion r = region as BetaRegion;
     if (r != null) {
         r.Dispose();
     }
 }
开发者ID:vfioox,项目名称:ENULib,代码行数:7,代码来源:BetaRegionManager.cs

示例14: ReplayRecorder

 public ReplayRecorder(IRegion region, string gameId,string encKey)
 {
     GameId = gameId;
     EncKey = encKey;
     writer = new ReplayWriter(region,gameId);
     Getter = new Getter(region, gameId);
 }
开发者ID:AnnieReplays,项目名称:AnnieReplays,代码行数:7,代码来源:ReplayRecorder.cs

示例15: before_each

 public void before_each()
 {
     logProvider = MockRepository.GenerateStub<ILogProvider>();
     logSourceView = MockRepository.GenerateStub<ILogSourceView>();
     regionManager = MockRepository.GenerateStub<IRegionManager>();
     region = MockRepository.GenerateMock<IRegion>();
     regionManager.Stub(x => x.Regions[null]).IgnoreArguments().Return(region);
 }
开发者ID:jenrom,项目名称:LogSpy,代码行数:8,代码来源:LogSourcePresenterTests.cs


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