Exemplo n.º 1
0
 /// <summary>
 /// Display the iFolder confirmation dialog.
 /// </summary>
 /// <param name="dllPath">The path where the assembly was loaded from.</param>
 /// <param name="path">The path of the iFolder.</param>
 public void NewiFolderWizard([MarshalAs(UnmanagedType.LPWStr)] string dllPath, [MarshalAs(UnmanagedType.LPWStr)] string path)
 {
     try
     {
         if (DisplayConfirmationEnabled)
         {
             NewiFolder newiFolder = new NewiFolder();
             newiFolder.FolderName = path;
             newiFolder.LoadPath   = dllPath;
             newiFolder.ShowDialog();
         }
     }
     catch (WebException e)
     {
         if (e.Status == WebExceptionStatus.ConnectFailure)
         {
             ifWebService = null;
         }
     }
     catch {}
 }
Exemplo n.º 2
0
 private bool MigrationPrompt()
 {
     Novell.iFolderCom.NewiFolder newif = new Novell.iFolderCom.NewiFolder();
        newif.ShowMigrationPrompt();
        newif.ShowDialog(null);
        bool dontAsk = newif.DontAsk;
        bool result = newif.Migrate;
        newif.Dispose();
        newif.Close();
        if( dontAsk == true)
        {
     string iFolderKey = @"SOFTWARE\Novell\iFolder";
     RegistryKey regKey = Registry.CurrentUser.CreateSubKey(iFolderKey);
     regKey.SetValue("MigrationPrompt",0);
     regKey.Close();
        }
        return result;
 }
Exemplo n.º 3
0
 public void NewiFolderWizard([MarshalAs(UnmanagedType.LPWStr)] string dllPath, [MarshalAs(UnmanagedType.LPWStr)] string path)
 {
     try
        {
     if (DisplayConfirmationEnabled)
     {
      NewiFolder newiFolder = new NewiFolder();
      newiFolder.FolderName = path;
      newiFolder.LoadPath = dllPath;
      newiFolder.Show();
     }
        }
        catch (WebException e)
        {
     if (e.Status == WebExceptionStatus.ConnectFailure)
     {
      ifWebService = null;
     }
        }
        catch {}
 }