private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) { using (提醒Form form = new 提醒Form()) { form.ShowDialog(this); } }
private void EditItem() { ObjectView <提醒> view = 提醒BindingSource.Current as ObjectView <提醒>; if (view != null && view.Object != null) { using (提醒Form form = new 提醒Form(view.Object)) { form.ShowDialog(this); } } }