private void bNAdd_Click(object sender, EventArgs e)
        {
            Person obj = new Person();

            obj.CreationDate = DateTime.Now;

            FormPersonCard form = new FormPersonCard(obj, FormMode.Add);

            form.ShowDialog();

            if (form.IsObjectAddedIntoDataBase)
            {
                ApplyFilter();
            }
        }
        private void bNEdit_Click(object sender, EventArgs e)
        {
            int?id = GetCurrentObjectId();

            if (id.HasValue)
            {
                Person obj = Config.Session.PersonUtils.GetById(id.Value);

                FormPersonCard form = new FormPersonCard(obj, FormMode.Edit);
                form.ShowDialog();

                if (form.IsObjectAddedIntoDataBase)
                {
                    ApplyFilter();
                }
            }
        }