/// <summary> /// Initializes the current window in all existing objects /// </summary> public StartTravelLine(BO.Line mLine) { InitializeComponent(); bl = BLApi.Factory.GetBL("1"); tempLine = mLine; busListBox.ItemsSource = bl.GetAllBussesReadyForDrive().ToList(); DriverListBox.ItemsSource = bl.GetAllUsers(user => user.Permission == BO.authority.Driver).ToList(); }