private void wget_DoWork(object sender, DoWorkEventArgs e) { string[] par = e.Argument as string[]; byte[] resultBytes = SubmitCommand(_shellData, "FileManager/WgetCode", par); e.Result = ResultMatch.MatchResultToBool(resultBytes, Encoding.GetEncoding(_shellData.WebCoding)); }
private void createDir_DoWork(object sender, DoWorkEventArgs e) { string dirPath = e.Argument as string; byte[] resultBytes = _hostService.SubmitCommand(_shellData, "FileManager/CreateDirCode", new string[] { dirPath }); e.Result = ResultMatch.MatchResultToBool(resultBytes, Encoding.GetEncoding(_shellData.WebCoding)); }
private void connectDb_DoWork(object sender, DoWorkEventArgs e) { string par = e.Argument as string; byte[] resultBytes = SubmitCommand(_shellData, "DbManager/" + _dbType + "/ConnectDb", new string[] { par }); e.Result = ResultMatch.MatchResultToBool(resultBytes, Encoding.GetEncoding(_shellData.WebCoding)); }
private void deleteFileOrDir_DoWork(object sender, DoWorkEventArgs e) { string[] fileOrDirPath = e.Argument as string[]; byte[] resultBytes = SubmitCommand(_shellData, "FileManager/DeleteFileOrDirCode", fileOrDirPath); e.Result = ResultMatch.MatchResultToBool(resultBytes, Encoding.GetEncoding(_shellData.WebCoding)); }
private void modifyFileOrDirTime_DoWork(object sender, DoWorkEventArgs e) { string[] par = e.Argument as string[]; byte[] resultBytes = _hostService.SubmitCommand(_shellData, "FileManager/ModifyFileOrDirTimeCode", par); e.Result = ResultMatch.MatchResultToBool(resultBytes, Encoding.GetEncoding(_shellData.WebCoding)); }