Example #1
0
        private void resultsDataGridView_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (resultsDataGridView.SelectedRows.Count > 0)
            {
                var row = resultsDataGridView.SelectedRows[0];
                var res = _list[row.Index];

                if (res is HubSearchResult)
                {
                    var hsr = (HubSearchResult)res;
                    _client.StartFile(hsr.Magnet);
                }

                if (res is WebSearchResult)
                {
                    var dsres = (WebSearchResult)res;
                    ShellHelper.Start(dsres.ReleaseUrl);
                }
            }
        }
Example #2
0
 private void открытьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _client.StartFile(FromMenu(sender).Magnet);
 }