private void buttonDelete_Click(object sender, EventArgs e)
        {
            Property property = new Property();

            property.Id = Convert.ToInt32(txtId.Text);
            if (property.Id.GetType() != Type.GetType("System.Int32"))
            {
                MessageBox.Show("Error: ID type not valid");
            }
            else
            {
                Commons.DeleteFromDisk(property.Id);
                MessageBox.Show("Input Delete");
            }
        }
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (txtId.Text == "" || txtName.Text == "" || textPrice.Text == "" || textArea.Text == "" ||
         textAddress.Text == "" || textYear.Text == "" || textRooms.Text == "")
     {
         MessageBox.Show("Check your inputs please");
     }
     else
     {
         Property property     = SaveScreenInEntity();
         Property propertyRead = Commons.ReadFromDisk(property.Id);
         if (propertyRead != null)
         {
             Commons.DeleteFromDisk(property.Id);
             Commons.SaveOnDiskAsJson(property);
             MessageBox.Show("Input Changed");
         }
         else
         {
             Commons.SaveOnDiskAsJson(property);
         }
     }
 }