Click here to Skip to main content
11,583,532 members (65,352 online)
   

C#

 
GeneralRe: Latency In Button Click When Using MVVM Pin
Tee12311-Jan-13 10:14
memberTee12311-Jan-13 10:14 
QuestionC# computer name rename Pin
EvetsMostel11-Jan-13 7:00
memberEvetsMostel11-Jan-13 7:00 
AnswerRe: C# computer name rename Pin
jibesh11-Jan-13 7:47
memberjibesh11-Jan-13 7:47 
GeneralRe: C# computer name rename Pin
EvetsMostel11-Jan-13 7:54
memberEvetsMostel11-Jan-13 7:54 
GeneralRe: C# computer name rename Pin
EvetsMostel11-Jan-13 11:30
memberEvetsMostel11-Jan-13 11:30 
GeneralRe: C# computer name rename Pin
EvetsMostel14-Jan-13 13:15
memberEvetsMostel14-Jan-13 13:15 
QuestionFTP Decryption Error Pin
Member 865395910-Jan-13 18:22
memberMember 865395910-Jan-13 18:22 
AnswerRe: FTP Decryption Error Pin
Bernhard Hiller10-Jan-13 21:46
memberBernhard Hiller10-Jan-13 21:46 
GeneralRe: FTP Decryption Error Pin
Garth J Lancaster11-Jan-13 11:00
memberGarth J Lancaster11-Jan-13 11:00 
AnswerRe: FTP Decryption Error Pin
Eddy Vluggen11-Jan-13 2:28
mvpEddy Vluggen11-Jan-13 2:28 
GeneralRe: FTP Decryption Error Pin
Garth J Lancaster11-Jan-13 11:00
memberGarth J Lancaster11-Jan-13 11:00 
Questionhow to export a div to pdf Pin
shineskollam10-Jan-13 18:17
membershineskollam10-Jan-13 18:17 
AnswerRe: how to export a div to pdf Pin
Richard MacCutchan10-Jan-13 21:51
mvpRichard MacCutchan10-Jan-13 21:51 
QuestionRegarding implementation of Dependency Injection with C# Pin
Tridip Bhattacharjee10-Jan-13 2:06
memberTridip Bhattacharjee10-Jan-13 2:06 
i never use Dependency Injection in apps. i go through few article with Dependency Injection and found the concept is interesting but believe hard to implement in real life. now i want to implement Dependency Injection in my win form apps.

our company work with many shipping company like UPS, Fedex, Purolator etc for now but in future they have plan to works with many other shipping company. i have developed separate separate class library projects for all those shipping company like UPS, Fedex, Purolator and include those dll into our main form apps. the problem is many time we hard code few things in our code like country code etc.

for example i have one form where 4 buttons are there. like those buttons are "Ship with UPS WorldShip", another button there called "Ship with UPS WebAPI", another button there called "Ship with FedEX Desktop Apps" and another last button called "Ship with Fedex WebAPI".

when user click on UPS WorldShip button then a flat file generate in a folder. when user click on UPS WebAPI button then a request goes to UPS site.

when user click on FedEX WinApps button then a flat file generate in a folder. when user click on FedEX WebAPI button then a request goes to FedEx site.

so what i do now when user click on any button then i call a specific function exist in dll to complete the task.

everything is working fine at my end but the problem is when our company start working with another new shipping company then i have to create another class library for that company.

i said i never use DI ever in my apps and have no experience. so some one guide me how could i handle my situation with DI as a result when a new shipping company will join then i do not have to write any extra code. so guide me how to implement DI in my apps and also guide me with how to handle my situation with sample DI code for guidance.

thanks
tbhattacharjee

