예제 #1
0
 private void ButtonCopySelectedFsEntryNameToClipboard_Click(object sender, EventArgs e)
 {
     if (!parentFolderViewModel.IsRootFolder && !string.IsNullOrEmpty(textBoxSelectedFsEntryName.Text))
     {
         parentFolderViewModel.TryExecute(FsExplorerViewModel.ActionNames.CopySelectedFsEntryNameToClipboard,
                                          () =>
         {
             Clipboard.SetText(textBoxSelectedFsEntryName.Text);
             return(new Tuple <bool, string>(true, null));
         },
                                          false);
     }
 }
예제 #2
0
 private void FsFileEntriesGridUserControl_OnReload(KeyValuePair <int, IFsEntriesDataGridRow> kvp)
 {
     viewModel.TryExecute(FsExplorerViewModel.ActionNames.ReloadToFolder,
                          () => viewModel.ReloadCurrentFolder(), true);
 }