本文整理汇总了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);
}
}
示例2: Field
public Field(ReturnType type, string fullyQualifiedName, Modifier m, IRegion region)
{
this.returnType = type;
this.FullyQualifiedName = fullyQualifiedName;
this.region = region;
modifiers = (ModifierEnum)m;
}
示例3: HeaderRegionController
public HeaderRegionController(IUnityContainer container, IEventAggregator eventAggregator,
[Dependency(ShellRegionNames.HeaderRegion)] IRegion headerRegion)
{
_container = container;
_eventAggregator = eventAggregator;
_headerRegion = headerRegion;
}
示例4: Constructor
public Constructor(Modifier m, IRegion region, IRegion bodyRegion)
{
FullyQualifiedName = "ctor";
this.region = region;
this.bodyRegion = bodyRegion;
modifiers = (ModifierEnum)m;
}
示例5: Adapt
protected override void Adapt(IRegion region, Selector regionTarget)
{
if (!(regionTarget is OutlookBarControl))
throw new ArgumentException(Resources.RegionTargetNotValidException);
base.Adapt(region, regionTarget);
}
示例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);
}
示例7: Destructor
public Destructor(string className, Modifier m, IRegion region, IRegion bodyRegion)
{
FullyQualifiedName = "~" + className;
this.region = region;
this.bodyRegion = bodyRegion;
modifiers = (ModifierEnum)m;
}
示例8: MenuRegionController
public MenuRegionController(IUnityContainer container,
[Dependency(ShellRegionNames.MenuRegion)] IRegion menuRegion)
{
_container = container;
_eventAggregator = _container.Resolve<IEventAggregator>();
_menuRegion = menuRegion;
}
示例9: Class
public Class(CompilationUnit cu, ClassType t, Modifier m, IRegion region)
{
this.cu = cu;
classType = t;
this.region = region;
modifiers = (ModifierEnum)m;
}
示例10: RegionDisplayItem
public RegionDisplayItem(IRegion region)
{
Id = region.Id;
Name = region.Name;
AverageCTDI = region.DRL_CTDI;
AverageDLP = region.DRL_DLP;
}
示例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)));
}
示例12: AttachBehaviors
protected override void AttachBehaviors(IRegion region, Selector regionTarget)
{
base.AttachBehaviors(region, regionTarget);
OutlookBarPublishBehavior behavior = new OutlookBarPublishBehavior(regionTarget, eventAggregator);
behavior.Attach();
}
示例13: DeleteRegionCore
protected override void DeleteRegionCore(IRegion region)
{
BetaRegion r = region as BetaRegion;
if (r != null) {
r.Dispose();
}
}
示例14: ReplayRecorder
public ReplayRecorder(IRegion region, string gameId,string encKey)
{
GameId = gameId;
EncKey = encKey;
writer = new ReplayWriter(region,gameId);
Getter = new Getter(region, gameId);
}
示例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);
}