async Task EditSelectedCustomerAsync() { var editWindow = new CustomerEditWindow(model.SelectedCustomer.Oid) { Owner = this }; if (editWindow.ShowDialog() == true) { await model.ReloadAsync(); } }
private async void ButtonAddCustomer_ItemClick(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e) { var editWindow = new CustomerEditWindow() { Owner = this }; if (editWindow.ShowDialog() == true) { await model.ReloadAsync(); } }