public new static R2ConfigFile1 Parse(string configKey) { var fs = new FileSystemAccesor1(); var cfg = new R2ConfigFile1(); var path = cfg.GetFilePath(configKey); var cfgPwd = Saltify(configKey); return(fs.DecryptJsonFile <R2ConfigFile1>(path, cfgPwd)); }
public static void Relaunch(this Application app, string arguments = null) { var origExe = new FileSystemAccesor1().CurrentExeFile; if (arguments.IsBlank()) { Process.Start(origExe); } else { Process.Start(origExe, arguments); } app.Shutdown(); }