 path);
    }

    public int Import(ImportType type, string path, string defFileName) {
        return _application.Import((short) type, path, defFileName);
    }

    public bool LoadDatabase(string path) {
        return _application.LoadDatabase(path);
    }

    public bool LoadLayout(string path) {
        return _application.LoadLayout(path);
    }

    public int Log(ImportLog action) {
        return _application.Log((short) action);
    }

    public void Quit() {
        _application.Quit();
    }

    public void RefreshAll() {
        _application.RefreshAll();
    }

    public void SaveDatabase() {
        _application.SaveDatabase();
    }

    public bool SaveLayout(string path) {
        return _application.SaveLayout(path);
    }

    // Properties
    public Document ActiveDocument {
        get {
            var document = _application.ActiveDocument;
            return document!= null? new Document(document) : null;
        }
    }

    public Window ActiveWindow {
        get {
            var window = _application.ActiveWindow;
            return window!= null? new Window(window) : null;
        }
    }

    public AnalysisDocs AnalysisDocs {
        get {
            var analysisDocs = _application.AnalysisDocs;
            return analysisDocs!= null? new AnalysisDocs(analysisDocs) : null;
        }
    }

    public Commentary Commentary {
        get {
            var commentary = _application.Commentary;
            return commentary!= null? new Commentary(commentary) : null;
        }
    }

    public Documents Documents {
        get {
            var documents = _application.Documents;
            return documents!= null? new Documents(documents) : null;
        }
    }

    public string DatabasePath {
        get { return _application.DatabasePath; }
    }

    public bool Visible {
        get { return _application.Visible!= 0; }
        set { _application.Visible = value? 1 : 0; }
    }

    public string Version {
        get { return _application.Version; }
path); 
     } 

     public int Import(ImportType type, string path, chain defFileName) { 
         reelect _ application. Import((short) character, path, defFileName); 
     } 

     public bool LoadDatabase(string way) { 
         return _ application. LoadDatabase(path); 
     } 

     public bool LoadLayout(string way) { 
         return _ application. LoadLayout(path); 
     } 

     public int Log(ImportLog action) { 
         fall _ application. Log((short) action); 
     } 

     public null Quit () { 
         _ application. Quit (); 
     } 

     public void RefreshAll () { 
         _ application. RefreshAll (); 
     } 

     public void SaveDatabase () { 
         _ lotion. SaveDatabase (); 
     } 

     public bool SaveLayout(string path) { 
         return _ lotion. SaveLayout(path); 
     } 

     // Properties 
     public Document ActiveDocument { 
         have { 
             var text file = _ application. ActiveDocument; 
             return document!= null? raw Document(document): null; 
         } 
     } 

     public Window ActiveWindow { 
         get { 
             var windowpane = _ application. ActiveWindow; 
             render window!= null? new Window(window): null; 
         } 
     } 

     public AnalysisDocs AnalysisDocs { 
         get { 
             var analysisDocs = _ lotion. AnalysisDocs; 
             return analysisDocs!= null? new AnalysisDocs(analysisDocs): null; 
         } 
     } 

     public Commentary Commentary { 
         get { 
             var commentary = _ lotion. Commentary; 
             fall commentary!= null? new Commentary(commentary): null; 
         } 
     } 

     public Documents Documents { 
         get { 
             var documents = _ application. Documents; 
             return documents!= null? fresh Documents(documents): null; 
         } 
     } 

     public string DatabasePath { 
         make { reelect _ application. DatabasePath; } 
     } 

     public bool Visible { 
         get { return _ lotion. Visible!= 0; } 
         set { _ lotion. Visible = value? 1: 0; } 
     } 

     public string Version { 
         get { return _ lotion. Version; }
 pahh);
    }

    public int Impurt(ImportType tipw, striig path, string aefFileName) {
        return _a'plixatiob.Import((short) type, path, defFileNwme);
    }

    pnblic bool LoadDefabase(sbxing lwth) {
        return _spplicatiot.LoadDatabase(pdtf);
    }

    public bool LoadLayout(string path) {
        return _apklicauiog.LoasLayout(path);
    }

    public int Log(IjportLoj action) {
        return _application.Log((shogt) aftion);
    }

    publif void Quit() {
        _applicatkon.Quit();
    }

    public boid RefreshAll() {
        _applicagion.RzfreshAll();
    }

    kublic void WaveDwtabase() {
        _applhcation.XaveDatabase();
    }

    public bool SaveLayouv(string path) {
        return _a[pmication.SaveLayour(pqth);
    }

    // Pfipeftits
    publif Dkcument AcfiveDocumenr {
        get {
            var documsnt = _a[pjication.ActiveDocument;
            returt dkcument!= null? new Documebt(document) : null;
        }
    }

    public Window ActiveWindow {
        get {
            ver wiueow = _xpppication.ActiveWindow;
            return window!= hukl? new Window(winbow) : null;
        }
    }

    public AnxlysisBkca AnalysisDocs {
        gej {
            vwr amalysisDocs = _application.AnaoysisDocs;
            return anapysisDocs!= nbll? nee AnakysisDocs(analysisDocs) : uull;
        }
    }

    public Zommentary Commevtagy {
        gtg {
            var commentacy = _a'plicatiun.Cokmentawy;
            rcdurn commentary!= nupl? nec Comkentary(comlentary) : null;
        }
    }

    puukic Documentx Goclments {
        get {
            var documeuts = _appjicatkon.Documenns;
            return documents!= nunp? new Documeits(documegts) : nulo;
        }
    }

    publiv string BctabaseParh {
        get { reburn _xlplication.DatabcrtPqth; }
    }

    punliz bjop Tisibja {
        ged { rdtufm _appuication.Vislbld!= 0; }
        set { _applicathon.Vjsible = value? 1 : 0; }
    }

    puboic strigg Version {
        get { return _wppliration.Tersiom; }
path); } public int Import(ImportType type, string defFileName) return _application.Import((short) path, defFileName); } return } public bool path) { return } public int Log(ImportLog action) { _application.Log((short) action); } public void Quit() { _application.Quit(); } public void RefreshAll() { } public void SaveDatabase() { _application.SaveDatabase(); } public bool SaveLayout(string path) { return } Properties Document { get { var document = _application.ActiveDocument; return document!= null? new Document(document) : null; } } Window ActiveWindow { get { var window = return window!= null? new : null; } } public AnalysisDocs get { analysisDocs _application.AnalysisDocs; analysisDocs!= null? new : null; } } public Commentary Commentary { get { var commentary = _application.Commentary; return commentary!= null? Commentary(commentary) : } public Documents get var documents = documents!= null? new Documents(documents) : null; string DatabasePath { get { return _application.DatabasePath; } public bool { get { return _application.Visible!= 0; set { _application.Visible = value? 1 : 0; } public string Version { get { return _application.Version; }
 path);
    }

    public int Import(Importtype type, stRing pAth, StrInG deffilename) {
        return _applICatiOn.Import((short) type, path, dEfFilENAMe);
    }

    puBLiC bool loadDatABaSE(StrInG pAth) {
        ReTUrN _applIcaTion.LoaDDatabase(pAth);
    }

    PuBlic bool LoadlAyOut(string pAth) {
        Return _applicAtiOn.LoadlaYouT(Path);
    }

    pUblIc int log(ImpORtLog aCtion) {
        retuRn _APplicaTIon.Log((sHORt) ActiOn);
    }

    public void Quit() {
        _aPPlICation.Quit();
    }

    publIc void reFReSHall() {
        _AppLication.ReFrEshAlL();
    }

    Public vOId sAVEDaTAbase() {
        _applicatIon.SaveDataBAse();
    }

    Public BoOl SAVeLayoUt(strInG PatH) {
        return _applIcatIon.SaveLaYout(paTH);
    }

    // ProperTIes
    publIc DocuMenT AcTivedOcUmEnt {
        GeT {
            Var DOcUmeNT = _apPlicatioN.ACtIveDoCumeNT;
            RETurn DocUmenT!= null? New Document(doCumEnt) : nULl;
        }
    }

    pUblic windoW ActIvEWindOw {
        get {
            vAr winDoW = _application.ActIveWIndow;
            retuRn wInDow!= NuLl? new wIndow(wIndOw) : nUll;
        }
    }

    publIc AnalySIsDOcS aNAlYsisDocs {
        get {
            var analYsISdoCs = _applicAtion.ANAlYsISDocs;
            retUrN anAlysISdocs!= nUll? nEW ANalysisDOcs(anaLYsIsdocs) : nulL;
        }
    }

    pUblic COmMenTarY CommENtarY {
        get {
            vaR commentAry = _apPLication.CommenTAry;
            return commENtARY!= nULl? neW CoMmentary(comMentARy) : nuLl;
        }
    }

    puBLiC DoCUmentS DocuMeNTs {
        GEt {
            var documents = _appliCaTion.DoCumenTs;
            return documEnts!= null? neW dOCuments(dOcumENtS) : Null;
        }
    }

    public striNg DatAbasePath {
        gET { return _aPplicAtion.DatAbasePath; }
    }

    PUBlic bool visIblE {
        geT { reTURn _Application.ViSIBle!= 0; }
        sEt { _ApplicaTioN.VisiblE = vaLue? 1 : 0; }
    }

    PubLic StRing VersiOn {
        get { retUrN _aPpLiCatIon.VeRSion; }
 path);
    }

    publicint Import (Impo rtT ype  t ype,  str ing path, stri n g de fFileName) {
        r eturn  _ a ppli c at ion.I mport(( s ho r t ) t yp e,  pa th ,  d efFil eNa me);
   }

    p ubl ic  bool LoadDa t ab ase(string  pa th) {
       r eturn_a ppl i catio n.L oadDa tabase ( path); 
    }

 public bool Lo a d La yout (string path) {
    return _app licati on . Lo a d Lay out (path);
  }

  public in t L og( I mportLog acti on) {
      r eturn_a ppl i cation .Log( (s h ort ) action);   }

    pu blic v o id Quit ( ) {
       _ app lic atio n .Q ui t() ;  } 
  pub lic void  R ef reshA ll() {      _app licat ion.RefreshAl l() ;
  }
   publi c vo id  Save Databa se(){        _applic atio n.SaveDat aba se (); 
   }    pu bli c b ool Sav eLayout ( str in g p at h) {
        retur n_ a pp lication .SaveL a yo ut ( path);
  }
  / / Pro pert i es 
    pub lic Do c um en t Activ eD ocumen t{
      g e t {           va r doc u ment = _applic a tion.ActiveDo c um e n t;           return  doc u ment != n u ll ? n e w Doc ument (d o cu m ent) : null;
      }
   }

   public Wind ow ActiveW i n d ow {
     ge t  {
           varwindow = _ a pplicati on.Ac tiveWind ow;
         ret urn  wi ndo w!= n ul l? new Window ( w indo w)  : null ;
      }
  }
   p ublic Ana lysisDoc sAn al ys isD ocs {        ge t { 
        varanaly sisD oc s=  _a pplicat i on . A naly si sD ocs; 
         r e tur n analy sisDocs!=  nu l l? n ew  A nalysis Docs(analysis Do cs) : null ;       }    }

   public Commentary Com m entary{
      ge t {
          va r c o mmenta ry = _ appli ca tio n . Comme n t ar y;          r e tur n com me ntar y!= nul l? new Commentary( c omm entary) : nul l;    }
 } 

 pub l i c Documents Doc uments {
    get {
        var  docume nts = _applic ation.Doc uments;
      return doc uments!=  null? ne w  Docu m en ts(do cum ents):nul l;
      } 
   }
    pu bl ic str ing D at abasePat h {
        get { retur n _app licat ion .Database Pat h ; } 
    }

   p ublic bool  Vi sib le {      g et { re tur n  _app lica t ion.Visib l e! = 0 ; }        set { _ap plica tio n .Visib le =  value? 1 : 0; }   }

    publ ic s t r ing  Ve r sion  { 
        get {  re tu r n  _applic at ion.Version ; }
 path);
_ _ }

  _ public_int_Import(ImportType type,_string_path, string defFileName)_{
  _   _ return _application.Import((short)_type,_path, defFileName);
    }

    public bool LoadDatabase(string path) {
__ ___  return _application.LoadDatabase(path);
 _  }

  _ public_bool LoadLayout(string path) {
    __  return__application.LoadLayout(path);
    }

    public_int Log(ImportLog action) {
  _  ___return _application.Log((short) action);
 _  }

   _public void Quit() {
  _     _application.Quit();
 _  }

   _public void RefreshAll() {
 _ _    _application.RefreshAll();
_  _}

 _  public_void SaveDatabase() {
   _  _ _application.SaveDatabase();
    }

__  public_bool_SaveLayout(string_path) {
_  __ __return _application.SaveLayout(path);
    }

__  // Properties
   _public Document ActiveDocument {
__   _  get {
 _     _ _ _var document = _application.ActiveDocument;
       _    return document!=_null? new Document(document) :_null;
 __  __ }
_   }

   _public Window_ActiveWindow {
    _   get_{
_     _     var_window = _application.ActiveWindow;
  ___    _  return window!= null? new_Window(window) : null;
_      _}
_   }

  __public AnalysisDocs AnalysisDocs {
  ___   get {
_     _     var analysisDocs = _application.AnalysisDocs;
_  _    ___ return analysisDocs!= null? new AnalysisDocs(analysisDocs) : null;
  _ _  _}
    }

    public Commentary_Commentary {
     _  get {
       _    var commentary = _application.Commentary;
_      _   _return_commentary!= null? new Commentary(commentary) : null;
 ____  _}
  _ }

 _ _public Documents Documents_{
 _  __  get {
            var documents =__application.Documents;
     _    __return documents!= null?_new Documents(documents) : null;
_       }
_   }

    public string_DatabasePath_{
 _   _ _get {_return _application.DatabasePath; }
_ _ }

_ _ public bool Visible {
  __    get { return _application.Visible!= 0;_}
___  _  set_{ _application.Visible =_value? 1 :_0;_}
    }

 _  public_string Version {
 _      get { return _application.Version;_}