public void FireEditEntity(Domain.WorkingModel c) { if (ReadOnly) { return; } Domain.WorkingModel entity = c; if (entity == null) { entity = FocusedEntity; } if (entity != null) { WorkingModelForm countryform = new WorkingModelForm(entity); if (countryform.ShowDialog() == DialogResult.OK) { _listEntities.ResetItemById(entity.ID); } } }
public void FireNewEntity() { if (ReadOnly) { return; } if (Country == null) { return; } Domain.WorkingModel entity = new Domain.WorkingModel(); entity.CountryID = Country.ID; WorkingModelForm countryform = new WorkingModelForm(entity); if (countryform.ShowDialog() == DialogResult.OK) { _listEntities.Add((Domain.WorkingModel)countryform.Entity); UpdateBarButtonEnable(); } }
public void FireNewEntity() { if (ReadOnly) return; if (Country == null) return; Domain.WorkingModel entity = new Domain.WorkingModel(); entity.CountryID = Country.ID; WorkingModelForm countryform = new WorkingModelForm(entity); if (countryform.ShowDialog() == DialogResult.OK) { _listEntities.Add((Domain.WorkingModel)countryform.Entity); UpdateBarButtonEnable(); } }
public void FireEditEntity(Domain.WorkingModel c) { if (ReadOnly) return; Domain.WorkingModel entity = c; if (entity == null) entity = FocusedEntity; if (entity != null) { WorkingModelForm countryform = new WorkingModelForm(entity); if (countryform.ShowDialog() == DialogResult.OK) { _listEntities.ResetItemById(entity.ID); } } }