예제 #1
0
        /// <summary>
        /// Modify customers
        /// </summary>
        void ModifyCustomers()
        {
            var profile  = _repository.Profiles.First();
            var fragment = CustomersFragment.NewInstance(profile.CurrentRunNumber);

            _fragmentActionListener.NavigateToFragment(fragment, CustomersFragment.TAG);
        }
예제 #2
0
        /// <summary>
        /// Navigate to select customers
        /// </summary>
        void NavigateToSelectCustomers()
        {
            var fragment = CustomersFragment.NewInstance(_run.RunNumber);

            fragment.SetTargetFragment(this, (int)RequestCodes.SelectCalls);

            _fragmentActionListener.NavigateToFragment(fragment, CustomersFragment.TAG);
        }
예제 #3
0
        /// <summary>
        /// Create new instance
        /// </summary>
        /// <returns>The instance.</returns>
        /// <param name="runNumber">Run number.</param>
        public static CustomersFragment NewInstance(string runNumber)
        {
            var fragment = new CustomersFragment {
                Arguments = new Bundle()
            };

            fragment.Arguments.PutString(BundleArguments.RunNumber, runNumber);
            return(fragment);
        }