private void nudDefultTimeSpan_ValueChanged(object sender, EventArgs e) { try { dataManager.SetTimeSpan((int)nudDefultTimeSpan.Value); } catch (Exception ex) { MessageBox.Show("出现错误:\n" + ex.Message, "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } }