Click here to Skip to main content
15,914,323 members
Home / Discussions / C#
   

C#

 
QuestionRe: Form events taking precedence over control events and forwarding events? Pin
DaveyM6916-Jul-09 13:55
professionalDaveyM6916-Jul-09 13:55 
AnswerRe: Form events taking precedence over control events and forwarding events? Pin
Luc Pattyn16-Jul-09 13:57
sitebuilderLuc Pattyn16-Jul-09 13:57 
JokeRe: Form events taking precedence over control events and forwarding events? Pin
DaveyM6916-Jul-09 14:09
professionalDaveyM6916-Jul-09 14:09 
AnswerRe: bizar mouse event question Pin
Luc Pattyn16-Jul-09 13:55
sitebuilderLuc Pattyn16-Jul-09 13:55 
AnswerRe: Form events taking precedence over control events and forwarding events? Pin
Super Lloyd16-Jul-09 14:05
Super Lloyd16-Jul-09 14:05 
GeneralRe: Form events taking precedence over control events and forwarding events? [modified] Pin
Megidolaon17-Jul-09 5:00
Megidolaon17-Jul-09 5:00 
QuestionDifferent settings for development vs. production Pin
jaminblount16-Jul-09 11:51
jaminblount16-Jul-09 11:51 
AnswerRe: Different settings for development vs. production Pin
Pete O'Hanlon16-Jul-09 12:25
mvePete O'Hanlon16-Jul-09 12:25 
jaminblount wrote:
Secondly, I would like our login screen (username and password) to be pre-populated with test account credentials during development


A simple enough method is to populate a bound item with these credentials in a section like this:
private LoginInfo _info = null;
private void InitialiseData()
{
  if (_info == null)
  {
    _info = new LoginInfo();
  }
#if DEBUG
  _info.UserName = "Admin";
  _info.Password = "4dm1n94550rd";
#endif
}
The #if DEBUG section will not make it into the final release because you will (as is good practice) do a release build instead of a debug build.

jaminblount wrote:
Firstly, the production application will need to access a different database server with different credentials than what us developers will use.


This is a fairly standard requirement - all you need do is store the connection information in the ConnectionStrings section of your config file. This will be changed in the live environment (you'll possibly implement some form of configuration manager to do this).

jaminblount wrote:
And thirdly, our final branding hasn't been decided yet so we need to give the project a codename, but then automatically change all the window titles and everything else once we do have final branding.


Again, all you need do is use binding to support this. Your XAML might look something like this:
<Window ... Title="{Binding Path=ApplicationName}" ...


"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



QuestionInterface Ibindinglist : Specified argument was out of the range error Pin
baranils16-Jul-09 11:33
baranils16-Jul-09 11:33 
AnswerRe: Interface Ibindinglist : Specified argument was out of the range error Pin
baranils17-Jul-09 21:41
baranils17-Jul-09 21:41 
QuestionDatagrid row select help Pin
Member 640383816-Jul-09 10:21
Member 640383816-Jul-09 10:21 
Question64 bit connection strings Pin
Natza Mitzi16-Jul-09 8:55
Natza Mitzi16-Jul-09 8:55 
AnswerRe: 64 bit connection strings Pin
Paladin200016-Jul-09 10:14
Paladin200016-Jul-09 10:14 
GeneralRe: 64 bit connection strings Pin
Natza Mitzi16-Jul-09 20:36
Natza Mitzi16-Jul-09 20:36 
QuestionStop the CONSOLE at the end of the debut Pin
rodbiser16-Jul-09 8:28
rodbiser16-Jul-09 8:28 
AnswerRe: Stop the CONSOLE at the end of the debut Pin
N a v a n e e t h16-Jul-09 8:45
N a v a n e e t h16-Jul-09 8:45 
AnswerRe: Stop the CONSOLE at the end of the debut Pin
Natza Mitzi16-Jul-09 8:51
Natza Mitzi16-Jul-09 8:51 
AnswerRe: Stop the CONSOLE at the end of the debut Pin
mypicturefaded16-Jul-09 8:59
mypicturefaded16-Jul-09 8:59 
AnswerRe: Stop the CONSOLE at the end of the debut Pin
Luc Pattyn16-Jul-09 9:21
sitebuilderLuc Pattyn16-Jul-09 9:21 
GeneralRe: Stop the CONSOLE at the end of the debut Pin
rodbiser18-Aug-09 10:15
rodbiser18-Aug-09 10:15 
AnswerRe: Stop the CONSOLE at the end of the debut Pin
Alan N16-Jul-09 9:48
Alan N16-Jul-09 9:48 
QuestionTell When A Control Is Added In Design Mode Pin
Kevin Marois16-Jul-09 7:43
professionalKevin Marois16-Jul-09 7:43 
AnswerRe: Tell When A Control Is Added In Design Mode Pin
N a v a n e e t h16-Jul-09 8:54
N a v a n e e t h16-Jul-09 8:54 
QuestionHow to count different blood cells (RBC, WBC, Differential WBC) from microscopic picture in c # Pin
Md. Shakil16-Jul-09 6:48
Md. Shakil16-Jul-09 6:48 
AnswerRe: How to count different blood cells (RBC, WBC, Differential WBC) from microscopic picture in c # Pin
Christian Graus16-Jul-09 7:05
protectorChristian Graus16-Jul-09 7:05 

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.