private bool DoExec(string commandName, vsCommandExecOption executeOption)
{
if (executeOption == vsCommandExecOption.vsCommandExecOptionDoDefault)
{
if (commandName == _addIn.ProgID + "." + CmdLogin)
{
if (!_controller.Connected)
{
_controller.Connect(true);
}
return true;
}
if (commandName == _addIn.ProgID + "." + CmdLogout)
{
if (_controller.Connected)
{
_controller.Disconnect();
}
return true;
}
if (commandName == _addIn.ProgID + "." + CmdToDoList)
{
_toolWindow.Visible = true;
return true;
}
if (commandName == _addIn.ProgID + "." + CmdOptions)
{
_controller.Options();
return true;
}
}
return false;
}