Ejemplo n.º 1
0
 private static int showShareDialog(string[] args)
 {
     if (args.Length < 2) {
     System.Console.Write ("ERROR: iFolder ID not specified\n");
     return -1;
        }
        Manager manager = new Manager();
        manager.Start();
        iFolderPropertiesDialog propsDialog;
        propsDialog = new iFolderPropertiesDialog (args [1], manager);
        propsDialog.CurrentPage = 1;
        propsDialog.Run ();
        propsDialog.Hide ();
        propsDialog.Destroy ();
        manager.Stop();
        return 0;
 }
Ejemplo n.º 2
0
 private void ShowFolderProperties(iFolderHolder ifHolder, int desiredPage)
 {
     if (ifHolder != null)
        {
     iFolderPropertiesDialog propsDialog =
      (iFolderPropertiesDialog) PropDialogs[ifHolder.iFolder.ID];
     if (propsDialog == null)
     {
      try
      {
       propsDialog =
        new iFolderPropertiesDialog(this, ifHolder.iFolder, ifws, simws, simiasManager);
       propsDialog.SetPosition(WindowPosition.Center);
       propsDialog.Response +=
     new ResponseHandler(OnPropertiesDialogResponse);
       propsDialog.CurrentPage = desiredPage;
       propsDialog.ShowAll();
       PropDialogs[ifHolder.iFolder.ID] = propsDialog;
      }
      catch(Exception e)
      {
       if(propsDialog != null)
       {
        propsDialog.Hide();
        propsDialog.Destroy();
        propsDialog = null;
       }
       iFolderExceptionDialog ied =
        new iFolderExceptionDialog(this, e);
       ied.Run();
       ied.Hide();
       ied.Destroy();
       ied = null;
      }
     }
     else
     {
      propsDialog.Present();
      propsDialog.CurrentPage = desiredPage;
     }
        }
 }