Ejemplo n.º 1
0
        private void SetAppbarResources(DriveDisplayMode driveDisplayMode)
        {
            switch (driveDisplayMode)
            {
            case DriveDisplayMode.CloudDrive:
                this.ApplicationBar = (ApplicationBar)Resources["CloudDriveMenu"];
                break;

            case DriveDisplayMode.CopyOrMoveItem:
                this.ApplicationBar = (ApplicationBar)Resources["CopyOrMoveItemMenu"];
                break;

            case DriveDisplayMode.ImportItem:
                this.ApplicationBar = (ApplicationBar)Resources["ImportItemMenu"];
                break;

            case DriveDisplayMode.MultiSelect:
                this.ApplicationBar = (ApplicationBar)Resources["MultiSelectMenu"];
                break;

            case DriveDisplayMode.RubbishBin:
                this.ApplicationBar = (ApplicationBar)Resources["RubbishBinMenu"];
                break;

            default:
                throw new ArgumentOutOfRangeException("driveDisplayMode");
            }
        }
        private void SetAppbarResources(DriveDisplayMode driveDisplayMode)
        {
            switch (driveDisplayMode)
            {
            case DriveDisplayMode.SavedForOffline:
                this.ApplicationBar = (ApplicationBar)Resources["SavedForOfflineMenu"];
                break;

            case DriveDisplayMode.MultiSelect:
                this.ApplicationBar = (ApplicationBar)Resources["MultiSelectMenu"];
                break;

            default:
                throw new ArgumentOutOfRangeException("driveDisplayMode");
            }
        }