Exemplo n.º 1
0
        public DialogResult ShowDialog(IObfuscatedFile ofile, string newFilename)
        {
            // HACK
            var ofiletype = ofile.GetType();
            var ofield    = ofiletype.GetField("options", BindingFlags.NonPublic | BindingFlags.Instance);

            Debug.Assert(ofield != null, "Check De4Dot impl.");

            var options = (ObfuscatedFile.Options)ofield.GetValue(ofile);

            options.NewFilename = newFilename;
            BackgroundWorker.RunWorkerAsync(ofile);

            return(ShowDialog());
        }
		public DialogResult ShowDialog(IObfuscatedFile ofile, string newFilename)
		{
			// HACK
			var ofiletype = ofile.GetType();
			var ofield = ofiletype.GetField("options", BindingFlags.NonPublic | BindingFlags.Instance);

			Debug.Assert(ofield != null, "Check De4Dot impl.");

			var options = (ObfuscatedFile.Options) ofield.GetValue(ofile);
			options.NewFilename = newFilename;
			BackgroundWorker.RunWorkerAsync(ofile);

			return ShowDialog();
		}