public PackageFileLoad ( string filename ) : |
||
filename | string | |
return |
protected override void OnExecute(object param) { try { string packagename = Microsoft.VisualBasic.Interaction.InputBox("Enter package name that you want to load.\nNote: package must be already installed using 'install package' option.", "Load Library", ""); if (string.IsNullOrEmpty(packagename)) { //MessageBox.Show("Title/Command cannot be empty, Exiting Dialog install", "Info: Dialog Title Empty."); return; } PackageHelperMethods phm = new PackageHelperMethods(); UAReturn r = phm.PackageFileLoad(packagename);// PackageFileLoad(packagename); if (r != null && r.Success) { SendToOutputWindow( "Load Package", r.CommandString); } else { SendToOutputWindow("Error Loading User Session Package.", ""); } } catch (Exception ex) { MessageBox.Show("Error while loading package.", "Error Occurred!"); logService.WriteToLogLevel("Error:", LogLevelEnum.Error, ex); } }
protected override void OnExecute(object param) { try { string packagename = Microsoft.VisualBasic.Interaction.InputBox(BSky.GlobalResources.Properties.Resources.EnterPkgNameToLoad + "\n" + BSky.GlobalResources.Properties.Resources.PkgMustAlreadyInstalled, BSky.GlobalResources.Properties.Resources.LoadLibrary, ""); if (string.IsNullOrEmpty(packagename)) { //MessageBox.Show("Title/Command cannot be empty, Exiting Dialog install", "Info: Dialog Title Empty."); return; } PackageHelperMethods phm = new PackageHelperMethods(); UAReturn r = phm.PackageFileLoad(packagename);// PackageFileLoad(packagename); if (r != null && r.Success) { SendToOutputWindow(BSky.GlobalResources.Properties.Resources.LoadLibrary, r.CommandString, false); } else { SendToOutputWindow(BSky.GlobalResources.Properties.Resources.ErrLoadingUsrSessionPkg, "", false); } } catch (Exception ex) { MessageBox.Show(BSky.GlobalResources.Properties.Resources.ErrLoadingRPkg2, BSky.GlobalResources.Properties.Resources.ErrorOccurred); logService.WriteToLogLevel("Error:", LogLevelEnum.Error, ex); } }
protected override void OnExecute(object param) { try { string packagename = Microsoft.VisualBasic.Interaction.InputBox("Enter package name that you want to load.\nNote: package must be already installed using 'install package' option.", "Load Library", ""); if (string.IsNullOrEmpty(packagename)) { //MessageBox.Show("Title/Command cannot be empty, Exiting Dialog install", "Info: Dialog Title Empty."); return; } PackageHelperMethods phm = new PackageHelperMethods(); UAReturn r = phm.PackageFileLoad(packagename);// PackageFileLoad(packagename); if (r != null && r.Success) { SendToOutputWindow("Load Package", r.CommandString); } else { SendToOutputWindow("Error Loading User Session Package.", ""); } } catch (Exception ex) { MessageBox.Show("Error while loading package.", "Error Occurred!"); logService.WriteToLogLevel("Error:", LogLevelEnum.Error, ex); } }