public void RibbonButtonClick(IRC ctrl) { if (Authentication.LoggedIn) { ThisAddIn.CreateTaskPane(ctrl.Tag[0], _host); } else if (Globals.ThisAddIn.Application.InputBox(Resources.NeedHostname, Resources.HostnameCaps) is string hostname && Authentication.Login(hostname)) { ThisAddIn.CreateTaskPane(ctrl.Tag[0], _host = hostname); } }
public void BackstageButtonClick(IRC ctrl) => ThisAddIn.CreateTaskPane(ctrl.Tag[0], _host);