@Azim
Thankyou for the reply sir.
when Im trying to update my code by calling 2nd "Execute" method inside 1st "Execute" Method, as below:
public class SptCommand:DefaultPlugInCommand
{
public SptCommand(PlugInCommandDescriptor poPlugInCommandDescriptor) : base(poPlugInCommandDescriptor)
{
}
public override void Execute(IPluginHost poHost, IList pcTargets, IWin32Window poParentWindow = null)
{
if (psitrans.PIF.Message.ShowYesNo(string.Format(MyAssembly.Configuration.ConfirmationText, pcTargets)))
{
SptCommand obj=new SptCommand(); // Updated code
obj.Execute();
}
}
public override void Execute(IPluginHost poHost, object poTarget, IWin32Window poParentWindow = null)
{
base.Execute(poHost, poTarget, poParentWindow);
}
}
It is giving me error(red line) at "bold area" in below lines:
1) SptCommand obj=new SptCommand();
Error- constructor 'SptCommand' has 1 parameter but is invoked with 0 argument
2) obj.Execute();
Error-
cannot resolve method 'Execute()' candidates are:
void Execute(IPluginHost poHost, object poTarget, IWin32Window poParentWindow = null)
void Execute(IPluginHost poHost, IList pcTargets, IWin32Window poParentWindow = null)
please refer my posted code and suggest some solution in my code.
Please reply