private void OnAddMachineFunction(object sender, RoutedEventArgs e) { MachineFunctions.Add(new MachineFunction()); }