Ejemplo n.º 1
0
        public BlobStoragePanelViewModel(ConnectedAccount storageAccount)
        {
            Account = storageAccount;
            Storage = storageAccount.CreateBlobStorage();
            FolderBrowser.Storage = Storage;

            ViewEdit.OnDone += (done) =>
            {
                IsViewing = false;
            };

            SelectedBlobs.CollectionChanged += SelectedBlobs_CollectionChanged;
            Clipboard.PropertyChanged       += (_, args) =>
            {
                if (args.PropertyName == nameof(ClipboardViewModel.HasData))
                {
                    PasteFromClipboardCommand?.RaiseCanExecuteChanged();
                }
            };

            FolderBrowser.OnDoubleTapFolder += FolderBrowser_OnDoubleTapFolder;

            GlobalSettings.Default.PropertyChanged += ConfigPropertyChanged;

            Messenger.Default.Register <FolderUpdatedMessage>(this, OnFolderUpdated);

            CreateCommands();
        }
 public ICommand CreateCommand()
 {
     ICommand cmd = new PasteFromClipboardCommand(app);
     return cmd;
 }