CSL.DataGridViewHandler.other_dv_CellClick C# (CSharp) Method

other_dv_CellClick() public method

public other_dv_CellClick ( object sender, System.Windows.Forms.DataGridViewCellEventArgs e ) : void
sender object
e System.Windows.Forms.DataGridViewCellEventArgs
return void
        void other_dv_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex >= 0 && e.RowIndex >= 0)
            {
                if (other_dv.Columns[e.ColumnIndex].Name.Equals("OpenWithClient"))
                {
                    uTorrentHandler.SendTorrentWithoutSavePath("others", (int)other_dv.Rows[e.RowIndex].Cells["OthersID"].Value);

                    IntPtr utorrentHandle = FindWindow("µTorrent4823Df041B09", "µTorrent 2.0.2");
                    SetForegroundWindow(utorrentHandle);
                    Thread.Sleep(300);
                    SendKeys.Send("^v");
                }
            }
        }