AnswerRe: Regarding implementation of Dependency Injection with C# Pin
Pete O'Hanlon10-Jan-13 2:22
protectorPete O'Hanlon10-Jan-13 2:22 
AnswerRe: Regarding implementation of Dependency Injection with C# Pin
jschell10-Jan-13 14:03
memberjschell10-Jan-13 14:03 
AnswerRe: Regarding implementation of Dependency Injection with C# Pin
SledgeHammer0110-Jan-13 14:57
memberSledgeHammer0110-Jan-13 14:57 
GeneralRe: Regarding implementation of Dependency Injection with C# Pin
Tridip Bhattacharjee10-Jan-13 20:07
memberTridip Bhattacharjee10-Jan-13 20:07 
GeneralRe: Regarding implementation of Dependency Injection with C# Pin
Pete O'Hanlon10-Jan-13 21:11
protectorPete O'Hanlon10-Jan-13 21:11 
QuestionHow to draw an arc in winRT with animation? Pin
abinashokk9-Jan-13 21:55
memberabinashokk9-Jan-13 21:55 
AnswerRe: How to draw an arc in winRT with animation? Pin
Pete O'Hanlon9-Jan-13 22:34
protectorPete O'Hanlon9-Jan-13 22:34 
QuestionC#.NET 3.5 Code review checklist Pin
Member 31370789-Jan-13 20:28
memberMember 31370789-Jan-13 20:28 
AnswerRe: C#.NET 3.5 Code review checklist Pin
Eddy Vluggen9-Jan-13 22:54
mvpEddy Vluggen9-Jan-13 22:54 
AnswerRe: C#.NET 3.5 Code review checklist Pin
deflinek10-Jan-13 0:53
memberdeflinek10-Jan-13 0:53 
AnswerRe: C#.NET 3.5 Code review checklist Pin
jschell10-Jan-13 14:06
memberjschell10-Jan-13 14:06 
GeneralRe: C#.NET 3.5 Code review checklist Pin
PIEBALDconsult10-Jan-13 15:16
memberPIEBALDconsult10-Jan-13 15:16 
GeneralRe: C#.NET 3.5 Code review checklist Pin
PIEBALDconsult10-Jan-13 14:46
memberPIEBALDconsult10-Jan-13 14:46 
QuestionSocket programming Pin
mohammadkaab9-Jan-13 3:32
membermohammadkaab9-Jan-13 3:32 
AnswerRe: Socket programming Pin
Dave Kreskowiak9-Jan-13 3:38
mvpDave Kreskowiak9-Jan-13 3:38 
GeneralRe: Socket programming Pin
mohammadkaab9-Jan-13 7:13
membermohammadkaab9-Jan-13 7:13 
GeneralRe: Socket programming Pin
Dave Kreskowiak9-Jan-13 9:02
mvpDave Kreskowiak9-Jan-13 9:02 
GeneralRe: Socket programming Pin
mohammadkaab9-Jan-13 9:25
membermohammadkaab9-Jan-13 9:25 
GeneralRe: Socket programming Pin
Dave Kreskowiak10-Jan-13 2:11
mvpDave Kreskowiak10-Jan-13 2:11 
AnswerRe: Socket programming Pin
Keith Barrow9-Jan-13 4:15
mentorKeith Barrow9-Jan-13 4:15 
GeneralRe: Socket programming Pin
mohammadkaab9-Jan-13 10:29
membermohammadkaab9-Jan-13 10:29 
AnswerRe: Socket programming Pin
Richard MacCutchan9-Jan-13 4:42
mvpRichard MacCutchan9-Jan-13 4:42 
AnswerRe: Socket programming Pin
Pete O'Hanlon9-Jan-13 5:27
protectorPete O'Hanlon9-Jan-13 5:27 
AnswerRe: Socket programming Pin
harold aptroot9-Jan-13 6:14
memberharold aptroot9-Jan-13 6:14 
AnswerRe: Socket programming Pin
ProgramFOX9-Jan-13 6:47
member ProgramFOX9-Jan-13 6:47 
QuestionLooking for a specific regex Pin
Dennis Bork8-Jan-13 21:31
memberDennis Bork8-Jan-13 21:31 
AnswerRe: Looking for a specific regex Pin
Pete O'Hanlon8-Jan-13 22:27
protectorPete O'Hanlon8-Jan-13 22:27 
AnswerRe: Looking for a specific regex Pin
savbace8-Jan-13 23:49
membersavbace8-Jan-13 23:49 
AnswerRe: Looking for a specific regex Pin
lmoelleb9-Jan-13 0:12
memberlmoelleb9-Jan-13 0:12 
GeneralRe: Looking for a specific regex Pin
Dennis Bork9-Jan-13 3:26
memberDennis Bork9-Jan-13 3:26 
AnswerRe: Looking for a specific regex Pin
thewazz9-Jan-13 3:38
memberthewazz9-Jan-13 3:38 
AnswerRe: Looking for a specific regex Pin
PIEBALDconsult9-Jan-13 3:42
memberPIEBALDconsult9-Jan-13 3:42 
QuestionOrder execution sequence Pin
vanikanc8-Jan-13 10:32
membervanikanc8-Jan-13 10:32 
AnswerRe: Order execution sequence Pin
YENSIX8-Jan-13 11:17
memberYENSIX8-Jan-13 11:17 
GeneralRe: Order execution sequence Pin
vanikanc8-Jan-13 14:36
membervanikanc8-Jan-13 14:36 
GeneralRe: Order execution sequence Pin
vanikanc9-Jan-13 5:24
membervanikanc9-Jan-13 5:24 

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.150603.1 | Last Updated 7 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid