示例#1
0
        private void leModoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            REPZPM_DLL.Retorno = REPZPM_DLL.DLLREP_LeModo(REPZPM_DLL.Handle);

            if (REPZPM_DLL.Retorno == 1)
            {
                MessageBox.Show("Modo IP configurado", "Sucesso", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                if (REPZPM_DLL.Retorno == 2)
                {
                    MessageBox.Show("Modo Arquivo configurado", "Sucesso", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    MessageBox.Show("Nenhum Modo configurado!", "Sucesso", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }