예제 #1
0
 /// <summary>
 /// Displays the Conflict Resolver dialog for the specified iFolder.
 /// </summary>
 /// <param name="dllPath">The path where the assembly was loaded from.</param>
 /// <param name="path">The path of the iFolder.</param>
 public void InvokeConflictResolverDlg([MarshalAs(UnmanagedType.LPWStr)] string dllPath, [MarshalAs(UnmanagedType.LPWStr)] string path)
 {
     try
     {
         iFolderWeb ifolder = ifWebService.GetiFolderByLocalPath(path);
         if (!iFolderComponent.AdvancedConflictResolver(ifWebService, ifolder))
         {
             ConflictResolver conflictResolver = new ConflictResolver();
             conflictResolver.iFolder           = ifolder;
             conflictResolver.iFolderWebService = ifWebService;
             conflictResolver.LoadPath          = dllPath;
             conflictResolver.Show();
         }
     }
     catch (Exception ex)
     {
         MyMessageBox mmb = new MyMessageBox(resourceManager.GetString("conflictDialogError"), resourceManager.GetString("conflictErrorTitle"), ex.Message, MyMessageBoxButtons.OK, MyMessageBoxIcon.Error);
         mmb.ShowDialog();
     }
 }