File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -865,11 +865,18 @@ private void projectSettingsToolStripMenuItem_Click(object sender, EventArgs e)
865865 private void projectToolStripMenuItem1_Click ( object sender , EventArgs e )
866866 {
867867 // open project
868- OpenFileDialog dialog = new OpenFileDialog ( ) ;
869- dialog . Filter = "EZProj|*.ezproj" ;
870- dialog . ShowDialog ( ) ;
871- Settings . Current_Project_File = dialog . FileName ;
872- Manager . OpenFolder ( new FileInfo ( dialog . FileName ) . Directory . ToString ( ) ) ;
868+ try
869+ {
870+ OpenFileDialog dialog = new OpenFileDialog ( ) ;
871+ dialog . Filter = "EZProj|*.ezproj" ;
872+ dialog . ShowDialog ( ) ;
873+ Settings . Current_Project_File = dialog . FileName ;
874+ Manager . OpenFolder ( new FileInfo ( dialog . FileName ) . Directory . ToString ( ) ) ;
875+ }
876+ catch
877+ {
878+ MessageBox . Show ( "Could not open project" , "EZ IDE" , MessageBoxButtons . OK , MessageBoxIcon . Warning ) ;
879+ }
873880 }
874881
875882 private void playProjectToolStripMenuItem_Click ( object sender , EventArgs e )
You can’t perform that action at this time.
0 commit comments