/// <summary> /// Update an object from modal window /// </summary> protected override void UpdateObjectListView() { AddUpdateFamily FamilyWindow = new AddUpdateFamily(Controller, Controller.GetFamily(Convert.ToInt32(ListView.SelectedItems[0].Name))); FamilyWindow.StartPosition = FormStartPosition.CenterParent; if (FamilyWindow.ShowDialog() == DialogResult.OK) { StatusStrip.Items[0].Text = "La famille a été mis à jour"; RefreshOwnView(); } else { StatusStrip.Items[0].Text = ""; } }
/// <summary> /// Add an object from modal window /// </summary> protected override void AddObjectListView() { AddUpdateFamily FamilyWindow = new AddUpdateFamily(Controller); FamilyWindow.StartPosition = FormStartPosition.CenterParent; if (FamilyWindow.ShowDialog() == DialogResult.OK) { StatusStrip.Items[0].Text = "La famille a été ajoutée"; RefreshOwnView(); } else { StatusStrip.Items[0].Text = ""; } }