public void Start(HandlerItem item, string curtxt) { if (item == null) { TryStart(curtxt); return; } try { item.handler.Start(item.text); } catch (HandlerUseShellExecException e) { if (string.IsNullOrEmpty(e.runwhat)) TryStart(item.text); else TryStart(e.runwhat); } catch { TryStart(item.text); //fallback! } }
private void SaveSelectedItem() { selItem = (HandlerItem)lbResults.SelectedItem; }