private void BtnAddDeal_Click(object sender, EventArgs e) { using (var frm = new frmDeal(_boServiceClient)) { frm.ShowDialog(); } }
private void ShowDealForm(Deal deal) { if (deal == null) { TwinkleMessageBox.ShowError("Зделка не может быть null"); return; } else { using (var frm = new frmDeal(_model.BOServiceClient, deal)) { frm.ShowDialog(); } } }