コード例 #1
0
 void IAddModifyViewForm.Add(IDTO pNewCampaign)
 {
     this.txtTitle.Text = String.Empty;
     this.txtDescription.Text = String.Empty;
     this.Text = "Agregar nueva Campaña";
     this.iOriginalCampaign = (CampaignDTO)pNewCampaign;
 }
コード例 #2
0
 void IAddModifyViewForm.Modify(IDTO pCampaign)
 {
     if (pCampaign == null)
     {
         throw new EntidadNulaException("La campaña indicada es nula");
         //TODO excepcion argumentexception creo
     }
     else
     {
         this.iOriginalCampaign = (CampaignDTO)pCampaign;
         this.txtTitle.Text = iOriginalCampaign.Name;
         this.txtDescription.Text = iOriginalCampaign.Description;
         this.Text = "Modificar Campaña";
     }
 }
コード例 #3
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            try
            {
                CampaignDTO campaign = new CampaignDTO();
                AgregarModificarCampaña ventana = new AgregarModificarCampaña();
                this.dgvCampaign.Add(ventana, campaign);
                iController.AddCampaign(campaign);
                this.CargarDataGrid();
            }
            catch (Exception)
            {

                throw;
            }   
        }
コード例 #4
0
        public CampaignDTO GetCampaign(int pId)
        {
            CampaignDTO lResult = new CampaignDTO();

            return lResult;
        }
コード例 #5
0
        //TODO: update

        public void DeleteCampaign(CampaignDTO pDto)
        {
        }
コード例 #6
0
 public void ModifyCampaign(CampaignDTO pDto) { }
コード例 #7
0
 public void AddCampaign(CampaignDTO pDto) { }
コード例 #8
0
 internal void DeleteCampaign(CampaignDTO campaign)
 {
     throw new NotImplementedException();
 }