示例#1
0
 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);
     }
 }
示例#2
0
 public void BackstageButtonClick(IRC ctrl) => ThisAddIn.CreateTaskPane(ctrl.Tag[0], _host);