コード例 #1
0
        public override PluginReturns Run(PluginArgument arg)
        {
            //if (arg.Rows == null || arg.Rows.Length < 2)
            //{
            //    SimpleMessage.ShowInfo("Please select two or more assemblies to merge.");
            //    return PluginReturns.None;
            //}

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

            return PluginReturns.None;
        }
コード例 #2
0
        public override PluginReturns Run(PluginArgument arg)
        {
            //if (arg.Rows == null || arg.Rows.Length < 2)
            //{
            //    SimpleMessage.ShowInfo("Please select two or more assemblies to merge.");
            //    return PluginReturns.None;
            //}

            bool resolveDirAdded = false;

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

            return(PluginReturns.None);
        }