コード例 #1
0
        private void dataload_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            Dictionary <string, object> dic = new Dictionary <string, object>();
            clsSqlHelper objDB = new clsSqlHelper(ConfigurationManager.ConnectionStrings["CN"].ConnectionString);

            if (e.RowIndex >= 0 && dataload.Columns.Contains("Booksview") && e.ColumnIndex == dataload.Columns["Booksview"].Index)
            {
                Book_ID = dataload.CurrentRow.Cells["Tran_ID"].Value.ToString();
                dic.Add("@fk_Req_Id", Book_ID);
                Bookapply(dic, objDB);
            }

            else if (e.RowIndex >= 0 && dataload.Columns.Contains("Details") && e.ColumnIndex == dataload.Columns["Details"].Index)
            {
                btnhidesearch.Visible = false;
                detail(int.Parse(dataload.CurrentRow.Cells["Client_ID"].Value.ToString()));
                firstpanel.Visible  = false;
                dataload.Visible    = false;
                secondpanel.Visible = false;
                thirdpanel.Visible  = true;
            }
            else if (e.RowIndex >= 0 && dataload.Columns.Contains("picture") && e.ColumnIndex == dataload.Columns["picture"].Index)
            {
                bookdetail.Enabled = false;
                int     values = int.Parse(dataload.CurrentRow.Cells["Client_ID"].Value.ToString());
                picture o      = new picture(values);
                o.Show();
            }
        }
コード例 #2
0
ファイル: home.cs プロジェクト: satish2111/websitebackend
        private void viewattachment_Click(object sender, EventArgs e)
        {
            formvalue.Text = "View Attachment";
            if (this.ActiveMdiChild != null)
            {
                this.ActiveMdiChild.Close();
            }
            picture o = new picture(0);

            o.MdiParent = this;
            o.Show();
        }