Solved! Go to Solution.
protected override void OnUpdate()
{
Enabled = true; //Change this to evaluate a statement instead of always returning true
}
public override bool Enabled
{
get
{
return true; //Change this to evaluate a statement instead of always returning true
}
}
Enabled = frmMyForm.OnlyInstance != null && frmMyForm.OnlyInstance.Visible;
protected override void OnUpdate()
{
Enabled = true; //Change this to evaluate a statement instead of always returning true
}
public override bool Enabled
{
get
{
return true; //Change this to evaluate a statement instead of always returning true
}
}
Enabled = frmMyForm.OnlyInstance != null && frmMyForm.OnlyInstance.Visible;