forked from gdevic/GitForce
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClassHelp.cs
More file actions
39 lines (37 loc) · 1.3 KB
/
Copy pathClassHelp.cs
File metadata and controls
39 lines (37 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace GitForce
{
/// <summary>
/// Contains the code to handle various help links and access to the online help
/// </summary>
static class ClassHelp
{
/// <summary>
/// Dictionary containing the translation of help topics to the web pages
/// </summary>
private static readonly Dictionary<string, string> Webhelp = new Dictionary<string, string> {
{ "Getting Started", "http://gdevic.github.com/GitForce/GettingStarted.html" },
{ "Edit Tools", "http://gdevic.github.com/GitForce/EditTools.html" },
{ "SSH Windows", "http://gdevic.github.com/GitForce/ssh-windows.html" },
{ "Download", "https://github.com/gdevic/GitForce/downloads" },
};
/// <summary>
/// Given the topic, open the relevant help page online
/// </summary>
public static void Handler(string topic)
{
if(Webhelp.ContainsKey(topic))
{
Process.Start(Webhelp[topic]);
}
else
{
App.PrintStatusMessage("Internal Error: Please report that `topic " + topic + "` not found!");
}
}
}
}