private void btnClearDb_Click(object sender, EventArgs e) { if (MessageBox.Show(this, @"确定要清空数据库吗?", @"警告", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes) { _manager.ClearDb(); RefreshTask(); } }
private void btnClearDb_Click(object sender, EventArgs e) { manager.ClearDb(); RefreshTask(); }