コード例 #1
0
 public static FRM_Config Instance()
 {
     if (instance == null)
     {
         instance = new FRM_Config();
     }
     return(instance);
 }
コード例 #2
0
 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();
 }
コード例 #3
0
        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();
        }
コード例 #4
0
 private void FRM_Config_FormClosed(object sender, FormClosedEventArgs e)
 {
     instance = null;
 }