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

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

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