private void btnLoad_Click(object sender, EventArgs e) { var newPaymentWindow = new frmNewPayment(); (newPaymentWindow.ShowDialog() == DialogResult.OK).IfTrue(() => { string selectedItem = cmbPaymentMethod.SelectedItem as string; payments.Add(newPaymentWindow.Payment); SetComboPaymentMethod(); cmbPaymentMethod.SelectedItem = selectedItem; }); }