public override void LoadExternalDependencies( Assembly loadedAssembly, AssemblyDependency [] externalDependencies) { if (externalDependencies == null) { return; } // We can't do anything until we've loaded the assembly, because we need // to insert things specifically into its DllMap. if (loadedAssembly == null) { return; } foreach (var externalDep in externalDependencies) { try { Log.Debug(TAG, $"Loading external dependency from {externalDep.Location}…"); MonoSupport.AddDllMapEntries(loadedAssembly, externalDep); } catch (Exception e) { Log.Error(TAG, "Could not load external dependency.", e); } } }
internal override void LoadExternalDependencies( Assembly loadedAssembly, IReadOnlyList <AssemblyDependency> externalDependencies) { if (externalDependencies == null) { return; } // On Mono platforms, we can't do anything until we've loaded the assembly, because we need // to insert things specifically into its DllMap. if (MacIntegration.IsMac && loadedAssembly == null) { return; } foreach (var externalDep in externalDependencies) { try { Log.Debug(TAG, $"Loading external dependency from {externalDep.Location}."); if (MacIntegration.IsMac) { MonoSupport.AddDllMapEntries(loadedAssembly, externalDep); } else { WindowsSupport.LoadLibrary(externalDep.Location); } } catch (Exception e) { Log.Error(TAG, "Could not load external dependency.", e); } } }
public DeleteFinished() : base(Strings.DeleteFinished.PageTitle, Strings.DeleteFinished.PageDescription) { InitializeComponent(); MonoSupport.FixTextBoxes(this); base.PageEnter += new PageChangeHandler(DeleteFinished_PageEnter); }
public FinishedRestoreSetup() : base(Strings.FinishedRestoreSetup.PageTitle, Strings.FinishedRestoreSetup.PageDescription) { InitializeComponent(); MonoSupport.FixTextBoxes(this); base.PageEnter += new PageChangeHandler(FinishedRestoreSetup_PageEnter); base.PageLeave += new PageChangeHandler(FinishedRestoreSetup_PageLeave); }
public CommandLineOptionGrid() { try { InitializeComponent(); } catch (NotImplementedException) { OptionsGrid.Enabled = false; MessageBox.Show(this, Strings.CommandLineOptionsGrid.PageNotSupportedWarning, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error); m_unsupported = true; } MonoSupport.FixTextBoxes(this); }