Exemplo n.º 1
0
 /// <summary>
 /// Vault选项改变命令函数
 /// </summary>
 /// <param name="param"></param>
 private void VaultSelectionChanged(ExCommandParameter param)
 {
     if (param.Parameter == null)
     {
         return;
     }
     _selectedVm = param.Parameter as MfilesVaultViewModel;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 双击vault命令函数
 /// </summary>
 /// <param name="param"></param>
 private void VaultMouseDoubleClick(ExCommandParameter param)
 {
     if (param.Parameter == null)
     {
         return;
     }
     _selectedVm           = param.Parameter as MfilesVaultViewModel;
     _parent.CurrWorkspace = _selectedVm;
 }
Exemplo n.º 3
0
        /// <summary>
        /// 获取vault列表
        /// </summary>
        /// <returns></returns>
        private async Task <List <MfilesVaultViewModel> > GetVaultList()
        {
            IsShowAdorner = true;
            var vmList    = new List <MfilesVaultViewModel>();
            var vaultList = ClientUtils.GetVaultConnections(_parent.IgnoreVaults.AsEnumerable()); //_parent.WebUri,

            foreach (var connection in vaultList)
            {
                var vm = new MfilesVaultViewModel(_parent, connection);
                vmList.Add(vm);
            }
            IsShowAdorner = false;

            return(await Task.FromResult(vmList));
        }