/// <summary> /// Start the execution of the patch command. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void bgw_DoWork(object sender, DoWorkEventArgs e) { object[] param = (object[])e.Argument; Patcher p = (Patcher)param[0]; p.ApplyPatch(param[1].ToString(), ref tbConsole); }