public void RefreshUDT(string UdtName) { _mObjUdtHandler = null; _mObjUdtHandler = new CUDTManagerHelper(CRemoteHelper.GetDisconnectedUrl("UDTManager")); CurrentUDT = _mObjUdtHandler.GetUdtByName(UdtName); CurrentDataSet = CurrentUDT.ToDataSet(); }
private void InitializeWasp() { _CommonPath = Environment.GetEnvironmentVariable("Wasp3.5"); var configfile = Path.Combine(_CommonPath, "CommonConfig.config"); XDocument xdoc = XDocument.Load(configfile); var url = from lv1 in xdoc.Descendants("add") where lv1.Attribute("key").Value == "LOCALMANAGERURL" select lv1.Attribute("value").Value; _objRemoteHelper = new CRemoteHelper(url.ElementAt(0)); ConnectionStatus info = _objRemoteHelper.Connect(); _mObjUdtHandler = new CUDTManagerHelper(CRemoteHelper.GetDisconnectedUrl("UDTManager")); objWaspFileHandler = new CWaspFileHandler(); objWaspFileHandler.Initialize(CRemoteHelper.GetDisconnectedUrl("TemplateManager")); }
public bool InitializeConnection() { // string url=string.Empty; if (string.IsNullOrEmpty(_CommonPath)) { return(false); } var configfile = Path.Combine(_CommonPath, "CommonConfig.config"); XDocument xdoc = XDocument.Load(configfile); var url = from lv1 in xdoc.Descendants("add") where lv1.Attribute("key").Value == "REMOTEMANAGERURL" select lv1.Attribute("value").Value; _objRemoteHelper = new CRemoteHelper(url.ElementAt(0)); info = _objRemoteHelper.Connect(); _mObjUdtHandler = new CUDTManagerHelper(CRemoteHelper.GetDisconnectedUrl("UDTManager")); return(true); }