private void Edit() { using (ManageArticleForm form = new ManageArticleForm()) { form.CurrentArticle = GetSelectedArticle(); if (form.ShowDialog() == DialogResult.OK) { //LoadData(); } } }
private void Add() { using (ManageArticleForm form = new ManageArticleForm()) { form.CurrentArticle = new Article(); if (form.ShowDialog() == DialogResult.OK) { LoadData(); } } }