I was using an OpenFileDialog in my Beta 1 app, and the code looked like the following:
OpenFileDialog myFileDialog = new OpenFileDialog();
myFileDialog.Filter = "System Diagram (*.sd)|*.sd|All Files (*.*)|*.*";
if (myFileDialog.ShowDialog() == DialogResult.OK)
{
...code...
}
This breaks in Beta 2 because "DialogResult.OK" does not exist. After realizing that, I checked the return value of ShowDialog() to see if I could use that instead. It returns a value of the type "bool?". What is the difference between "bool?" and "bool" ? I tried putting it inside the if-statement:
OpenFileDialog myFileDialog = new OpenFileDialog();
myFileDialog.Filter = "System Diagram (*.sd)|*.sd|All Files (*.*)|*.*";
if (myFileDialog.ShowDialog())
{
...code...
Go to the complete details ...