void _NotFound(object button, string sFind) { var s = "The list is empty"; if (sFind.Length > 0) { s = "The list contains 0 items containing " + sFind; } AOsd.ShowText(s, 3, _OsdXY(button)); }
static bool _WaitForHotkey(string info) { using (AOsd.ShowText(info, Timeout.Infinite, icon: SystemIcons.Information)) { //try { AKeys.WaitForHotkey(0, KKey.F3); } //catch(AuException) { ADialog.ShowError("Failed to register hotkey F3"); return false; } AKeys.WaitForKey(0, KKey.F3, up: true, block: true); } return(true); }
void _Added(object button, List <string> metaList) { AOsd.ShowText(string.Join("\r\n", metaList) + "\r\n\r\nFinally click OK to save.", 5, _OsdXY(button)); }