コード例 #1
0
        /// <summary>
        /// Called when the library clearance has been confirmed
        /// </summary>
        public void ClearConfirmed(bool confirmed)
        {
            if (confirmed == true)
            {
                // Start the clear process, but don't wait for it to finish
                ClearLibraryAsync();

                // Let the user know what's going on
                ClearProgressDialogFragment.ShowFragment(CommandRouter.Manager, libraryToClear.Name, BindDialog);
            }
        }
コード例 #2
0
 /// <summary>
 /// Called when the ClearProgressDialogFragment dialog is displayed (OnResume)
 /// Save it and update its status with the command state
 /// </summary>
 /// <param name="dialogue"></param>
 private void BindDialog(ClearProgressDialogFragment dialogue)
 {
     progressDialogFragment = dialogue;
     progressDialogFragment?.UpdateDialogueState(clearFinished);
 }