Click here to Skip to main content
15,915,019 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to see the [Items] property of the Listbox that is inside UserControl Pin
_Q12_21-Jun-11 2:22
_Q12_21-Jun-11 2:22 
GeneralRe: How to see the [Items] property of the Listbox that is inside UserControl Pin
Rob Philpott21-Jun-11 2:27
Rob Philpott21-Jun-11 2:27 
GeneralRe: How to see the [Items] property of the Listbox that is inside UserControl Pin
_Q12_21-Jun-11 2:34
_Q12_21-Jun-11 2:34 
GeneralRe: How to see the [Items] property of the Listbox that is inside UserControl Pin
Rob Philpott21-Jun-11 2:42
Rob Philpott21-Jun-11 2:42 
GeneralRe: How to see the [Items] property of the Listbox that is inside UserControl [modified] Pin
_Q12_21-Jun-11 2:53
_Q12_21-Jun-11 2:53 
GeneralRe: How to see the [Items] property of the Listbox that is inside UserControl Pin
BobJanova21-Jun-11 23:44
BobJanova21-Jun-11 23:44 
GeneralRe: How to see the [Items] property of the Listbox that is inside UserControl Pin
_Q12_21-Jun-11 3:06
_Q12_21-Jun-11 3:06 
GeneralRe: How to see the [Items] property of the Listbox that is inside UserControl Pin
V.21-Jun-11 3:51
professionalV.21-Jun-11 3:51 
GeneralRe: How to see the [Items] property of the Listbox that is inside UserControl Pin
_Q12_21-Jun-11 4:52
_Q12_21-Jun-11 4:52 
GeneralRe: How to see the [Items] property of the Listbox that is inside UserControl Pin
phil.o21-Jun-11 5:07
professionalphil.o21-Jun-11 5:07 
GeneralRe: How to see the [Items] property of the Listbox that is inside UserControl Pin
_Q12_21-Jun-11 5:12
_Q12_21-Jun-11 5:12 
GeneralRe: How to see the [Items] property of the Listbox that is inside UserControl Pin
phil.o21-Jun-11 5:24
professionalphil.o21-Jun-11 5:24 
QuestionFxcop Pin
Subin Mavunkal20-Jun-11 22:03
Subin Mavunkal20-Jun-11 22:03 
AnswerRe: Fxcop Pin
OriginalGriff20-Jun-11 23:02
mveOriginalGriff20-Jun-11 23:02 
AnswerRe: Fxcop Pin
RobCroll21-Jun-11 3:11
RobCroll21-Jun-11 3:11 
GeneralRe: Fxcop Pin
#realJSOP21-Jun-11 9:36
professional#realJSOP21-Jun-11 9:36 
AnswerRe: Fxcop Pin
Eddy Vluggen21-Jun-11 11:56
professionalEddy Vluggen21-Jun-11 11:56 
GeneralRe: Fxcop Pin
RobCroll21-Jun-11 14:53
RobCroll21-Jun-11 14:53 
AnswerRe: Fxcop Pin
#realJSOP21-Jun-11 9:38
professional#realJSOP21-Jun-11 9:38 
AnswerRe: Fxcop Pin
Eddy Vluggen21-Jun-11 11:58
professionalEddy Vluggen21-Jun-11 11:58 
GeneralRe: Fxcop Pin
Subin Mavunkal21-Jun-11 21:04
Subin Mavunkal21-Jun-11 21:04 
AnswerRe: Fxcop Pin
Eddy Vluggen22-Jun-11 0:16
professionalEddy Vluggen22-Jun-11 0:16 
QuestionC# Working with C # classes from different namespaces Pin
lada_vyvojar20-Jun-11 20:17
lada_vyvojar20-Jun-11 20:17 
AnswerRe: C# Working with C # classes from different namespaces Pin
Vladimir Kniazkov20-Jun-11 20:38
professionalVladimir Kniazkov20-Jun-11 20:38 
AnswerRe: C# Working with C # classes from different namespaces Pin
BobJanova20-Jun-11 23:06
BobJanova20-Jun-11 23:06 
Firstly, take out common code and put that in base classes in a base interface, and make sure that each implementation implements a common namespace. The main driver code shouldn't have to store references to any of the specific company namespaces. Then the problem simply comes down to creating an instance of the main object within one of the namespaces.

Depending on how flexible you want your system to be, and whether you permit runtime plugins, you either want a hard-coded factory:
class MultiServiceFactory {
 IMultiService Create(string name){
  if(name == "01") return new Company.Service01.MultiService();
  else if(name == "02") return new Company.Service02.MultiService();
  // ... etc
  else throw new ArgumentException("Can't make a service for "+name);
 }
}


... or you need to use reflection to look up the requested name ("Company.Service"+name+".ClassName") in either the current assemblies or loaded runtime plugin assemblies. I won't go into the entirety of plugin architecture in a Q&A reply, there are plenty of articles on CP about it.

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

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