예제 #1
0
        public Dictionary <string, List <string> > Receive()
        {
            Dictionary <string, List <string> > result = new Dictionary <string, List <string> >();
            var command = new ReadCommands(FileName, System, Cmd);

            command.Read();
            result["keys"]   = command.ResultKeys;
            result["values"] = command.ResultValues;
            return(result);
        }
예제 #2
0
        // not used
        public bool ChangeSubject(Guid recordID, string[] subjNames, string[] subjValues)
        {
            var           cmd        = new Command("change_subj", "Archive", "ChangeSubject");
            List <string> listNames  = subjNames.ToList();
            List <string> listValues = subjValues.ToList();

            listNames.Insert(0, "RecordID");
            listValues.Insert(0, recordID.ToString());
            string[] parNames  = listNames.ToArray();
            string[] parValues = listValues.ToArray();
            cmd.AddParams(parNames, parValues);
            cmd.Send();

            string[] resultKeys = new string[] { "Result" };
            var      answer     = new ReadCommands("change_subj", "Archive", "ChangeSubject");

            return(answer.ResultValues[0] == "ACK");
        }