Beispiel #1
0
 private async void CARBURANTS_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (_CARBURANTS.SelectedValue == null) return;
    
     var wind = new AddFuel((Guid) _CARBURANTS.SelectedValue) { Owner = Window.GetWindow(this) };
     wind.ShowDialog();
     await Refresh();
 }
Beispiel #2
0
        private async void AddButton_OnClick(object sender, RoutedEventArgs e)
        {
            var wind = new AddFuel(Guid.Empty)
            {
                Owner = Window.GetWindow(this)
            };

            wind.ShowDialog();
            await Refresh();
        }
Beispiel #3
0
        private async void CARBURANTS_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (_CARBURANTS.SelectedValue == null)
            {
                return;
            }

            var wind = new AddFuel((Guid)_CARBURANTS.SelectedValue)
            {
                Owner = Window.GetWindow(this)
            };

            wind.ShowDialog();
            await Refresh();
        }
Beispiel #4
0
 private async void AddButton_OnClick(object sender, RoutedEventArgs e)
 {
     var wind = new AddFuel(Guid.Empty){ Owner = Window.GetWindow(this) };
     wind.ShowDialog();
     await Refresh();
 }