/// <summary> /// /// </summary> /// <param name="userName"></param> /// <param name="userPassword"></param> /// <returns></returns> public bool WriteUsbAuthentication(DesktopSession desktopSession, string userName, string userPassword) { if (desktopSession == null) { return(false); } var storage = desktopSession.CurrentUSBStorage; if (storage == null || string.IsNullOrEmpty(storage.DriveSerialNumber) || string.IsNullOrEmpty(userName) || string.IsNullOrEmpty(userPassword)) { return(false); } var rt = false; string initialStr = userName + SecurityAccessor.SEP + userPassword; string partialEncrypt = this.encryptedConfig.EncryptValue(initialStr); string fullEncryption = StringUtilities.Encrypt(partialEncrypt, storage.DriveSerialNumber, true); if (!string.IsNullOrEmpty(fullEncryption)) { rt = desktopSession.WriteUsbData(fullEncryption); } return(rt); }
private void Print_btn_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; var dInitDate = Convert.ToDateTime(string.Format("{0:d}", ShopDateTime.Instance.ShopDate)); var stoNum = GlobalDataAccessor.Instance.CurrentSiteId.StoreNumber; string fileName = @"partial_payment_detail_report_" + dInitDate.Ticks + ".pdf"; string rptDir = SecurityAccessor.Instance.EncryptConfig.ClientConfig.GlobalConfiguration.BaseLogPath; var rpt = new PartialPaymentDetailReport( rptDir + "\\" + fileName, stoNum, GlobalDataAccessor.Instance.CurrentSiteId.StoreName, dInitDate); var key = _selectedData[_rowNum].Row.Field <Int64>("RECEIPTDETAIL_NUMBER"); DataView reportView = _selectedData.DataViewManager.CreateDataView(_selectedData.Table); reportView.RowFilter = "RECEIPTDETAIL_NUMBER='" + key + "'"; rpt.CreateReport(reportView); this.TopMost = false; this.BringToFront(); Cursor.Current = Cursors.Default; DesktopSession.ShowPDFFile(rptDir + "\\" + fileName, false); }
/// <summary> /// /// </summary> public NewFindMerchandise(DesktopSession desktopSession) { this.DesktopSession = desktopSession; InitializeComponent(); if (desktopSession != null) { this.searchButton.BackgroundImage = this.DesktopSession.ResourceProperties.vistabutton_blue; this.cancelButton.BackgroundImage = this.DesktopSession.ResourceProperties.vistabutton_blue; this.manualEntryButton.BackgroundImage = this.DesktopSession.ResourceProperties.vistabutton_blue; this.BackgroundImage = this.DesktopSession.ResourceProperties.newDialog_400_BlueScale; } Action = ACTION_OK; _autoCompleter = new AutoCompleter( manufacturerTextBox, suggestedManufacturerListBox, _manufacturers); suggestedManufacturerListBox.VisibleChanged += (sender, args) => { if (suggestedManufacturerListBox.Visible) { suggestedManufacturerLabel.Visible = true; } }; }
private void PrintPDFReport(CustomerVO currentCustomer, List <HoldData> policeHolds) { // 03082012 TG - Add printing using iText# //var rtcReport = new Reports.ReleaseToClaimantReport(); var phReport = new Reports.PoliceHoldReport(); var reportObject = new ReportObject(); reportObject.ReportTempFile = SecurityAccessor.Instance.EncryptConfig.ClientConfig.GlobalConfiguration.BaseLogPath; reportObject.CreateTemporaryFullName(); phReport.reportObject = reportObject; phReport.ReportTempFileFullName = reportObject.ReportTempFileFullName; // set store information phReport.STORE_NAME = ProcessTenderController.STORE_NAME; phReport.STORE_ADDRESS = ProcessTenderController.STORE_ADDRESS; phReport.STORE_CITY = ProcessTenderController.STORE_CITY; phReport.STORE_STATE = ProcessTenderController.STORE_STATE; phReport.STORE_ZIP = ProcessTenderController.STORE_ZIP; phReport.CurrentCust = currentCustomer; // Pass hold data phReport.HoldData = policeHolds[0]; if (phReport.CreateReport()) { DesktopSession.ShowPDFFile(phReport.reportObject.ReportTempFileFullName, false); this.TopMost = false; } }
/// <summary> /// /// </summary> /// <param name="desktopSession"> </param> /// <param name="userName"></param> /// <param name="userPassword"></param> /// <returns></returns> public bool ReadUsbAuthentication(DesktopSession desktopSession, out string userName, out string userPassword) { userName = string.Empty; userPassword = string.Empty; if (desktopSession == null) { return(false); } var storage = desktopSession.CurrentUSBStorage; if (storage == null || !storage.IsValid) { return(false); } string serNumDecryptString = storage.DriveSerialNumber; string dataToDecrypt = storage.DriveData; string partiallyDecryptData = StringUtilities.Decrypt(dataToDecrypt, serNumDecryptString, true); var fullDecrypt = this.encryptedConfig.DecryptValue(partiallyDecryptData); int sepIdx = fullDecrypt.IndexOf(SecurityAccessor.SEP, System.StringComparison.OrdinalIgnoreCase); if (sepIdx < 0) { return(false); } userName = fullDecrypt.Substring(0, sepIdx).ToLowerInvariant(); userPassword = fullDecrypt.Substring(sepIdx + 1); return(true); }
private void btnComplete_Click(object sender, EventArgs e) { bool printFeatures = false; if (chkPrintFeaturesTag.Checked) { printFeatures = true; } Item.PfiTags = Utilities.GetIntegerValue(txtTagsToReprint.Text); try { DesktopSession.PrintTags(Item, printFeatures); this.Hide(); MessageBox.Show("Tag(s) printed successfully."); if (SenderObject == ReprintVerifySender.ChangeRetailPrice) { ChangeRetailPriceSearch itemSearchFrm = new ChangeRetailPriceSearch(DesktopSession); Form currForm = DesktopSession.HistorySession.Lookup(itemSearchFrm); if (currForm.GetType() == typeof(ChangeRetailPriceSearch)) { currForm.Show(); } } this.Close(); } catch (Exception eX) { if (FileLogger.Instance.IsLogError) { FileLogger.Instance.logMessage(LogLevel.ERROR, this, "Cannot re-print tag. Exception thrown: {0} {1}", eX, eX.Message); } MessageBox.Show("Failed to print tag. Please try again."); } }
protected void Print_btn_Click(object sender, EventArgs e) { System.Windows.Forms.Cursor.Current = Cursors.WaitCursor; var dInitDate = Convert.ToDateTime(string.Format("{0:d}", ShopDateTime.Instance.ShopDate)); var stoNum = GlobalDataAccessor.Instance.CurrentSiteId.StoreNumber; string fileName = @"loan_listing_report_" + dInitDate.Ticks + ".pdf"; string rptDir = SecurityAccessor.Instance.EncryptConfig.ClientConfig.GlobalConfiguration. BaseLogPath; LoanListingReport rpt = new LoanListingReport( rptDir + "\\" + fileName, stoNum, GlobalDataAccessor.Instance.CurrentSiteId.StoreName, dInitDate, "Loan Listing \n\n" + criteriaSummary_txt.Text, _theCriteria.sortByField() ); rpt.CreateReport(_theData); this.TopMost = false; System.Windows.Forms.Cursor.Current = Cursors.Default; DesktopSession.ShowPDFFile(rptDir + "\\" + fileName, false); }
// ** CHANGES BELOW ARE NOT REQUIRED UNLESS YOUR ACCESS REQUIRES ADDITIONAL PARAMETERS ** // GetSession // Based on the above Session Type, retrieve the Session used to define how you want to access the platform. // public static ISession GetSession(SessionTypeEnum?session = null) { session = session ?? SessionType; return(session switch { SessionTypeEnum.RDP => PlatformSession.Definition().AppKey(Credentials.AppKey) .OAuthGrantType(new GrantPassword().UserName(Credentials.RDPUser) .Password(Credentials.RDPPassword)) .TakeSignonControl(true) .GetSession().OnState((s, state, msg) => Console.WriteLine($"{DateTime.Now}: State: {state}. {msg}")) .OnEvent((s, eventCode, msg) => Console.WriteLine($"{DateTime.Now}: Event: {eventCode}. {msg}")), SessionTypeEnum.DESKTOP => DesktopSession.Definition().AppKey(Credentials.AppKey) .GetSession().OnState((s, state, msg) => Console.WriteLine($"{DateTime.Now}: State: {state}. {msg}")) .OnEvent((s, eventCode, msg) => Console.WriteLine($"{DateTime.Now}: Event: {eventCode}. {msg}")), SessionTypeEnum.DEPLOYED => PlatformSession.Definition().Host(Credentials.ADSHost) .GetSession().OnState((s, state, msg) => Console.WriteLine($"{DateTime.Now}: State: {state}. {msg}")) .OnEvent((s, eventCode, msg) => Console.WriteLine($"{DateTime.Now}: Event: {eventCode}. {msg}")), _ => throw new IndexOutOfRangeException($"Unknown Session Type: {SessionType}"), });
public RetailItemPricingHistory(DesktopSession desktopSession, RetailItem item, QuickCheck quickCheck) { DesktopSession = desktopSession; InitializeComponent(); RetailItem = item; QuickInformation = quickCheck; }
public void InspectPackageManifest() { session.FindElementByName("Sideload").Click(); Thread.Sleep(100); WindowsElement sdload = session.FindElementByAccessibilityId("TitleSideloadPackages"); // LeftClick on "VIEW MANIFEST" at (42,6) Console.WriteLine("LeftClick on \"VIEW MANIFEST\" at (42,6)"); var manifest = session.FindElementByName("VIEW MANIFEST"); manifest.Click(); Thread.Sleep(10000); try { // If system doesn't have default app to open manifest with. string popupAppList = "/Pane[@Name=\"Desktop 1\"][@ClassName=\"#32769\"]/Window[@AutomationId=\"Popup Window\"][@Name=\"How do you want to open this file?\"]/List[@AutomationId=\"AppsListContainer\"]/List[@AutomationId=\"RecommendedAppsList\"]/ListItem[@Name=\"Notepad\"][@ClassName=\"AppListTileElement\"]"; var listNotepad = DesktopSession.FindElementByXPath(popupAppList); listNotepad.Click(); Thread.Sleep(10000); string popupConfirm = "/Pane[@Name=\"Desktop 1\"][@ClassName=\"#32769\"]/Window[@AutomationId=\"Popup Window\"][@Name=\"How do you want to open this file?\"]/Button[@AutomationId=\"ConfirmButton\"][@Name=\"OK\"]"; var confirm = DesktopSession.FindElementByXPath(popupConfirm); confirm.Click(); Assert.IsNotNull(DesktopSession.FindElementByAccessibilityId("TitleBar")); } catch { // This means IE is preconfigured as default - expected for hosted agents. } Thread.Sleep(15000); Assert.IsNotNull(DesktopSession.FindElementByClassName("IEFrame")); //Check to see if manifest launched successfully by looking for Notepad TitleBar attribute or Internet Explorer. }
public ReprintTagVerify(DesktopSession desktopSession, Item item, ReprintVerifySender senderobject) { InitializeComponent(); DesktopSession = desktopSession; Item = item; SenderObject = senderobject; txtTagsToReprint.Text = "1"; }
public FrmGetShop(//HardwareConfig.Hardware_Config inHardware, DesktopSession dSession) { InitializeComponent(); //Hardware = new Hardware_Config(); desktopSession = dSession; txtShop.Select(); }
public UserLogin(DesktopSession iSession) { if (iSession == null) { throw new ApplicationException("Must have a valid desktop session object prior to log in!"); } this.desktopSession = iSession; InitializeComponent(); }
public static bool RejectTransfer(DesktopSession cds, TransferVO transfer, out string errorCode, out string errorText) { if (transfer == null) { throw new ArgumentNullException("transfer"); } //Initialize output vars errorCode = string.Empty; errorText = string.Empty; OracleDataAccessor dA = GlobalDataAccessor.Instance.OracleDA; //Create parameter list List <OracleProcParam> oParams = new List <OracleProcParam>(); oParams.Add(new OracleProcParam("p_transfer_ticket_number", transfer.TransferTicketNumber)); oParams.Add(new OracleProcParam("p_store_number", cds.CurrentSiteId.StoreNumber)); oParams.Add(new OracleProcParam("p_user_id", cds.FullUserName)); oParams.Add(new OracleProcParam("p_origination_store_number", transfer.OriginalStoreNumber)); oParams.Add(new OracleProcParam("p_reject_reason", transfer.RejectReason)); oParams.Add(new OracleProcParam("p_status_date", ShopDateTime.Instance.ShopDate.FormatDate())); oParams.Add(new OracleProcParam("p_status_time", ShopDateTime.Instance.ShopTransactionTime.ToString())); oParams.Add(new OracleProcParam("p_carrier", transfer.Carrier)); oParams.Add(new OracleProcParam("p_ticket_type", transfer.TransferSource.ToString())); //Make stored proc call bool retVal; DataSet outputDataSet; try { retVal = GlobalDataAccessor.Instance.OracleDA.issueSqlStoredProcCommand("ccsowner", "transfers", "reject_transfer", oParams, null, "o_return_code", "o_return_text", out outputDataSet); errorCode = dA.ErrorCode; errorText = dA.ErrorDescription; } catch (OracleException oEx) { BasicExceptionHandler.Instance.AddException("Execute RejectTransfer Failed", oEx); errorCode = "ExecuteRejectTransferFailed"; errorText = "OracleException thrown: " + oEx.Message; return(false); } if (retVal == false) { BasicExceptionHandler.Instance.AddException("Execute RejectTransfer Failed: return value is false", new ApplicationException()); errorCode = dA.ErrorCode + " --- ExecuteRejectTransfer"; errorText = dA.ErrorDescription + " -- Return value is false"; return(false); } return(true); }
public MainFlowExecutorBase( DesktopSession dSession) : base("MainFlowExecutorBaseBlock") { this.desktopSession = dSession; this.primaryFlowExecutors = new Dictionary <string, string>(); this.EndStateNotifier = null; this.ParentForm = null; this.ParentFlowExecutor = null; }
public static bool ProcessChargeonNewItems(DesktopSession desktopSession, List <Item> tempItems, string storeNumber) { foreach (Item pItem in tempItems) { if (pItem != null) { QuickCheck pItemQInfo = pItem.QuickInformation; Int64[] primaryMasks = getMasks(pItem); //Insert MDSE record for this pawn item //Calculate the cost amount of the item //Requirement is that cost will be 65% of the amount entered as retail amount //decimal itemCost = Utilities.GetDecimalValue(.65) * Utilities.GetDecimalValue(pItem.ItemAmount); decimal itemCost = pItem.ItemAmount; string errorCode; string errorMessage; bool curRetValue = ProcessTenderProcedures.ExecuteInsertMDSERecord( pItem.mStore, pItem.mStore, pItem.mYear, pItem.mDocNumber, "" + pItem.mDocType, 1, 0, pItem.CategoryCode, "", itemCost, 0, pItemQInfo.Manufacturer, pItemQInfo.Model, pItemQInfo.SerialNumber, pItemQInfo.Weight, primaryMasks, pItem.TicketDescription, pItem.ItemAmount, pItem.StorageFee, "AUDIT", ShopDateTime.Instance.ShopDate.FormatDate(), ShopDateTime.Instance.ShopDate.ToShortDateString() + " " + ShopDateTime.Instance.ShopTime.ToString(), "", "", pItem.mDocType, "", out errorCode, out errorMessage); if (!curRetValue) { return(false); } foreach (ItemAttribute iAttr in pItem.Attributes) { if (iAttr.Answer.AnswerCode == OTHERDSC_CODE) { bool otherDscVal = ProcessTenderProcedures.ExecuteInsertOtherDscRecord( storeNumber, pItem.mStore, pItem.mYear, pItem.mDocNumber, "" + pItem.mDocType, 1, 0, iAttr.MaskOrder, iAttr.Answer.AnswerText, "AUDIT", out errorCode, out errorMessage); if (!otherDscVal) { return(false); } } } MerchandiseProcedures.UpdateMerchandiseRetailPrice(desktopSession, new Icn(pItem.Icn), pItem.RetailPrice, out errorCode, out errorMessage, storeNumber); if (errorCode != "0") { return(false); } desktopSession.PrintTags(pItem, CurrentContext.AUDITCHARGEON); } } return(true); }
public AlternateManufacturer(DesktopSession desktopSession, ref ActiveManufacturer aManufacturerModel) { DesktopSession = desktopSession; InitializeComponent(); this.cancelButton.BackgroundImage = DesktopSession.ResourceProperties.vistabutton_blue; this.continueButton.BackgroundImage = DesktopSession.ResourceProperties.vistabutton_blue; this.BackgroundImage = DesktopSession.ResourceProperties.newDialog_400_BlueScale; _ActiveManufacturerModel = aManufacturerModel; }
public ItemSearchResults(DesktopSession desktopSession, ItemSearchResultsMode mode) { DesktopSession = desktopSession; InitializeComponent(); ResultsMode = mode; btnTempICN.Visible = ResultsMode != ItemSearchResultsMode.CHANGE_RETAIL_PRICE && ResultsMode != ItemSearchResultsMode.REPRINT_TAG && ResultsMode != ItemSearchResultsMode.CHARGEOFF; }
public ChangeRetailPriceSearch(DesktopSession desktopSession) { DesktopSession = desktopSession; InitializeComponent(); continueButton.Enabled = false; NavControlBox = new NavBox { Owner = this }; }
public ChargeOffContext(DesktopSession desktopSession) { if (desktopSession == null) { throw new ArgumentNullException("desktopSession"); } DesktopSession = desktopSession; DefaultItemReason = ItemReason.COFFMISSING; }
protected void Print_btn_Click(object sender, EventArgs e) { System.Windows.Forms.Cursor.Current = Cursors.WaitCursor; var dInitDate = Convert.ToDateTime(string.Format("{0:d}", ShopDateTime.Instance.ShopDate)); var stoNum = GlobalDataAccessor.Instance.CurrentSiteId.StoreNumber; //string fileName = @"mdse_listing_report_" + dInitDate.Ticks + ".pdf"; string rptDir = SecurityAccessor.Instance.EncryptConfig.ClientConfig.GlobalConfiguration. BaseLogPath; var reportFilterSelect = new ReportType(); this.TopMost = false; reportFilterSelect.ShowDialog(); if (reportFilterSelect.DialogResult == DialogResult.OK) { string[] filters = reportFilterSelect.getFilters(); string[] filterNames = reportFilterSelect.getFilterNames(); if (filters.GetLength(0) > 0) { for (int i = 0; i < filters.GetLength(0); i++) { string fileName = @"mdse_listing_report_" + i + "_" + dInitDate.Ticks + ".pdf"; string filter = filters[i]; _theData.Tables["MDSE"].DefaultView.RowFilter = filter; MdseListingReport rpt = new MdseListingReport( rptDir + "\\" + fileName, stoNum, GlobalDataAccessor.Instance.CurrentSiteId.StoreName, dInitDate, "Inventory Listing: " + filterNames[i] + "\n\n" + ((InventoryInquiries)_theCriteria).ToString(80), _theCriteria.sortByField(), _theCriteria.sortByName() ); rpt.CreateReport(_theData.Tables["MDSE"].DefaultView); System.Windows.Forms.Cursor.Current = Cursors.Default; DesktopSession.ShowPDFFile(rptDir + "\\" + fileName, false); _theData.Tables["MDSE"].DefaultView.RowFilter = ""; } } else { MessageBox.Show("No Report Type Selected"); } } else { MessageBox.Show("No Report Type Selected"); } }
public DescribeStones(DesktopSession desktopSession, CurrentContext currentContext) { DesktopSession = desktopSession; InitializeComponent(); this.colDelete.HeaderText = DesktopSession.ResourceProperties.OverrideMachineName; this.continueEditStonesButton.BackgroundImage = DesktopSession.ResourceProperties.vistabutton_blue; this.deleteEditStonesButton.BackgroundImage = DesktopSession.ResourceProperties.vistabutton_blue; this.cancelEditStonesButton.BackgroundImage = DesktopSession.ResourceProperties.vistabutton_blue; this.BackgroundImage = DesktopSession.ResourceProperties.newDialog_400_BlueScale; _CurrentContext = currentContext; }
public void ReplaceWord() { //NotepadTextArea.SendKeys("Hello World"); EditButton.Click(); DesktopSession.FindElementByAccessibilityId("23").Click(); DesktopSession.FindElementByAccessibilityId("1152").SendKeys("World"); DesktopSession.FindElementByAccessibilityId("1153").Clear(); DesktopSession.FindElementByAccessibilityId("1153").SendKeys("QA Engineers"); DesktopSession.FindElementByName("Reemplazar todo").Click(); DesktopSession.FindElementByAccessibilityId("2").Click(); }
public ManageOverrides(DesktopSession desktopSession, string trigger) { DesktopSession = desktopSession; this.trigger = trigger; InitializeComponent(); _OverrideAmount = new List <decimal>(); _SuggestedLoanAmount = new List <decimal>(); TransactionNumbers = new List <int>(); ManagerOverrideTransactionTypes = new List <ManagerOverrideTransactionType>(); ManagerOverrideTypes = new List <ManagerOverrideType>(); }
public DescribeStones_Images(DesktopSession desktopSession) { DesktopSession = desktopSession; _Setup = true; InitializeComponent(); radioButton1.Checked = false; radioButton2.Checked = false; radioButton3.Checked = false; radioButton4.Checked = false; radioButton5.Checked = false; Setup(); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SupportAppDesktop_Load(object sender, EventArgs e) { this.endStateNotifier = new FxnBlock(); this.endStateNotifier.InputParameter = null; this.endStateNotifier.Function = this.handleEndFlow; this.mainMenuPanel.setExitButtonHandler(this.exitButton_Click); //Acquire desktop session object this.cdSession = CashlinxPawnSupportSession.Instance; this.cdSession.Setup(this); }
private void PrintAndStoreReport(int ticketNumber, string reportName) { DesktopSession cds = GlobalDataAccessor.Instance.DesktopSession; OracleDataAccessor dA = GlobalDataAccessor.Instance.OracleDA; SecuredCouchConnector cC = GlobalDataAccessor.Instance.CouchDBConnector; if (SecurityAccessor.Instance.EncryptConfig.ClientConfig.ClientConfiguration.PrintEnabled && cds.LaserPrinter.IsValid) { if (FileLogger.Instance.IsLogInfo) { FileLogger.Instance.logMessage(LogLevel.INFO, "CreateReportObject", "Printing {0} on printer {1}", reportName, cds.LaserPrinter); } string errMsg = PrintingUtilities.printDocument( reportObject.ReportTempFileFullName, cds.LaserPrinter.IPAddress, cds.LaserPrinter.Port, 2); if (errMsg.IndexOf("SUCCESS", StringComparison.OrdinalIgnoreCase) == -1) { if (FileLogger.Instance.IsLogError) { FileLogger.Instance.logMessage(LogLevel.ERROR, this, "Cannot print {0} on {1}", reportName, cds.LaserPrinter); } } } var pDoc = new CouchDbUtils.PawnDocInfo(); //Set document add calls pDoc.UseCurrentShopDateTime = true; pDoc.StoreNumber = GlobalDataAccessor.Instance.CurrentSiteId.StoreNumber; pDoc.CustomerNumber = GlobalDataAccessor.Instance.DesktopSession.ActiveCustomer.CustomerNumber; pDoc.DocumentType = Document.DocTypeNames.PDF; pDoc.DocFileName = reportObject.ReportTempFileFullName; pDoc.TicketNumber = ticketNumber; long recNumL = 0L; string errText; if (!CouchDbUtils.AddPawnDocument(dA, cC, cds.UserName, ref pDoc, out errText)) { if (FileLogger.Instance.IsLogError) { FileLogger.Instance.logMessage(LogLevel.ERROR, this, "Could not store Layaway Contract in document storage: {0} - FileName: {1}", errText, reportObject.ReportTempFileFullName); } BasicExceptionHandler.Instance.AddException( "Could not store Layaway Contract in document storage", new ApplicationException("Could not store receipt in document storage: " + errText)); } }
public ShowForm DescribeMerchChargeOnBlock( Form parentForm, NavBox.NavBoxActionFired fxn, DesktopSession desktopSession) { var descMerchFrm = new DescribeMerchandise(desktopSession, CurrentContext.AUDITCHARGEON); return(this.createShowFormBlock( ValidFormBlockTypes.None, parentForm, descMerchFrm, descMerchFrm.NavControlBox, fxn, true)); }
public void TearDown() { // Close the application and delete the driver //if (WindowsDriver != null) //{ // WindowsDriver.Quit(); // WindowsDriver = null; //} WindowsDriver.Quit(); DesktopSession.Quit(); CalculatorSession.Quit(); //Kill process Process.Kill(); }
private object canLoadLoanKeys(object data) { DesktopSession cds = GlobalDataAccessor.Instance.DesktopSession; //Ensure we have an active customer before allowing //the loan keys call if (cds.ActiveCustomer != null && !string.IsNullOrEmpty(cds.ActiveCustomer.CustomerNumber)) { this.customerNumber = cds.ActiveCustomer.CustomerNumber; //cds.L return(true); } return(false); }