Exemplo n.º 1
0
        protected override DialogResult showEditDialog(Apartment entity)
        {
            ApartmentEditor editor = new ApartmentEditor((ApartmentDao)this.dao);

            try
            {
                editor.entity = entity;
                editor.renderEntity();
                return(editor.ShowDialog(this));
            }
            catch (Exception ex)
            {
                MyMessageBox msgBox = new MyMessageBox("Data error!", ex, MyConstants.BOX_TYPE_ERROR);
                msgBox.ShowDialog(this);
                return(DialogResult.Abort);
            }
        }