Exemple #1
0
 private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
 {
     using (提醒Form form = new 提醒Form())
     {
         form.ShowDialog(this);
     }
 }
Exemple #2
0
        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);
                }
            }
        }