Name: Anonymous 2011-12-17 13:23
[/code]
MessageBoxResult result;
result = MessageBox.Show("Conflict: " + conflictName.ToString() + " is already in that period for 1 or more quarters.\nWould you like to replace it?", "Scheduling Conflict", MessageBoxButton.YesNo, MessageBoxImage.Warning);
if (result == MessageBoxResult.Yes)
[/code]
What is wrong with this? I'm using WPF, and it tells me "Object reference not set to an instance of an object."
MessageBoxResult result;
result = MessageBox.Show("Conflict: " + conflictName.ToString() + " is already in that period for 1 or more quarters.\nWould you like to replace it?", "Scheduling Conflict", MessageBoxButton.YesNo, MessageBoxImage.Warning);
if (result == MessageBoxResult.Yes)
[/code]
What is wrong with this? I'm using WPF, and it tells me "Object reference not set to an instance of an object."