GetSelectedItem() public method

public GetSelectedItem ( ) : string
return string
Example #1
0
 string IMainView.ShowSearchForm(IEnumerable <string> searchItems)
 {
     using (frmAddHook form = new frmAddHook(searchItems))
     {
         if (form.ShowDialog() == DialogResult.OK)
         {
             return(form.GetSelectedItem());
         }
     }
     return(null);
 }
Example #2
0
 string IMainView.ShowSearchForm(IEnumerable<string> searchItems)
 {
     using (frmAddHook form = new frmAddHook(searchItems))
     {
         if (form.ShowDialog() == DialogResult.OK)
         {
             return form.GetSelectedItem();
         }
     }
     return null;
 }