コード例 #1
0
ファイル: dlgApostila.cs プロジェクト: jairxpereira/gameprog
        private void btnSalvarConfig_Click(object sender, EventArgs e)
        {
            ApostilaConfig config = new ApostilaConfig();

            config.capitulo   = txtCapitulo.Text;
            config.objetivo   = txtObjetivo.Text;
            config.prjExemplo = txtPrj_Exemplo.Text;
            config.topico     = txtTopico.Text;
            config.cursotec   = txtCursoTec.Text;
            config.salvar("apostila.bin");
        }
コード例 #2
0
ファイル: dlgApostila.cs プロジェクト: jairxpereira/gameprog
        private void btnCarregarConfig_Click(object sender, EventArgs e)
        {
            ApostilaConfig config = new ApostilaConfig();

            config = config.carregar("apostila.bin");

            if (config == null)
            {
                return;
            }


            txtCapitulo.Text    = config.capitulo;
            txtObjetivo.Text    = config.objetivo;
            txtPrj_Exemplo.Text = config.prjExemplo;
            txtTopico.Text      = config.topico;
            txtCursoTec.Text    = config.cursotec;


            btnDefault_Click(sender, e);
        }