public static FRM_Config Instance() { if (instance == null) { instance = new FRM_Config(); } return(instance); }
public FRM_EditarResp(FRM_Config frm_config, int idUser, ListView lstResponsaveis) { InitializeComponent(); form_config = frm_config; idUsuario = idUser; lstResponsavel = lstResponsaveis; txtNome.Enabled = false; carregarUser(idUsuario); carregarDepartamento(); }
public void mConfig_Click(object sender, EventArgs e) { for (int intIndex = Application.OpenForms.Count - 1; intIndex > 0; intIndex--) { if (Application.OpenForms[intIndex] != this) { Application.OpenForms[intIndex].Close(); } } FRM_Config form_config = FRM_Config.Instance(); form_config.MdiParent = this; form_config.Show(); }
private void FRM_Config_FormClosed(object sender, FormClosedEventArgs e) { instance = null; }