public void WriteLog(Color c, string text) { if ( OnLog != null ) { OnLog(this, c, text); } }
void OnProcessExit(ProcessModel model) { RefreshButtonStatus(); tabMain.Refresh(); model.WriteLog(Color.Yellow, string.Format("进程结束({0})", model.ExitCode)); }