private void btnProgram_Click(object sender, EventArgs e) { var info = GetProcessInfo(); AVRDudeProcessWrapper programmer = new AVRDudeProcessWrapper(info); outputPane = CreateOrGetOutputWindowPane(); outputPane.Activate(); programmer.MessageReceived += Programmer_MessageReceived; programmer.Program(txtProgramPath.Text); }