Essays.club - TCC, Modelos de monografias, Trabalhos de universidades, Ensaios, Bibliografias
Pesquisar

Trabalho programaçao comercial

Por:   •  27/2/2018  •  562 Palavras (3 Páginas)  •  229 Visualizações

Página 1 de 3

...

}

private void imConsultarDepartamento_Click(object sender, EventArgs e)

{

frmDepartamento frmcdepartamento = new frmDepartamento();

frmcdepartamento.ShowDialog();

}

private void imConsultarMaterial_Click(object sender, EventArgs e)

{

frmConsultarMaterial frmcmaterial = new frmConsultarMaterial();

frmcmaterial.ShowDialog();

}

private void imSair_Click(object sender, EventArgs e)

{

Close();

}

private void frmPrincipal_Load(object sender, EventArgs e)

{

}

}

}

Nossa próxima tela será a de Login:

[pic 2]

Sua codificação é a seguinte:

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

namespace XtiConsultas

{

public partial class frmLogin : Form

{

public frmLogin()

{

InitializeComponent();

}

private void lblUsuario_Click(object sender, EventArgs e)

{

}

private void frmLogin_Load(object sender, EventArgs e)

{

}

private void btnLogar_Click(object sender, EventArgs e)

{

}

private void btnCancelar_Click(object sender, EventArgs e)

{

}

}

}

Dando sequência no projeto, nossa próxima tela é a de usuários:

[pic 3]

Sua respectiva codificação:

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

namespace XtiConsultas.View

{

public partial class frmUsuario : Form

{

public frmUsuario()

{

InitializeComponent();

}

private void lblSenha_Click(object sender, EventArgs e)

{

}

private void lblNomeUsuario_Click(object sender, EventArgs e)

{

}

private void btnLimpar_Click(object sender, EventArgs e)

{

txtNome.Text = string.Empty;

txtDpto.Text = string.Empty;

txtCargo.Text = string.Empty;

txtLogin.Text = string.Empty;

txtSenha.Text = string.Empty;

txtConfirmaSenha.Text = string.Empty;

}

private void frmUsuario_Load(object sender, EventArgs e)

{

}

}

}

Após a efetuação do Login o usuário vai pesquisar se ele está na tela de seu departamento:

[pic 4]

E novamente a codificação da tela acima:

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using

...

Baixar como  txt (7.2 Kb)   pdf (59.5 Kb)   docx (20 Kb)  
Continuar por mais 2 páginas »
Disponível apenas no Essays.club