1 using System;
2 using System.Windows;
3 using FileExplorer;
4
5 int main()
6 {
7 try
8 {
9 MainWindow mainWindow("File Explorer");
10 mainWindow.SetSmallIcon(Application.GetResourceManager().GetIcon("file_explorer.icon"));
11 return Application.Run(mainWindow);
12 }
13 catch (const Exception& ex)
14 {
15 MessageBox.Show(ex.ToString(), "Error", null, cast<MessageBoxType>(MessageBoxType.MB_OK | MessageBoxType.MB_ICONSTOP));
16 return 1;
17 }
18 return 0;
19 }
20