private void ShowPurchase(Purchase purchase, bool copy = false) { //открыть форму просмотра закупки PurchaseForm form = new PurchaseForm(purchase, copy); Hide(); var result = form.ShowDialog(); Show(); if (result == DialogResult.OK) { ReloadTable(); } }
private void OpenPurchase(Purchase pur) { PurchaseForm purchaseForm = new PurchaseForm(pur); purchaseForm.ShowDialog(); }
private void ShowPurchase(Purchase purchase) { PurchaseForm form = new PurchaseForm(purchase); var result = form.ShowDialog(); }