Exemple #1
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            string command = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
            int    tag_Id  = Convert.ToInt32(dataGridView1.Rows[e.RowIndex].Cells[1].Value);

            if (command == "Tagged Article")
            {
                try
                {
                    string      qry   = "select Tag from [tbl_Tags] where Tag_Id =" + tag_Id;
                    DatabaseCon dbcon = new DatabaseCon();
                    dbcon.Query = qry;
                    DataTable dt  = dbcon.GetData();
                    string    Tag = dt.Rows[0]["Tag"].ToString();

                    viewAllReferences var = new viewAllReferences();
                    var.Tag = Tag;
                    var.Show();
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }
Exemple #2
0
        private void viewAllToolStripMenuItem_Click(object sender, EventArgs e)
        {
            viewAllReferences var = new viewAllReferences();

            var.Show();
        }