/// <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 {} }
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; }
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 {} }