Re: Generated project files

2010-06-23 Thread Michael Minutillo
Not sure if it works off the top of my head but you could put the T4 generated stuff in a separate project file and the import it into your static project file: http://msdn.microsoft.com/en-us/library/92x05xfs.aspx VS should only be watching the file it loaded and not the files it references so a

Re: Generated project files

2010-06-23 Thread silky
The other alternative is to put the relevant project in a different solution, and don't open it, but reference it. I'm not sure if your scheme supports this sort of change. My feelings would be like yours; rebuilding files you're working with all the time is bad (I had this problem in dashy, which

Re: Generated project files

2010-06-23 Thread Stephen Price
I've had a look at what's being added to the project file, and its a list of config strings from a global setting file. It contains various urls for the target build. <#@ include file="globals.ttinclude" #> I'm assuming those string are then referenced in the project (I'm told this project needs

RE: Generated project files

2010-06-23 Thread David Kean
Apart from unloading the project, I don't believe you can do this. Why does the T4 build the project file? To add source files? If so, can you make it take a filter, such as ? From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Stephen Price Sent: Wednesday,

Re: Generated project files

2010-06-23 Thread silky
Under options -> "Projects and Solutions" you could change the "Before Building" item to "Don't save any changes" and also perhaps the "On Run, when projects are out of date ..." to "Always Build" One or both of those might help ... (might cause other mistakes though, so I'd be inclined to try an

Generated project files

2010-06-23 Thread Stephen Price
Hi all, One of our project files is being generated from a tt file, and each time I do a build the project file is replaced. This triggers the IDE to reload the project file while its doing a build. Anyone know a way to have it automatically ignore or load the project file and not ask me? (just fo

RE: Get main form instance from usercontrol

2010-06-23 Thread Anthony
Thanks Dave..will take your advice and start playing with this stuff! From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of David Burstin Sent: Thursday, 24 June 2010 12:27 PM To: ozDotNet Subject: Re: Get main form instance from usercontrol On Thu, Jun

Re: Get main form instance from usercontrol

2010-06-23 Thread David Burstin
On Thu, Jun 24, 2010 at 12:11 PM, Anthony wrote: > Isn’t dependency injection just passing an instance to an object? > It's about passing dependencies to an object rather than instantiating them from within the object, thus reducing coupling, creating seams for testing and making modification ea

RE: Get main form instance from usercontrol

2010-06-23 Thread Anthony
Isn't dependency injection just passing an instance to an object? From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of David Burstin Sent: Thursday, 24 June 2010 11:28 AM To: ozDotNet Subject: Re: Get main form instance from usercontrol Hi Anthony, I

Re: Get main form instance from usercontrol

2010-06-23 Thread David Burstin
Hi Anthony, I use NInject for IoC. I've only just started using it but found reading through this to be very helpful in explaining what IoC containers are used for and how they amke working with dependency chains easy. YMMV. Cheers Dave On

RE: Get main form instance from usercontrol

2010-06-23 Thread Anthony
I have inherited from a grid and have implemented a custom save grid layout option. When i save the grid i need to know the webservice address being used on the main form instance. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of A

RE: Get main form instance from usercontrol

2010-06-23 Thread Anthony
Interesting ..i have no idea what an ioc container is? From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of David Kean Sent: Thursday, 24 June 2010 10:57 AM To: ozDotNet Subject: RE: Get main form instance from usercontrol This is why I also use an IoC con

RE: Get main form instance from usercontrol

2010-06-23 Thread David Kean
This is why I also use an IoC container - I'm also lazy, and I have it worry about finding me the dependencies. ;) From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Anthony Sent: Wednesday, June 23, 2010 5:50 PM To: 'ozDotNet' Subject: RE: Get main form inst

Re: Get main form instance from usercontrol

2010-06-23 Thread Arjang Assadi
Even if you create a property to hold the instance the of form containing the control, what is the problem that requires the control to be aware of the form container that it is contained in? Kind Regards Arjang On 24 June 2010 10:50, Anthony wrote: > Agree with you..but was hoping to save some

RE: Get main form instance from usercontrol

2010-06-23 Thread Anthony
Agree with you..but was hoping to save some effort setting a property for all instances of my control. I guess i should just add a property and go for it..lazy me! From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of David Kean Sent: Thursday, 24 June 2010 10

RE: Get main form instance from usercontrol

2010-06-23 Thread David Kean
What are you trying to do? A user control should try and be naive to where it's being hosted - I typically have these communicate to the form hosting it by using events and properties. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Joseph Clark Sent: Wed

Re: Get main form instance from usercontrol

2010-06-23 Thread Joseph Clark
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.findform.aspxshould work? On Thu, Jun 24, 2010 at 10:25 AM, Anthony wrote: > What method do i need to use to the get the main instance of a form from > a usercontrol? > > > > The main form is of type FormMain but how do i a

Get main form instance from usercontrol

2010-06-23 Thread Anthony
What method do i need to use to the get the main instance of a form from a usercontrol? The main form is of type FormMain but how do i access the instance from a usercontrol? If i use me.parent..this would only give the instance of the container object. Using vb.net winforms

RE: [OT] HealthSMART problems

2010-06-23 Thread Ken Schaefer
I think it would be pretty unbelievable if they didn’t have a several pilot phases (with increasing numbers of employees involved). Even running both systems in parallel has issues – people getting paid twice, people not getting paid at all etc., can still occur… Cheers Ken From: ozdotnet-boun