Esempio n. 1
0
        private void HandleEvent_NewEntryAdded(Event_NewEntryAdded e)
        {
            DBEntityType entityType = e.GetEntityType();

            if (entityType == DBEntityType.CUSTOMER)
            {
                m_Controller.InitializeComboBox_CustomerName();
            }
        }
Esempio n. 2
0
        private void HandleEvent_EntryUpdated(Event_EntryUpdated e)
        {
            DBEntityType entityType = e.GetEntityType();

            if (entityType == DBEntityType.PRODUCT)
            {
                UpdateProductInTable(e.GetID());
            }
        }
Esempio n. 3
0
        private void HandleEvent_NewEntryAdded(Event_NewEntryAdded e)
        {
            DBEntityType entityType = e.GetEntityType();

            if (entityType == DBEntityType.VENDOR)
            {
                AddVendorToTable(e.GetID());
            }
        }
        private void HandleEvent_EntryUpdated(Event_EntryUpdated e)
        {
            DBEntityType entityType = e.GetEntityType();

            if (entityType == DBEntityType.VENDOR)
            {
                m_Controller.InitializeComboBox_VendorName();
            }
        }
Esempio n. 5
0
        private void HandleEvent_NewEntryAdded(Event_NewEntryAdded e)
        {
            DBEntityType entityType = e.GetEntityType();

            if (entityType == DBEntityType.CATEGORY)
            {
                var category = DataService.GetCategoryDataController().Get(e.GetID());
                m_Controller.AddCategoryToTable(category);
            }
        }
Esempio n. 6
0
        private void HandleEvent_EntryUpdated(Event_EntryUpdated e)
        {
            DBEntityType entityType = e.GetEntityType();

            if (entityType == DBEntityType.VENDOR)
            {
                VendorGet vendor = DataService.GetVendorDataController().Get(e.GetID());
                m_Controller.UpdateTableEntry_Vendor(vendor);
            }
        }
Esempio n. 7
0
        private void HandleEvent_EntryUpdated(Event_EntryUpdated e)
        {
            DBEntityType entityType = e.GetEntityType();

            if (entityType == DBEntityType.CUSTOMER)
            {
                CustomerGet customer = DataService.GetCustomerDataController().Get(e.GetID());
                m_Controller.UpdateCustomerInTable(customer);
            }
        }
        private void HandleEvent_NewEntryAdded(Event_NewEntryAdded e)
        {
            DBEntityType entityType = e.GetEntityType();

            if (entityType == DBEntityType.VENDOR)
            {
                VendorGet vendor = DataService.GetVendorDataController().Get(e.GetID());
                m_Controller.AddToComboBox_VendorName(vendor.CompanyName);
            }
        }
        private void HandleEvent_NewEntryAdded(Event_NewEntryAdded e)
        {
            DBEntityType entityType = e.GetEntityType();
            int          id         = e.GetID();

            if (entityType == DBEntityType.CATEGORY)
            {
                CategoryGet category = DataService.GetCategoryDataController().Get(id);
                m_Controller.AddCategoryToComboBox(category);
            }
        }
Esempio n. 10
0
        private void HandleEvent_NewEntryAdded(Event_NewEntryAdded e)
        {
            DBEntityType entityType = e.GetEntityType();
            int          id         = e.GetID();

            if (entityType == DBEntityType.CUSTOMER)
            {
                CustomerGet customer = DataService.GetCustomerDataController().Get(id);
                m_Controller.AddCustomerToTable(customer);
            }
            else if (entityType == DBEntityType.TRANSACTION)
            {
                TransactionGet transaction = DataService.GetTransactionDataController().Get(id);
                m_Controller.UpdateCustomerInTable(transaction.Customer);
            }
        }
Esempio n. 11
0
        private void HandleEvent_NewEntryAdded(Event_NewEntryAdded e)
        {
            DBEntityType entityType = e.GetEntityType();

            if (entityType == DBEntityType.PRODUCT)
            {
                AddProductToTable(e.GetID());
            }
            else if (entityType == DBEntityType.PURCHASE)
            {
                OnPurchaseAdded(e.GetID());
            }
            else if (entityType == DBEntityType.TRANSACTION)
            {
                OnTransactionAdded(e.GetID());
            }
        }
 public Event_NewEntryAdded(DBEntityType entityType, int ID)
 {
     m_EntityType = entityType;
     m_ID         = ID;
 }
Esempio n. 13
0
 public override object Get(DBEntityType type, int id)
 {
     //return m_Controllers[type].Get(id);
     throw new NotImplementedException();
 }
 public override object Put(DBEntityType type, object obj)
 {
     return(m_Database.Put(type, obj));
 }
 public override object Get(DBEntityType type, KeyValuePair <string, object> attribute)
 {
     return(m_Database.Get(type, attribute));
 }
 public override object Get(DBEntityType type, int id)
 {
     return(m_Database.Get(type, id));
 }
 public override object GetAll(DBEntityType type)
 {
     return(m_Database.GetAll(type));
 }
Esempio n. 18
0
 public override object Get(DBEntityType type, KeyValuePair <string, object> attribute)
 {
     //return m_Controllers[type].Get(type, attribute);
     throw new NotImplementedException();
 }
Esempio n. 19
0
 public Event_EntryUpdated(DBEntityType entityType, int ID)
 {
     m_EntityType = entityType;
     m_ID         = ID;
 }
Esempio n. 20
0
 public override object Put(DBEntityType type, object obj)
 {
     //return m_Controllers[type].Put(obj);
     throw new NotImplementedException();
 }
 public abstract object Put(DBEntityType type, object obj);
 public abstract object Get(DBEntityType type, KeyValuePair <string, object> attribute);
 public abstract object Get(DBEntityType type, int id);
 public abstract object GetAll(DBEntityType type);