private void ShowError(UiSystem ui, string message) { var errMsg = ui.CreateErrorBox(false, message); errMsg.OnHideFinish += errMsg.Destroy; errMsg.Show(); }