private void tsbCancel_Click(object sender, EventArgs e) { _entity.rollback(); this.DialogResult = System.Windows.Forms.DialogResult.Cancel; }