private void CreateNewAccount() { int NewID = 0; AccountsEditView v = new AccountsEditView(); v.ShowDialog(); NewID = v._id; LoadComboboxAccount(); edtCustomer.SelectedValue = NewID; }
// вызов окна создания нового контаргента private void CreateNewAccount() { int NewID = 0; AccountsEditView v = new AccountsEditView(); v.ShowDialog(); NewID = v._id; LoadAccounts(); //edtAccount.SelectedValue = NewID; //if (v.Selected != null) edtAccount.SelectedValue = NewID; }