private async void AddButton_OnClick(object sender, RoutedEventArgs e)
        {
            if (!_currentOils.Any())return;            

            var wind = new AddOilDelivery(_currentOils.First(), Guid.Empty) { Owner = Window.GetWindow(this) };
            wind.ShowDialog();
            await Refresh(_currentOils);
        }
Beispiel #2
0
        private async void AddButton_OnClick(object sender, RoutedEventArgs e)
        {
            if (!_currentOils.Any())
            {
                return;
            }

            var wind = new AddOilDelivery(_currentOils.First(), Guid.Empty)
            {
                Owner = Window.GetWindow(this)
            };

            wind.ShowDialog();
            await Refresh(_currentOils);
        }