Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 private void showMessageBox(string message, LogType type)
 {
     B1Connection.getInstance().App.MessageBox("[" + type.ToString() + "]\n" + message);
 }
Ejemplo n.º 3
0
 public DBFacade()
 {
     this.logger      = Logger.getInstance();
     this.oConnection = B1Connection.getInstance();
 }
Ejemplo n.º 4
0
 public B1C()
 {
     this.connection = B1Connection.getInstance();
     this.dbFacade   = DBFacade.getInstance();
     this.uiUtils    = new UIUtils(connection);
 }
Ejemplo n.º 5
0
 public JournalEntryOp()
 {
     this.logger     = Logger.getInstance();
     this.dbFacade   = DBFacade.getInstance();
     this.connection = B1Connection.getInstance();
 }