Click here to Skip to main content
       

C#

 
GeneralRe: [Help] C# .txt Pinmembermumbot18-Nov-12 21:31 
GeneralRe: [Help] C# .txt Pinmemberomisheikh18-Nov-12 21:40 
GeneralRe: [Help] C# .txt Pinmembermumbot18-Nov-12 22:15 
GeneralRe: [Help] C# .txt PinmemberZac Greve18-Nov-12 22:32 
GeneralRe: [Help] C# .txt Pinmemberomisheikh18-Nov-12 22:34 
GeneralRe: [Help] C# .txt Pinmembermumbot19-Nov-12 0:02 
AnswerRe: [Help] C# .txt PinmemberMathlab19-Nov-12 7:54 
QuestionAnother conversion problem (Prism) PinmemberAndy_L_J18-Nov-12 11:07 
I am using Prism to handle IoC, I can do this in VB.NET:
 
Dim _regionManager As IRegion
Dim _container As IUnityContainer
...
 
Dim mainRegion As IRegion = _regionManager.Regions(RegionNames.MainRegion)
For Each v As View In mainRegion.Views
  mainRegion.Remove(v)
Next
_regionManager.RegisterViewWithRegion(RegionNames.MainRegion, GetType(MaterialView)
 
I am getting the following eror: non-invocable member ....Regions cannot be used as a method.
When I use this C# conversion:
IRegion mainRegion = _regionManager.Regions(RegionNames.MainRegion);
for each(var v in mainRegion.Views)
{
  mainRegion.Remove(v);
}
_regionManager.RegisterViewWithRegion(RegionNames.MainRegion, typeof(MaterialView));
Some hints as to why would be very helpfull.
I don't speak Idiot - please talk slowly and clearly
 
"I have sexdaily. I mean dyslexia. Fcuk!"
 
Driven to the arms of Heineken by the wife

AnswerRe: Another conversion problem (Prism) PinprotectorPete O'Hanlon18-Nov-12 11:39 
GeneralRe: Another conversion problem (Prism) PinmemberAndy_L_J18-Nov-12 11:47 
QuestionSending bytes via internet? (info) Pinmemberclonze18-Nov-12 1:22 
AnswerRe: Sending bytes via internet? (info) PinmemberEddy Vluggen18-Nov-12 1:50 
GeneralRe: Sending bytes via internet? (info) Pinmemberclonze18-Nov-12 3:54 
GeneralRe: Sending bytes via internet? (info) PinmemberEddy Vluggen18-Nov-12 4:42 
QuestionConverting from VB.NET [modified] PinmemberAndy_L_J17-Nov-12 21:39 
AnswerRe: Converting from VB.NET [modified] PinmentorDaveyM6917-Nov-12 22:23 
GeneralRe: Converting from VB.NET PinmemberAndy_L_J17-Nov-12 22:54 
GeneralRe: Converting from VB.NET PinmentorDaveyM6918-Nov-12 7:10 
GeneralRe: Converting from VB.NET PinmemberAndy_L_J18-Nov-12 11:12 
Questionfiltering column value in DevExpress grid view Pinmembereli1502197917-Nov-12 20:23 
AnswerRe: filtering column value in DevExpress grid view Pinmembern.podbielski17-Nov-12 21:29 
Questionhelp PinmemberAMIR ESLAMI17-Nov-12 9:08 
AnswerRe: help PinmemberEddy Vluggen17-Nov-12 9:25 
AnswerRe: help PinmvpAbhinav S18-Nov-12 20:58 
QuestionAccess to created control PinmemberKKW_acd17-Nov-12 5:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 18 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid