示例#1
0
 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!
     }
 }
示例#2
0
 private void SaveSelectedItem()
 {
     selItem = (HandlerItem)lbResults.SelectedItem;
 }