/// <summary> /// Add a new driver /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AddDriver_Click(object sender, RoutedEventArgs e) { AddDriver window = new AddDriver(); if (window.ShowDialog().Value) { this.TransportViewModel.Drivers.Add(window.DataContext as DriverInfo); } }