Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            EngineProject  Funcion     = new EngineProject();
            EngineHttp     FuncionHttp = new EngineHttp();
            EngineTool     Tool        = new EngineTool();
            EngineProcesor Proceso     = new EngineProcesor(FuncionHttp, Funcion, Tool);

            if (string.IsNullOrEmpty(txtName.Text) || string.IsNullOrEmpty(txtRef.Text) || string.IsNullOrEmpty(txtEmail.Text) || string.IsNullOrEmpty(txtDevice.Text) || string.IsNullOrEmpty(txtTlf.Text))
            {
                MessageBox.Show("Todos los campos son requeridos", "INFORMACION DEL SISTEMA", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            if (!Tool.EmailEsValido(txtEmail.Text))
            {
                MessageBox.Show("Email no valido", "INFORMACION DEL SISTEMA", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            Proceso.Company(txtName.Text, txtEmail.Text, txtRef.Text, txtTlf.Text, txtDevice.Text);

            /*txtName.Text = string.Empty;
             * txtEmail.Text = string.Empty;
             * txtRef.Text = string.Empty;
             * txtTlf.Text = string.Empty;
             * txtDevice.Text = string.Empty;*/
        }
Exemplo n.º 2
0
        private void UpdatePersonFoto()
        {
            var           tool    = new EngineTool();
            var           Funcion = new EngineHttp();
            EngineProject project = new EngineProject();

            project.UpdatePersonFoto(tool, Funcion);
        }