Пример #1
0
        /// <summary>
        /// Subimit the modification of Family
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Btn_MF_Submit_Click(object sender, EventArgs e)
        {
            RefFamily  = txtBox_ReferenceF.Text;
            NameFamily = txtBox_NameF.Text;

            int RefFamily_Int = int.Parse(RefFamily);

            FamillyController Family_Controller = new FamillyController();
            Familly           Family            = Family_Controller.GetFamillyByRef(RefFamily_Int);

            Family_Controller.UpdateFamilly(RefFamily_Int, NameFamily);
            MessageBox.Show("Family modified successfully ;)", "Family modified", MessageBoxButtons.OK, MessageBoxIcon.Information);

            this.DialogResult = DialogResult.OK;
            this.Dispose();
        }