Menu

[38707f]: / ClassHelp.cs  Maximize  Restore  History

Download this file

48 lines (45 with data), 2.0 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
40
41
42
43
44
45
46
47
using System.Collections.Generic;
using System.Diagnostics;
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>
{
{"Home", @"https://sites.google.com/site/gitforcetool"},
{"Getting Started", @"https://sites.google.com/site/gitforcetool/getting-started"},
{"Edit Tools", @"https://sites.google.com/site/gitforcetool/help/custom-tools"},
{"HTTPS Authentication", @"https://confluence.atlassian.com/fisheye/permanent-authentication-for-git-repositories-over-http-s-298977121.html"},
{"SSH Windows", @"https://sites.google.com/site/gitforcetool/help/ssh"},
{"Workspace", @"https://sites.google.com/site/gitforcetool/help/workspaces"},
{"Update Check", @"https://github.com/gdevic/GitForce/releases"},
{"Download", @"https://github.com/gdevic/GitForce/releases"},
{"Discussion", @"https://sourceforge.net/p/gitforce/discussion"},
{"GPL", @"http://www.gnu.org/licenses/gpl.html"},
{"BaltazarStudios", @"https://www.baltazarstudios.com" }
};
/// <summary>
/// Given the topic, open the relevant help page online
/// </summary>
public static void Handler(string topic)
{
if (Webhelp.ContainsKey(topic))
{
if (ClassUtils.IsMono())
Process.Start("xdg-open", Webhelp[topic]);
else
Process.Start(Webhelp[topic]);
}
else
{
App.PrintStatusMessage("Internal Error: Please report that `topic " + topic + "` not found!", MessageType.Error);
}
}
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.