protected Controller() { this.oConnection = B1Connection.getInstance(); this.oDBFacade = DBFacade.getInstance(); this.uiUtils = new UIUtils(oConnection.Company, oConnection.App); this.modeMonitors = new LinkedList <FormMode>(); this.properties = Properties.getInstance(); this.log = Logger.getInstance(); log.setProperties(properties); log.setUiUtils(uiUtils); initAddon(); log.prepare(); log.log("Addon iniciado", Logger.LogType.INFO, null, false); }
private void showMessageBox(string message, LogType type) { B1Connection.getInstance().App.MessageBox("[" + type.ToString() + "]\n" + message); }
public DBFacade() { this.logger = Logger.getInstance(); this.oConnection = B1Connection.getInstance(); }
public B1C() { this.connection = B1Connection.getInstance(); this.dbFacade = DBFacade.getInstance(); this.uiUtils = new UIUtils(connection); }
public JournalEntryOp() { this.logger = Logger.getInstance(); this.dbFacade = DBFacade.getInstance(); this.connection = B1Connection.getInstance(); }