public override void ExecuteCommand()
{
- if (Parameters == null)
+ if (string.IsNullOrEmpty(BugID))
{
Say("Please provide a valid bug number.");
}
public override void ExecuteCommand()
{
- if (Text == null)
+ if (string.IsNullOrEmpty(Text))
{
Say("Please provide a valid HRESULT value.");
}
public override void ExecuteCommand()
{
- if (Text == null)
+ if (string.IsNullOrEmpty(Text))
{
Say("Please provide a valid NTSTATUS value.");
}
public override void ExecuteCommand()
{
- if (WMText == null)
+ if (string.IsNullOrEmpty(WMText))
{
Say("Please provide a valid window message value or name.");
public override void ExecuteCommand()
{
- if (Text == null)
+ if (string.IsNullOrEmpty(Text))
{
Say("Please provide a valid System Error Code value.");
}
[Command("help", Help = "!help or !help -name:[CommandName]", Description = "Shows this help , type 'help -name:[CommandName]'")]
public class HelpCommand : Command
{
- private string m_CommandName = null;
-
public HelpCommand()
{
}
public override void ExecuteCommand()
{
- if (CommandName == null)
+ if (string.IsNullOrEmpty(CommandName))
{
Say("I support the following commands:");