/// <summary> /// create a witnesscontroller when button is clicked. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_oproep_Click(object sender, RoutedEventArgs e) { AskForWitnessWindow witnessWindow = new AskForWitnessWindow((Offence)wpfDelict.DataContext); }
public WitnessController(Offence offence, AskForWitnessWindow witnessWindow) { _Offence = offence; _WitnessWindow = witnessWindow; }