Click here to Skip to main content
15,881,938 members
Home / Discussions / C#
   

C#

 
AnswerRe: Having trouble working with balls on Pong game in Windows forms in C# Pin
Kenneth Haugland18-Dec-17 4:34
mvaKenneth Haugland18-Dec-17 4:34 
GeneralRe: Having trouble working with balls on Pong game in Windows forms in C# Pin
Wagner18-Dec-17 4:53
Wagner18-Dec-17 4:53 
AnswerRe: Having trouble working with balls on Pong game in Windows forms in C# Pin
Ron Nicholson18-Dec-17 5:25
professionalRon Nicholson18-Dec-17 5:25 
GeneralRe: Having trouble working with balls on Pong game in Windows forms in C# Pin
Wagner18-Dec-17 6:46
Wagner18-Dec-17 6:46 
AnswerRe: Having trouble working with balls on Pong game in Windows forms in C# Pin
Gerry Schmitz18-Dec-17 6:35
mveGerry Schmitz18-Dec-17 6:35 
GeneralRe: Having trouble working with balls on Pong game in Windows forms in C# Pin
Wagner18-Dec-17 7:28
Wagner18-Dec-17 7:28 
GeneralRe: Having trouble working with balls on Pong game in Windows forms in C# Pin
Gerry Schmitz18-Dec-17 7:45
mveGerry Schmitz18-Dec-17 7:45 
QuestionConfigure container in Bootstrapper with Unity Pin
Kenneth Haugland17-Dec-17 3:17
mvaKenneth Haugland17-Dec-17 3:17 
I was trying to learn Unity and followed Sashas article Attached VM Behaviours[^] but he defines the Container like so:
public class Bootstrapper : UnityBootstrapper
{

    ...

    protected override void ConfigureContainer()
    {
        base.ConfigureContainer();

        //windows
        Container.RegisterType<ShellWindow>(new ContainerControlledLifetimeManager());
        ...
    }

}
But when I try and register the shellwindow it tells me that the Container does not exist. I assumed they changed something so my question is if you are not supposed to use the Bootstrapper container at all? I can register types with the code:
protected override void ConfigureContainer()
{
    IUnityContainer container = new UnityContainer();
    //windows
    container.RegisterType<ShellMainWindow>(new ContainerControlledLifetimeManager());

    base.ConfigureContainer();


}
But then how do I call Resolve without declaring a property IUnityContainer?

[Edit]
I get the error message:
Quote:
Could not load file or assembly 'Microsoft.Practices.Unity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=6d32ff45e0ccc69f' or one of its dependencies. The system cannot find the file specified.
All I could find out was this:
c# - How to resolve "Could not load file or assembly 'Microsoft.Practices.Prism' " error? - Stack Overflow[^]
but it did not solve my problem.

[/Edit]

modified 17-Dec-17 17:02pm.

AnswerRe: Configure container in Bootstrapper with Unity Pin
Chris Quinn17-Dec-17 21:36
Chris Quinn17-Dec-17 21:36 
GeneralRe: Configure container in Bootstrapper with Unity Pin
Kenneth Haugland18-Dec-17 1:57
mvaKenneth Haugland18-Dec-17 1:57 
AnswerRe: Configure container in Bootstrapper with Unity Pin
Kenneth Haugland18-Dec-17 8:24
mvaKenneth Haugland18-Dec-17 8:24 
QuestionRegarding article post of mvc pagelist. Pin
Member 1320094417-Dec-17 3:15
Member 1320094417-Dec-17 3:15 
AnswerRe: Regarding article post of mvc pagelist. Pin
Afzaal Ahmad Zeeshan17-Dec-17 4:32
professionalAfzaal Ahmad Zeeshan17-Dec-17 4:32 
QuestionExceptions Thrown Back to Caller with No Details Pin
User9874317-Dec-17 1:30
professionalUser9874317-Dec-17 1:30 
AnswerRe: Exceptions Thrown Back to Caller with No Details Pin
Richard Andrew x6417-Dec-17 1:48
professionalRichard Andrew x6417-Dec-17 1:48 
GeneralRe: Exceptions Thrown Back to Caller with No Details Pin
User9874317-Dec-17 11:25
professionalUser9874317-Dec-17 11:25 
AnswerRe: Exceptions Thrown Back to Caller with No Details Pin
Richard Andrew x6417-Dec-17 11:56
professionalRichard Andrew x6417-Dec-17 11:56 
GeneralRe: Exceptions Thrown Back to Caller with No Details Pin
User9874317-Dec-17 13:39
professionalUser9874317-Dec-17 13:39 
GeneralRe: Exceptions Thrown Back to Caller with No Details Pin
User9874317-Dec-17 14:38
professionalUser9874317-Dec-17 14:38 
QuestionI have a collum that is called "MountCT" Time type but for some reason when processing , times do not add up . Pin
Member 1256531216-Dec-17 22:32
Member 1256531216-Dec-17 22:32 
AnswerRe: I have a collum that is called "MountCT" Time type but for some reason when processing , times do not add up . Pin
Richard Andrew x6417-Dec-17 4:54
professionalRichard Andrew x6417-Dec-17 4:54 
Questioncompile error: The name 'HttpUtility' does not exist in the current context Pin
Member 1356965016-Dec-17 9:46
Member 1356965016-Dec-17 9:46 
AnswerRe: compile error: The name 'HttpUtility' does not exist in the current context Pin
Richard MacCutchan16-Dec-17 9:53
mveRichard MacCutchan16-Dec-17 9:53 
AnswerRe: compile error: The name 'HttpUtility' does not exist in the current context Pin
Eddy Vluggen16-Dec-17 10:47
professionalEddy Vluggen16-Dec-17 10:47 
QuestionStill fighting with the terminologies of unicode vs. encoding Pin
JustWatchLittle 16-Dec-17 5:43
professionalJustWatchLittle 16-Dec-17 5:43 

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.