MPInterfacebInitInterface Method |
Namespace: MARIInterface
//Make sure, that the file MARIProjectConnection.xml is in the same folder as MARIEngine.dll. The first link to a MARIProject database will be used MARIInterface.MPInterface MPInterface; MPInterface = new MARIInterface.MPInterface(); //Initialize the interface if (MPInterface.bInitInterface()) { // MARIProject user and password if (MPInterface.bUserLogin("MARINGO", "")) { // Start your code here... this.oMPInterface = MPInterface; //Add an Application.Idle Handler to call oMPInterface.ClearBusinessLogicBusyCash(); // when you are idle. This will allow to reload changes from other users in your Interface. } else { // Read results from oError Object throw new SystemException("Login failed: " + MPInterface.oErrors.PrintErrors()); } } else { // Read results from oError Object throw new SystemException("Login failed: " + MPInterface.oErrors.PrintErrors()); }