private void HandleEvent_NewEntryAdded(Event_NewEntryAdded e) { DBEntityType entityType = e.GetEntityType(); if (entityType == DBEntityType.CUSTOMER) { m_Controller.InitializeComboBox_CustomerName(); } }
private void HandleEvent_EntryUpdated(Event_EntryUpdated e) { DBEntityType entityType = e.GetEntityType(); if (entityType == DBEntityType.PRODUCT) { UpdateProductInTable(e.GetID()); } }
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(); } }
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); } }
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); } }
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); } }
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); } }
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; }
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)); }
public override object Get(DBEntityType type, KeyValuePair <string, object> attribute) { //return m_Controllers[type].Get(type, attribute); throw new NotImplementedException(); }
public Event_EntryUpdated(DBEntityType entityType, int ID) { m_EntityType = entityType; m_ID = ID; }
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);