예제 #1
0
        private void Edit()
        {
            using (ManageArticleForm form = new ManageArticleForm())
            {
                form.CurrentArticle = GetSelectedArticle();

                if (form.ShowDialog() == DialogResult.OK)
                {
                    //LoadData();
                }
            }
        }
예제 #2
0
        private void Add()
        {
            using (ManageArticleForm form = new ManageArticleForm())
            {
                form.CurrentArticle = new Article();

                if (form.ShowDialog() == DialogResult.OK)
                {
                    LoadData();
                }
            }
        }