コード例 #1
0
ファイル: BrokerManager.cs プロジェクト: Globlock/Version0
 private void prepareINIFile(){
     iniAccess = new Obj_SettingsAccess();
     iniAccess.inspectFile();
     drivePaths = new Obj_FilePaths(iniAccess, testMode);
     //TEST
     //MessageBox.Show("INI & Drive Paths Created - Working Directory: " + drivePaths.dPath_Working_Directory);
 }
コード例 #2
0
ファイル: Obj_FilePaths.cs プロジェクト: Globlock/Version0
        internal void buildFromINI(Obj_SettingsAccess iniAccess) {

            dPath_Working_Directory = iniAccess.IniReadValue("WORKINGDIRECTORY", "directory");
            dPath_Database_Location = iniAccess.IniReadValue("DATABASE", "location");
            dPath_Database_Filename = iniAccess.IniReadValue("DATABASE", "filename");
            dPath_Database_FullPath = System.IO.Path.Combine(dPath_Working_Directory, dPath_Database_Location);
            dPath_Database_Absolute = System.IO.Path.Combine(dPath_Working_Directory, dPath_Database_Location, dPath_Database_Filename);

            /*
            if (testMode) {                                                                        //Testing only
                server_API_URI = new System.Uri("http://localhost/21052014/GLOBLOCK.php");    //Testing only
                server_API_Filename = "FileAccessAPI.php";                                         //Testing only
                server_API_Address = "http://localhost/21052014/";                                 //Testing only
                return;
            }
            */
            server_API_Address = iniAccess.IniReadValue("SERVER", "location");
            server_API_Filename = iniAccess.IniReadValue("SERVER", "filename");
            server_API_URI = new System.Uri(System.IO.Path.Combine(server_API_Address, server_API_Filename));    //Testing only
        }
コード例 #3
0
ファイル: Obj_FilePaths.cs プロジェクト: Globlock/Version0
 public Obj_FilePaths(Obj_SettingsAccess iniAccess, bool testMode) {
     this.testMode = testMode;
     this.buildFromINI(iniAccess);
 }