예제 #1
0
        async Task EditSelectedCustomerAsync()
        {
            var editWindow = new CustomerEditWindow(model.SelectedCustomer.Oid)
            {
                Owner = this
            };

            if (editWindow.ShowDialog() == true)
            {
                await model.ReloadAsync();
            }
        }
예제 #2
0
        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();
            }
        }