Exemplo n.º 1
0
        private void AddBtn_Click(object sender, EventArgs e)
        {
            Add addForm = new Add();

            addForm.OnArticlesChanged += () =>
            {
                ArticlesGridView.DataSource = articlesRepo.Get();
            };
            addForm.Show();
        }
Exemplo n.º 2
0
 public Articles()
 {
     InitializeComponent();
     selectedArticle             = null;
     articlesRepo                = new App1CL.Repositories.ArticlesRepo();
     ArticlesGridView.DataSource = articlesRepo.Get();
 }