private void uploadButton_Click(object sender, EventArgs e) { var programService = new ProgramService(manipulator); var program = new Driver.Program("test"); program.Content = richTextBoxProgram.Text; }
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; }