PatchworkLauncher.LaunchManager.Command_Open_Readme C# (CSharp) Méthode

Command_Open_Readme() public méthode

public Command_Open_Readme ( ) : void
Résultat void
		public void Command_Open_Readme() {

			Exception lastEx = null;
			Process proc = null;
			try {
				proc = Process.Start(_pathReadme);
				if (proc == null) {
					proc = Process.Start("gedit", $"\"{_pathReadme}\"");
				}
				if (proc == null) {
					proc = Process.Start("kate", $"\"{_pathReadme}\"");
				}
			}
			catch (Exception ex) {
				lastEx = ex;
			}
			if (proc == null) {
				string msg = null;
				if (lastEx == null) {
					msg = "You probably don't have a default program for opening txt files.";
				}
				Command_Display_Error("Open readme",_pathReadme,lastEx,msg);
			}
		}