private void UserControl_Loaded(object sender, RoutedEventArgs e) { try { preferenceIsActive = preferenceManagerImpl.getPreference("isActiveSecureAuthentication"); preferenceTime = preferenceManagerImpl.getPreference("secureAuthenticationTime"); checkBox_isActive.IsChecked = preferenceIsActive.Value == "1" ? true : false; textBox_time.Text = preferenceTime.Value; } catch (Exception) { } }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { try { defaultSelect = preferenceManagerImpl.getPreference("defaultItemSelectMode"); codeGenerateBy = preferenceManagerImpl.getPreference("itemCodeGenerateBy"); radioButton_name.IsChecked = defaultSelect.Value == "0" ? true : false; radioButton_code.IsChecked = defaultSelect.Value == "1" ? true : false; radioButton_first.IsChecked = codeGenerateBy.Value == "f" ? true : false; radioButton_last.IsChecked = codeGenerateBy.Value == "l" ? true : false; } catch (Exception) { } }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { try { preference = preferenceManagerImpl.getPreference("autoBackupLocation"); textBox_location.Text = preference.Value.Replace("\\\\", "\\"); } catch (Exception) { } }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { try { UIComboBox.loadStocks(comboBox_defaultBuyingStock, "b"); UIComboBox.loadStocks(comboBox_defaultSellingStock, "s"); UIComboBox.loadStocks(comboBox_defaultCompanyReturnStock, ""); buyingStock = preferenceManagerImpl.getPreference("defaultBuyingStock"); sellingStock = preferenceManagerImpl.getPreference("defaultSellingStock"); companyReturnStock = preferenceManagerImpl.getPreference("defaultCompanyReturnStock"); comboBox_defaultBuyingStock.SelectedValue = Convert.ToInt32(buyingStock.Value); comboBox_defaultSellingStock.SelectedValue = Convert.ToInt32(sellingStock.Value); comboBox_defaultCompanyReturnStock.SelectedValue = Convert.ToInt32(companyReturnStock.Value); } catch (Exception) { } }
public void setImpl(object obj) { try { preferenceManagerImpl = ( PreferenceManagerImpl )obj; dic = new Dictionary <String, Preference>(); dic.Add("sellingInvoicePrint_displayLineDiscount", preferenceManagerImpl.getPreference("sellingInvoicePrint_displayLineDiscount")); dic.Add("sellingInvoicePrint_showDiscountOrOurPrice", preferenceManagerImpl.getPreference("sellingInvoicePrint_showDiscountOrOurPrice")); dic.Add("sellingInvoicePrint_numberOfCopiesOfCreditBill", preferenceManagerImpl.getPreference("sellingInvoicePrint_numberOfCopiesOfCreditBill")); dic.Add("sellingInvoicePrint_thankyouText", preferenceManagerImpl.getPreference("sellingInvoicePrint_thankyouText")); dic.Add("sellingInvoicePrint_message", preferenceManagerImpl.getPreference("sellingInvoicePrint_message")); dic.Add("sellingInvoicePrint_language", preferenceManagerImpl.getPreference("sellingInvoicePrint_language")); dic.Add("sellingInvoicePrint_invoiceNumber_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_invoiceNumber_customLanguageText")); dic.Add("sellingInvoicePrint_creditInvoice_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_creditInvoice_customLanguageText")); dic.Add("sellingInvoicePrint_printedPrice_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_printedPrice_customLanguageText")); dic.Add("sellingInvoicePrint_ourPrice_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_ourPrice_customLanguageText")); dic.Add("sellingInvoicePrint_discount_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_discount_customLanguageText")); dic.Add("sellingInvoicePrint_quantity_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_quantity_customLanguageText")); dic.Add("sellingInvoicePrint_lineTotal_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_lineTotal_customLanguageText")); dic.Add("sellingInvoicePrint_subTotal_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_subTotal_customLanguageText")); dic.Add("sellingInvoicePrint_billDiscount_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_billDiscount_customLanguageText")); dic.Add("sellingInvoicePrint_totalReturn_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_totalReturn_customLanguageText")); dic.Add("sellingInvoicePrint_netTotal_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_netTotal_customLanguageText")); dic.Add("sellingInvoicePrint_givenMoney_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_givenMoney_customLanguageText")); dic.Add("sellingInvoicePrint_balance_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_balance_customLanguageText")); dic.Add("sellingInvoicePrint_totalDiscount_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_totalDiscount_customLanguageText")); dic.Add("sellingInvoicePrint_userName_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_userName_customLanguageText")); dic.Add("sellingInvoicePrint_customerName_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_customerName_customLanguageText")); dic.Add("sellingInvoicePrint_totalPayment_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_totalPayment_customLanguageText")); dic.Add("sellingInvoicePrint_numberOfItems_customLanguageText", preferenceManagerImpl.getPreference("sellingInvoicePrint_numberOfItems_customLanguageText")); dic.Add("sellingInvoicePrinterSize", preferenceManagerImpl.getPreference("sellingInvoicePrinterSize")); } catch (Exception) { } }