Tp.Integration.Ide.VisualStudio.Connect.DoExec C# (CSharp) Method

DoExec() private method

private DoExec ( string commandName, vsCommandExecOption executeOption ) : bool
commandName string
executeOption vsCommandExecOption
return bool
		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;
		}