コード例 #1
0
 /// <summary>
 /// Event handler for Resolve Conflicts event
 /// </summary>
 private void OnResolveConflicts(object o, EventArgs args)
 {
     ConflictDialog = new iFolderConflictDialog(
         this,
         ifolder,
         ifws,
         simws);
     ConflictDialog.Response +=
         new ResponseHandler(OnConflictDialogResponse);
     ConflictDialog.ShowAll();
 }
コード例 #2
0
 /// <summary>
 /// Event handler for Conflict Dialog Response event
 /// </summary>
 private void OnConflictDialogResponse(object o, ResponseArgs args)
 {
     if (ConflictDialog != null)
     {
         if (args.ResponseId == ResponseType.Help)
         {
             Util.ShowHelp("conflicts.html", this);
         }
         else
         {
             ConflictDialog.Hide();
             ConflictDialog.Destroy();
             ConflictDialog = null;
         }
     }
     // CRG: TODO
     // At this point, refresh the selected iFolder to see if it
     // has any more conflicts
 }
コード例 #3
0
 private void ResolveConflicts(iFolderHolder holder)
 {
     if (holder == null) return;
        iFolderConflictDialog conflictDialog =
     (iFolderConflictDialog) ConflictDialogs[holder.iFolder.ID];
        if (conflictDialog == null)
        {
     try
     {
      conflictDialog =
       new iFolderConflictDialog(
        this, holder.iFolder, ifws, simws);
      conflictDialog.SetPosition(WindowPosition.Center);
      conflictDialog.Response +=
       new ResponseHandler(OnConflictDialogResponse);
      conflictDialog.ShowAll();
      ConflictDialogs[holder.iFolder.ID] = conflictDialog;
     }
     catch(Exception e)
     {
      if(conflictDialog != null)
      {
       conflictDialog.Hide();
       conflictDialog.Destroy();
       conflictDialog = null;
      }
      iFolderExceptionDialog ied =
       new iFolderExceptionDialog(this, e);
      ied.Run();
      ied.Hide();
      ied.Destroy();
      ied = null;
     }
        }
        else
        {
     conflictDialog.Present();
        }
 }
コード例 #4
0
 private void OnResolveConflicts(object o, EventArgs args)
 {
     ConflictDialog = new iFolderConflictDialog(
       this,
       ifolder,
       ifws,
       simws);
        ConflictDialog.Response +=
       new ResponseHandler(OnConflictDialogResponse);
        ConflictDialog.ShowAll();
 }
コード例 #5
0
 private void OnConflictDialogResponse(object o, ResponseArgs args)
 {
     if(ConflictDialog != null)
        {
     if (args.ResponseId == ResponseType.Help)
      Util.ShowHelp("conflicts.html", this);
     else
     {
      ConflictDialog.Hide();
      ConflictDialog.Destroy();
      ConflictDialog = null;
     }
        }
 }