Ejemplo n.º 1
0
        private void dgUserKey_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgUserKey.Columns[e.ColumnIndex].HeaderText == "��ַ")
            {
                string url = dgUserKey.CurrentCell.Value.ToString();
                System.Diagnostics.Process.Start(url);
                ShowInf showForm = new ShowInf("���ڴ���ҳ�����Ե�...");
                showForm.Show();
                return;
            }

            if (dgUserKey.Columns[e.ColumnIndex].HeaderText == "�û���")
            {
                string name = dgUserKey.CurrentCell.Value.ToString();
                Clipboard.SetText(name);
                ShowInf showForm = new ShowInf("�û����Ѹ��Ƶ�������");
                showForm.Show();
                return;
            }

            if (dgUserKey.Columns[e.ColumnIndex].HeaderText == "����")
            {
                string key = dgUserKey.CurrentCell.Value.ToString();
                Clipboard.SetText(key);
                ShowInf showForm = new ShowInf("�����Ѹ��Ƶ�������");
                showForm.Show();
                return;
            }
        }