public SettingsViewModel(BaseViewModel parent) { this.parent = parent; setting = SettingModel.getSetting(); // Check is setting exists if (setting == null) { setting = new SettingModel(); } }
public QuotePrint(QuoteModel quote) { InitializeComponent(); viewQuotePrint.DataContext = this; quoteMaterialList = QuoteMaterialModel.getQuoteMaterialList(quote.quoteId); customer = CustomerModel.getCustomer(quote.customer.customerId); setting = SettingModel.getSetting(); this.quote = quote; }