當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。