当前位置: 首页>>代码示例>>C#>>正文


C# Web.iFolderWeb类代码示例

本文整理汇总了C#中Novell.iFolder.Web.iFolderWeb的典型用法代码示例。如果您正苦于以下问题:C# iFolderWeb类的具体用法?C# iFolderWeb怎么用?C# iFolderWeb使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


iFolderWeb类属于Novell.iFolder.Web命名空间,在下文中一共展示了iFolderWeb类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AcceptiFolder

 public bool AcceptiFolder(iFolderWeb ifolder, out bool added, bool mergeFolder)
 {
     bool result = false;
     added = false;
     if (ifolder.MigratediFolder > 0)
     {
         if (MigrationWindow.OldiFoldersPresent() == true)
         {
             System.Resources.ResourceManager resManager = new System.Resources.ResourceManager(typeof(FormsTrayApp));
             MyMessageBox mmb = new MyMessageBox(resManager.GetString("MigrationMergePrompt.Text"), resManager.GetString("MigrationAlert"), "", MyMessageBoxButtons.OKCancel, MyMessageBoxIcon.Question);
             DialogResult res = mmb.ShowDialog();
             if (res == DialogResult.OK)
             {
                 Novell.FormsTrayApp.MigrationWindow migrationWindow = new MigrationWindow(this.ifWebService, this.simiasWebService);
                 migrationWindow.Merge = true;
                 migrationWindow.iFolderName = ifolder.Name;
                 migrationWindow.ShowDialog();
                 string loc = migrationWindow.iFolderLocation;
                 string uName = migrationWindow.UserName;
                 if (loc == null || uName == null)
                 {
                     return false;
                 }
                 else
                 {
                     result = acceptiFolder(ifolder, loc, out added, true);
                     if (result == true)
                     {
                         MigrationWindow.RemoveRegistryForUser(uName);
                     }
                 }
                 return result;
             }
         }
     }
        string selectedPath = string.Empty;
        FolderBrowserDialog browserDialog = new FolderBrowserDialog();
        Cursor.Current = Cursors.WaitCursor;
        while (true)
        {
     browserDialog.ShowNewFolderButton = true;
     browserDialog.SelectedPath = selectedPath;
         if (!mergeFolder)
         {
             browserDialog.Description = string.Format(TrayApp.Properties.Resources.acceptDescription, ifolder.Name);
         }
         else
         {
             browserDialog.Description = string.Format(TrayApp.Properties.Resources.mergeDescription, ifolder.Name);
         }
     DialogResult dialogResult = browserDialog.ShowDialog();
     if ( dialogResult == DialogResult.OK )
     {
      browserDialog.Dispose();
      Invalidate();
      Update();
             result = acceptiFolder(ifolder, browserDialog.SelectedPath, out added, mergeFolder);
             if (result && !added)
             {
                 break;
             }
      else if ( result )
      {
                 if (!mergeFolder)
                     DownloadPath = browserDialog.SelectedPath + ifolder.Name;
                 else
                     DownloadPath = browserDialog.SelectedPath;
       break;
      }
     }
     else
     {
      browserDialog.Dispose();
      break;
     }
        }
        Cursor.Current = Cursors.Default;
     refreshAll();
        return result;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:80,代码来源:GlobalProperties.cs

示例2: populateServeriFolderInfo

 private void populateServeriFolderInfo(iFolderWeb ifolderWeb)
 {
     enableServerFolderLabels(true);
     int displayableLength = 20;
     this.titleName.Text = TrayApp.Properties.Resources.name + ":  " + FormatString(ifolderWeb.Name, displayableLength);
     this.titleOwner.Text = TrayApp.Properties.Resources.owner + ":  " + ifolderWeb.Owner;
     if (ifolderWeb.encryptionAlgorithm != null && ifolderWeb.encryptionAlgorithm != "")
         this.titleEncrypted.Text = Resources.type + ":  " + Resources.encrypted;
     else
         this.titleEncrypted.Text = Resources.type + ":  " + Resources.regular;
     try
     {
         iFolderUser[] ifolderUsers = ifWebService.GetiFolderUsers(ifolderWeb.ID);
         foreach (iFolderUser ifolderUser in ifolderUsers)
         {
             if (ifolderUser.UserID.Equals(ifolderWeb.CurrentUserID))
                 this.titleAccess.Text = Resources.access + ":  " + ifolderUser.Rights.ToString();
         }
     }
     catch { }
     this.titleServerorSize.Text = Resources.server + ":  " +
         simiasWebService.GetDomainInformation(ifolderWeb.DomainID).Host;
     this.titleLastSyncTime.Text = Resources.lastSyncTime + ":  " + Resources.na;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:24,代码来源:GlobalProperties.cs

示例3: UpdateDisplay

 public void UpdateDisplay( iFolderWeb ifolder, string path)
 {
     (Novell.FormsTrayApp.FormsTrayApp.globalProp()).UpdateDisplay(ifolder, path);
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:4,代码来源:AccountWizard.cs

示例4: AdvancedConflictResolver

 public static bool AdvancedConflictResolver(iFolderWebService ifWebService, iFolderWeb selectedItem)
 {
     const string assemblyName = @"lib\plugins\EnhancedConflictResolution.dll";
     const string enhancedConflictResolverClass = "Novell.EnhancedConflictResolution.EnhancedConflictResolver";
     const string showConflictResolverMethod = "Show";
     System.Object[] args = new System.Object[3];
     try
     {
         if (assemblyName != null)
         {
             Assembly idAssembly = Assembly.LoadFrom(assemblyName);
             if (idAssembly != null)
             {
                 Type type = idAssembly.GetType(enhancedConflictResolverClass);
                 if (null != type)
                 {
                     args[0] = ifWebService;
                     args[1] = Application.StartupPath;
                     args[2] = selectedItem;
                     System.Object enhancedConflictResolver = Activator.CreateInstance(type, args);
                     try
                     {
                         MethodInfo method = type.GetMethod(showConflictResolverMethod, Type.EmptyTypes);
                         if (null != method)
                         {
                             method.Invoke(enhancedConflictResolver, null);
                             return true;
                         }
                     }
                     catch (Exception e)
                     {
                         FormsTrayApp.log.Info("Message {0}, type {1}, trace {2} ", e.Message, e.GetType(), e.StackTrace);
                     }
                 }
             }
         }
     }
     catch (Exception ex)
     {
         FormsTrayApp.log.Info("Message {0}, type {1}, trace {2} ", ex.Message, ex.GetType(), ex.StackTrace);
     }
     return false;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:43,代码来源:GlobalProperties.cs

示例5: UpdateDisplay

 public void UpdateDisplay( iFolderWeb ifolderWeb, string DownloadPath)
 {
     iFolderObject ifobj = new iFolderObject(ifolderWeb, iFolderState.Initial);
        addiFolderToListView(ifobj);
        if( acceptedFolders.Contains(ifolderWeb.ID) )
     acceptedFolders.Remove(ifolderWeb.ID);
        ifolderWeb.UnManagedPath = DownloadPath;
        TileListViewItem tlvi = new TileListViewItem(ifobj);
        acceptedFolders.Add(ifolderWeb.ID, tlvi);
     ifobj = null;
     tlvi = null;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:12,代码来源:GlobalProperties.cs

示例6: iFolderObject

 public iFolderObject(iFolderWeb ifolderWeb, iFolderState ifolderState)
 {
     this.ifolderWeb = ifolderWeb;
        this.ifolderState = ifolderState;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:5,代码来源:iFolderObject.cs

示例7: GetiFolder

 public iFolderWeb GetiFolder(string iFolderID)
 {
     iFolderWeb ifolder = null;
        ArrayList collectionList;
        Store store = Store.GetStore();
        Collection col = store.GetCollectionByID(iFolderID);
        if (col != null)
        {
     if(col.IsType(col, iFolderWeb.iFolderType))
      ifolder = new iFolderWeb(col);
     else
      ifolder = null;
        }
        else
        {
     CollectionInfo ci = DiscoveryFramework.GetLocalCollectionInfo(iFolderID);
         if(ci == null)
             ci = DiscoveryFramework.GetCollectionInfo(iFolderID);
     ifolder = new iFolderWeb(ci);
        }
        return ifolder;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:22,代码来源:iFolderService.cs

示例8: GetiFolderByLocalPath

 public iFolderWeb GetiFolderByLocalPath(string LocalPath)
 {
     iFolderWeb ifolder = null;
        Collection col = SharedCollection.GetCollectionByPath(LocalPath);
        if(col != null)
        {
     ifolder = new iFolderWeb(col);
        }
        return ifolder;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:10,代码来源:iFolderService.cs

示例9: RevertiFolder

 public iFolderWeb RevertiFolder(string iFolderID)
 {
     iFolderWeb ifolder = null;
                 CollectionInfo cinfo = SharedCollection.RevertSharedCollection(iFolderID);
                 if (cinfo != null)
                 {
                         ifolder = new iFolderWeb(cinfo);
                 }
                 return ifolder;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:10,代码来源:iFolderService.cs

示例10: AcceptiFolderInvitation

 public iFolderWeb AcceptiFolderInvitation( string DomainID,
   string iFolderID,
   string LocalPath)
 {
     Store store = Store.GetStore ();
       CollectionInfo cinfo = DiscoveryFramework.GetLocalCollectionInfo (iFolderID);
     if(cinfo == null)
         cinfo = DiscoveryFramework.GetCollectionInfo(iFolderID);
     if(cinfo == null)
      throw new Exception("Invalid iFolderID");
        string path = Path.Combine(LocalPath, cinfo.DirNodeName);
        if (Directory.Exists(path))
     throw new Exception("PathExists");
        CollectionPathStatus pStatus;
        pStatus = SharedCollection.CheckCollectionPath(path);
        switch(pStatus)
        {
     case CollectionPathStatus.ValidPath:
      break;
     case CollectionPathStatus.RootOfDrivePath:
      throw new Exception("RootOfDrivePath");
     case CollectionPathStatus.InvalidCharactersPath:
      throw new Exception("InvalidCharactersPath");
     case CollectionPathStatus.AtOrInsideStorePath:
      throw new Exception("AtOrInsideStorePath");
     case CollectionPathStatus.ContainsStorePath:
      throw new Exception("ContainsStorePath");
     case CollectionPathStatus.NotFixedDrivePath:
      throw new Exception("NotFixedDrivePath");
     case CollectionPathStatus.SystemDirectoryPath:
      throw new Exception("SystemDirectoryPath");
     case CollectionPathStatus.SystemDrivePath:
      throw new Exception("SystemDrivePath");
     case CollectionPathStatus.IncludesWinDirPath:
      throw new Exception("IncludesWinDirPath");
     case CollectionPathStatus.IncludesProgFilesPath:
      throw new Exception("IncludesProgFilesPath");
     case CollectionPathStatus.DoesNotExistPath:
      throw new Exception("DoesNotExistPath");
     case CollectionPathStatus.NoReadRightsPath:
      throw new Exception("NoReadRightsPath");
     case CollectionPathStatus.NoWriteRightsPath:
      throw new Exception("NoWriteRightsPath");
     case CollectionPathStatus.ContainsCollectionPath:
      throw new Exception("ContainsCollectionPath");
     case CollectionPathStatus.AtOrInsideCollectionPath:
      throw new Exception("AtOrInsideCollectionPath");
        }
        DiscoveryFramework.CreateProxy (store, cinfo, DomainID, iFolderID, Path.GetFullPath (path));
        iFolderWeb ifolder = new iFolderWeb(cinfo);
     ifolder.State = "Available";
        ifolder.Role = "Master";
     ifolder.UnManagedPath = path;
     ifolder.IsSubscription = false;
        return ifolder;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:56,代码来源:iFolderService.cs

示例11: AcceptiFolderInvitation1

 public iFolderWeb AcceptiFolderInvitation1( string DomainID,
                                                                                            string iFolderID,
                                                                                         string LocalPath)
 {
     Store store = Store.GetStore();
                 POBox poBox = Simias.POBox.POBox.FindPOBox(store,
                                         DomainID,
                                         store.GetUserIDFromDomainID(DomainID));
                 Node node = poBox.GetNodeByID(iFolderID);
                 if(node == null)
                         throw new Exception("Invalid iFolderID : id : "+ iFolderID);
                 Subscription sub = new Subscription(node);
                 string path = Path.Combine(LocalPath, sub.DirNodeName);
                 if (Directory.Exists(path))
                         throw new Exception("PathExists");
                 CollectionPathStatus pStatus;
        pStatus = SharedCollection.CheckCollectionPath(path);
                 switch(pStatus)
                 {
                         case CollectionPathStatus.ValidPath:
                                 break;
                         case CollectionPathStatus.RootOfDrivePath:
                                 throw new Exception("RootOfDrivePath");
                         case CollectionPathStatus.InvalidCharactersPath:
                                 throw new Exception("InvalidCharactersPath");
                         case CollectionPathStatus.AtOrInsideStorePath:
                                 throw new Exception("AtOrInsideStorePath");
                         case CollectionPathStatus.ContainsStorePath:
                                 throw new Exception("ContainsStorePath");
                         case CollectionPathStatus.NotFixedDrivePath:
                                 throw new Exception("NotFixedDrivePath");
                         case CollectionPathStatus.SystemDirectoryPath:
                                 throw new Exception("SystemDirectoryPath");
                         case CollectionPathStatus.SystemDrivePath:
                                 throw new Exception("SystemDrivePath");
                         case CollectionPathStatus.IncludesWinDirPath:
                                 throw new Exception("IncludesWinDirPath");
                         case CollectionPathStatus.IncludesProgFilesPath:
                                 throw new Exception("IncludesProgFilesPath");
                         case CollectionPathStatus.DoesNotExistPath:
                                 throw new Exception("DoesNotExistPath");
                         case CollectionPathStatus.NoReadRightsPath:
                                 throw new Exception("NoReadRightsPath");
                         case CollectionPathStatus.NoWriteRightsPath:
                                 throw new Exception("NoWriteRightsPath");
                         case CollectionPathStatus.ContainsCollectionPath:
                                 throw new Exception("ContainsCollectionPath");
                         case CollectionPathStatus.AtOrInsideCollectionPath:
                                 throw new Exception("AtOrInsideCollectionPath");
                 }
                 sub.CollectionRoot = Path.GetFullPath(LocalPath);
                 if(sub.SubscriptionState == SubscriptionStates.Ready)
                 {
                         poBox.Commit(sub);
     sub.CreateSlave(store);
                 }
                 else
                 {
                         sub.Accept(store, SubscriptionDispositions.Accepted);
                         poBox.Commit(sub);
                 }
                 iFolderWeb ifolder = new iFolderWeb(sub);
                 return ifolder;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:64,代码来源:iFolderService.cs

示例12: nodeEvent

 private void nodeEvent(iFolderWeb ifolder, iFolderUser ifolderUser, string eventData)
 {
     try
        {
     if (ifolder != null)
     {
      currentiFolder = ifolder;
     }
     else if (ifolderUser != null)
     {
      ListViewItem lvi;
      lock (subscrHT)
      {
       lvi = (ListViewItem)subscrHT[ifolderUser.ID];
      }
      if (lvi != null)
      {
       ShareListMember slMember = (ShareListMember)lvi.Tag;
       slMember.iFolderUser = ifolderUser;
       lvi.Tag = slMember;
       updateListViewItem(lvi);
      }
      else if (eventData.Equals("NodeCreated"))
      {
       addiFolderUserToListView(ifolderUser);
      }
     }
     else
     {
      lock (subscrHT)
      {
       ListViewItem lvi = (ListViewItem)subscrHT[eventData];
       if (lvi != null)
       {
        lvi.Remove();
        subscrHT.Remove(eventData);
        lock (userIDHT)
        {
     ListViewItem lvitem = (ListViewItem)userIDHT[((ShareListMember)lvi.Tag).iFolderUser.UserID];
     if ((lvitem != null) && (subscrHT[((ShareListMember)lvitem.Tag).iFolderUser.ID] == null))
     {
      userIDHT.Remove(((ShareListMember)lvi.Tag).iFolderUser.UserID);
     }
        }
       }
      }
     }
        }
        catch
        {
        }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:52,代码来源:iFolderAdvanced.cs

示例13: AddiFolderToAcceptediFolders

 public void AddiFolderToAcceptediFolders(iFolderWeb ifolder, TileListViewItem selecteditem, String Path)
 {
     if (Path != null)
         DownloadPath = Path;
     if (selecteditem != null)
         removeTileListViewItem(selecteditem);
     if (ht.ContainsKey(ifolder.ID))
     {
         removeTileListViewItem((TileListViewItem)ht[ifolder.ID]);
     }
     iFolderObject ifolderobj = new iFolderObject(ifolder, iFolderState.Initial);
     addiFolderToListView(ifolderobj);
     if (acceptedFolders.Contains(ifolderobj.iFolderWeb.ID))
         acceptedFolders.Remove(ifolderobj.iFolderWeb.ID);
     ifolderobj.iFolderWeb.UnManagedPath = DownloadPath;
     TileListViewItem tlvi = new TileListViewItem(ifolderobj);
     acceptedFolders.Add(ifolderobj.iFolderWeb.ID, tlvi);
     ifolderobj = null;
     tlvi = null;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:20,代码来源:GlobalProperties.cs

示例14: GetiFolderInvitation

 public iFolderWeb GetiFolderInvitation(string POBoxID, string iFolderID)
 {
     iFolderWeb ifolder = null;
        CollectionInfo ci = DiscoveryFramework.GetLocalCollectionInfo(iFolderID);
     if(ci == null)
         ci = DiscoveryFramework.GetCollectionInfo(iFolderID);
        ifolder = new iFolderWeb(ci);
        return ifolder;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:9,代码来源:iFolderService.cs

示例15: AddToAcceptedFolders

 public void AddToAcceptedFolders(iFolderWeb ifWeb)
 {
     iFolderObject ifobj = new iFolderObject(ifWeb, iFolderState.Initial);
     addiFolderToListView(ifobj);
     TileListViewItem tlvi = new TileListViewItem(ifobj);
     acceptedFolders.Add(ifWeb.ID, tlvi);
     ifobj = null;
     tlvi = null;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:9,代码来源:GlobalProperties.cs


注:本文中的Novell.iFolder.Web.iFolderWeb类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。