Example #1
0
        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));
        }
Example #2
0
        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));
        }
Example #3
0
        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));
        }
Example #4
0
 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));
 }
Example #5
0
 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));
 }