Exemplo n.º 1
0
        public static PersistenceManager GetInstance()
        {
            if (instance == null)
                instance = new PersistenceManager();

            return instance;
        }
Exemplo n.º 2
0
        private PaymentController()
        {
            pm = PersistenceManager.GetInstance();

            paymentsView = pm.GetPaymentsView();
            customersView = pm.GetCustomersView();

            paymentsView.AllowDelete = false;
            paymentsView.AllowEdit = true;
            paymentsView.AllowNew = false;
            customersView.AllowDelete = false;
            customersView.AllowEdit = true;
            customersView.AllowNew = false;
        }