示例#1
0
 public static void CaricaDati()
 {
     objIniFile         = new clsFileIni();
     objIniFile.FileINI = _4PosBackOffice.NET.My.MyProject.Application.Info.DirectoryPath + "\\" + "4POSHQ.INI";
     objIniFile.section = "Configuration Info";
     objIniFile.Key     = "";
     //"FTPSERVER"
     objIniFile.ReadFromINI();
     //UPGRADE_WARNING: Couldn't resolve default property of object ServerN. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
     ServerN = "http://www.4pos.co.za/testHQ/4posheadoffice.pos";
     //server = objIniFile.Description
     objIniFile.Key = "BranchType";
     objIniFile.ReadFromINI();
     //UPGRADE_WARNING: Couldn't resolve default property of object BranchType. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
     BranchType = objIniFile.Description;
     //username = objIniFile.Description
     objIniFile.Key = "BranchID";
     objIniFile.ReadFromINI();
     //password = objIniFile.Description
     //UPGRADE_WARNING: Couldn't resolve default property of object BranchID. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
     BranchID       = objIniFile.Description;
     objIniFile.Key = "DIRSEND";
     objIniFile.ReadFromINI();
     //UPGRADE_WARNING: Couldn't resolve default property of object dirsend. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
     dirsend        = objIniFile.Description;
     objIniFile.Key = "DIRRECV";
     objIniFile.ReadFromINI();
     //UPGRADE_WARNING: Couldn't resolve default property of object dirrecv. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
     dirrecv        = objIniFile.Description;
     objIniFile.Key = "DIRSERV";
     objIniFile.ReadFromINI();
     //UPGRADE_WARNING: Couldn't resolve default property of object dirserv. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
     dirserv        = objIniFile.Description;
     objIniFile.Key = Convert.ToString(1);
     //"TIPFTP"
     objIniFile.ReadFromINI();
     tipftp = Convert.ToString(1);
     //objIniFile.Description
     //UPGRADE_NOTE: Object objIniFile may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
     objIniFile = null;
 }
示例#2
0
		public static void CaricaDati()
		{

			objIniFile = new clsFileIni();
			objIniFile.FileINI = _4PosBackOffice.NET.My.MyProject.Application.Info.DirectoryPath + "\\" + "4POSHQ.INI";
			objIniFile.section = "Configuration Info";
			objIniFile.Key = "";
			//"FTPSERVER"
			objIniFile.ReadFromINI();
			//UPGRADE_WARNING: Couldn't resolve default property of object ServerN. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
			ServerN = "http://www.4pos.co.za/testHQ/4posheadoffice.pos";
			//server = objIniFile.Description
			objIniFile.Key = "BranchType";
			objIniFile.ReadFromINI();
			//UPGRADE_WARNING: Couldn't resolve default property of object BranchType. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
			BranchType = objIniFile.Description;
			//username = objIniFile.Description
			objIniFile.Key = "BranchID";
			objIniFile.ReadFromINI();
			//password = objIniFile.Description
			//UPGRADE_WARNING: Couldn't resolve default property of object BranchID. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
			BranchID = objIniFile.Description;
			objIniFile.Key = "DIRSEND";
			objIniFile.ReadFromINI();
			//UPGRADE_WARNING: Couldn't resolve default property of object dirsend. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
			dirsend = objIniFile.Description;
			objIniFile.Key = "DIRRECV";
			objIniFile.ReadFromINI();
			//UPGRADE_WARNING: Couldn't resolve default property of object dirrecv. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
			dirrecv = objIniFile.Description;
			objIniFile.Key = "DIRSERV";
			objIniFile.ReadFromINI();
			//UPGRADE_WARNING: Couldn't resolve default property of object dirserv. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
			dirserv = objIniFile.Description;
			objIniFile.Key = Convert.ToString(1);
			//"TIPFTP"
			objIniFile.ReadFromINI();
			tipftp = Convert.ToString(1);
			//objIniFile.Description
			//UPGRADE_NOTE: Object objIniFile may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
			objIniFile = null;

		}