private async void AddButton_OnClick(object sender, RoutedEventArgs e) { var wind = new AddOilPrelev { Owner = Window.GetWindow(this) }; wind.ShowDialog(); await Refresh(_currentOils); }