예제 #1
0
        /// <summary>
        /// Update an object from modal window
        /// </summary>
        protected override void UpdateObjectListView()
        {
            AddUpdateSubFamily subFamilyWindow = new AddUpdateSubFamily(Controller, Controller.GetSubFamily(Convert.ToInt32(ListView.SelectedItems[0].Name)));

            subFamilyWindow.StartPosition = FormStartPosition.CenterParent;

            if (subFamilyWindow.ShowDialog() == DialogResult.OK)
            {
                StatusStrip.Items[0].Text = "La sous famille a été mis à jour";
                RefreshOwnView();
            }
            else
            {
                StatusStrip.Items[0].Text = "";
            }
        }
예제 #2
0
        /// <summary>
        /// Add an object from modal window
        /// </summary>
        protected override void AddObjectListView()
        {
            AddUpdateSubFamily subFamilyWindow = new AddUpdateSubFamily(Controller);

            subFamilyWindow.StartPosition = FormStartPosition.CenterParent;

            if (subFamilyWindow.ShowDialog() == DialogResult.OK)
            {
                StatusStrip.Items[0].Text = "La sous famille a été ajoutée";
                RefreshOwnView();
            }
            else
            {
                StatusStrip.Items[0].Text = "";
            }
        }