/// <summary> /// Update an object from modal window /// </summary> protected override void UpdateObjectListView() { AddUpdateArticle VA = new AddUpdateArticle(ControllerArticles, ControllerArticles.GetArticle(ListView.SelectedItems[0].Name)); if (VA.ShowDialog() == DialogResult.OK) { StatusStrip.Items[0].Text = "L'article a été mis à jour"; RefreshOwnView(); } else { StatusStrip.Items[0].Text = ""; } }
/// <summary> /// Add an object from modal window /// </summary> protected override void AddObjectListView() { AddUpdateArticle VA = new AddUpdateArticle(ControllerArticles); if (VA.ShowDialog() == DialogResult.OK) { StatusStrip.Items[0].Text = "L'article a été ajouté"; RefreshOwnView(); } else { StatusStrip.Items[0].Text = ""; } }