Skip to content

Instantly share code, notes, and snippets.

@lucasemanuel
Created June 11, 2019 19:01
Show Gist options
  • Save lucasemanuel/c49057883c68612d27382f959d944a52 to your computer and use it in GitHub Desktop.
Save lucasemanuel/c49057883c68612d27382f959d944a52 to your computer and use it in GitHub Desktop.
private int idProjeto;
public FrmProjeto(int idProjeto)
{
InitializeComponent();
abrirTelaMembros();
//Seta o id do projeto selecionado do form FrmProjetos
this.idProjeto = idProjeto;
}
private void abrirTelaMembros()
{
SidePanel.Height = btnAddMembros.Height;
SidePanel.Top = btnAddMembros.Top;
addMembrosControl1.BringToFront();
//Seta o idProjeto no user control addMembrosControl:
addMembrosControl1.IdProjeto = idProjeto;
}
public int IdProjeto { get => IdProjeto;}
private void btnAddMembros_Click(object sender, EventArgs e)
{
abrirTelaMembros();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment