-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83b7c55
commit 2eb9e9c
Showing
4 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.IO; | ||
using System.Windows.Forms; | ||
|
||
namespace RaveAddIn.AddInCommands | ||
{ | ||
public class btnFindResourcesFolder : ESRI.ArcGIS.Desktop.AddIns.Button | ||
{ | ||
protected override void OnClick() | ||
{ | ||
string app_data = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); | ||
if (Directory.Exists(app_data)) | ||
{ | ||
string rave_data = Path.Combine(app_data, Properties.Resources.AppDataFolder); | ||
if (Directory.Exists(rave_data)) | ||
System.Diagnostics.Process.Start(rave_data); | ||
else | ||
System.Diagnostics.Process.Start(app_data); | ||
} | ||
else | ||
MessageBox.Show("The system APPData folder does not exist.", "AppData Folder Missing", MessageBoxButtons.OK, MessageBoxIcon.Information); | ||
} | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters