private void btnAdd_Click(object sender, EventArgs e) { try { var lRssSource = new RssSourceDTO(); AgregarModificarFuenteRSS ventana = new AgregarModificarFuenteRSS(); this.dgvRSSSource.Add(ventana, lRssSource); iController.AddSource(lRssSource); } catch (Exception) { throw; } }
private void dgvRSSSource_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { try { DataGridViewRow row = dgvRSSSource.CurrentRow; var lRssSource = dgvRSSSource.GetItem(row.Index); AgregarModificarFuenteRSS ventana = new AgregarModificarFuenteRSS(); this.dgvRSSSource.Modify(ventana, lRssSource); iController.ModifySource(lRssSource); } catch (Exception) { throw; } }
private void btnAdd_Click(object sender, EventArgs e) { try { using (var controller = this.iFactory.GetController <ManageSourceHandler>()) { RssSourceDTO lRssSource = new RssSourceDTO(); AgregarModificarFuenteRSS ventana = new AgregarModificarFuenteRSS(this.iFactory); if (this.dgvRSSSource.Add(ventana, lRssSource)) { controller.AddSource(lRssSource); this.CargarDataGrid(); } } } catch (Exception) { throw; } }
private void dgvRSSSource_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { try { using (var controller = this.iFactory.GetController <ManageSourceHandler>()) { DataGridViewRow row = dgvRSSSource.CurrentRow; RssSourceDTO lRssSource = dgvRSSSource.GetItem(row.Index); AgregarModificarFuenteRSS ventana = new AgregarModificarFuenteRSS(this.iFactory); if (this.dgvRSSSource.Modify(ventana, lRssSource)) { controller.ModifySource(lRssSource); this.CargarDataGrid(); } } } catch (Exception) { throw; } }