Beispiel #1
0
        private void btnUpload_Click(object sender, EventArgs e)
        {
            txtPictureBinding(txtPictureLink1);
            txtPictureBinding(txtPictureLink2);
            txtPictureBinding(txtPictureLink3);
            txtPictureBinding(txtPictureLink4);
            txtPictureBinding(txtPictureLink5);

            UploadBoardVO      item = new UploadBoardVO();
            TrainmuseumService ts   = new TrainmuseumService();

            item.boardTitle    = txtTitle.Text;
            item.userID        = lblWriter.Text;
            item.boardContents = txtContent.Text;
            item.boardType     = cbxBoardType.SelectedValue.ToString();
            item.photoFile1    = txtPictureLink1.Text;
            item.photoFile2    = txtPictureLink2.Text;
            item.photoFile3    = txtPictureLink3.Text;
            item.photoFile4    = txtPictureLink4.Text;
            item.photoFile5    = txtPictureLink5.Text;


            ts.InsertBoard(item);

            MessageBox.Show("업로드가 완료되었습니다.");
            ts.BoardSelectAll();
            this.Close();
        }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            isMuseum = false;
            trvMenu.Nodes.Clear();
            listView1.Items.Clear();
            dtAll2 = ts.BoardSelectAll();
            BoardPictureView(dtAll2, listView1);
            btnInsertMuseum.Visible = false;

            if (Memdac.IsMember(lblmember.Text) == true)
            {
                btnInsertBoard.Visible = true;
            }
            else
            {
                btnInsertBoard.Visible = false;
            }
            DataTable dt = ld.InfoLoadData();

            BoardTreeView(dt);
        }