示例#1
0
文件: Form1.cs 项目: m4te0/Roboty
        private void uploadButton_Click(object sender, EventArgs e)
        {
            var programService = new ProgramService(manipulator);
            var program        = new Driver.Program("test");

            program.Content = richTextBoxProgram.Text;
        }
示例#2
0
文件: Form1.cs 项目: m4te0/Roboty
        private async void SendProgram()
        {
            var programService = new ProgramService(manipulator);
            var program        = new Driver.Program("test")
            {
                Content = richTextBoxRead.Text
            };
            await programService.UploadProgram(program);

            var programs = await programService.ReadProgramInfo();

            var programa = await programService.DownloadProgram(programs[0]);

            richTextBoxRead.Text = programa.Content;
        }