Пример #1
0
        public override PluginReturns Run(PluginArgument arg)
        {
            bool resolveDirAdded = false;
            try
            {
                resolveDirAdded = arg.Host.AddAssemblyResolveDir(arg.SourceDir);
                frmFileDisassembler frm = new frmFileDisassembler(arg.Host, arg.Rows, arg.SourceDir);
                frm.ShowDialog();
            }
            catch
            {
                throw;
            }
            finally
            {
                if(resolveDirAdded)
                    arg.Host.RemoveAssemblyResolveDir(arg.SourceDir);
            }

            return PluginReturns.None;
        }
        public override PluginReturns Run(PluginArgument arg)
        {
            bool resolveDirAdded = false;

            try
            {
                resolveDirAdded = arg.Host.AddAssemblyResolveDir(arg.SourceDir);
                frmFileDisassembler frm = new frmFileDisassembler(arg.Host, arg.Rows, arg.SourceDir);
                frm.ShowDialog();
            }
            catch
            {
                throw;
            }
            finally
            {
                if (resolveDirAdded)
                {
                    arg.Host.RemoveAssemblyResolveDir(arg.SourceDir);
                }
            }

            return(PluginReturns.None);
        }