Exemplo n.º 1
0
        public SettingsViewModel(BaseViewModel parent)
        {
            this.parent = parent;

            setting = SettingModel.getSetting();

            // Check is setting exists
            if (setting == null)
            {
                setting = new SettingModel();
            }
        }
Exemplo n.º 2
0
        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;
        }