/// <summary> /// Create new instance /// </summary> /// <returns>The instance.</returns> public static DeliveryFragment NewInstance() { var fragment = new DeliveryFragment { Arguments = new Bundle() }; return(fragment); }
/// <summary> /// Starts the delivery. /// </summary> /// <param name="call">Call.</param> void StartDelivery(Call call) { // create and save the delivery docket var profile = _repository.Profiles.First(); var subscriber = _repository.Subscribers.Find(profile.SubscriberID); DocketService.CreateNewDocket(_repository, profile.CurrentRunNumber, call, subscriber); var fragment = DeliveryFragment.NewInstance(); _fragmentActionListener.NavigateToFragment(fragment, DeliveryFragment.TAG); }