Exemplo n.º 1
0
        private void btnProtect_Click(object sender, EventArgs e)
        {
            ProtectionOptions options = new ProtectionOptions()
            {
                AddDllLoader = chkAddLoader.Checked
            };

            if (!redirector.Protect(options))
            {
                MessageBox.Show(this, redirector.Exception.Message);
            }
            else
            {
                MessageBox.Show(this, "File protected");
            }

            redirector     = null;
            gpMain.Enabled = false;
        }