private void Write_Board(object sender, RoutedEventArgs e) { string mainlabel = "게시판 글쓰기"; StudentBoardConnet writeboard = new StudentBoardConnet(service, name, id, mainlabel, 3); writeboard.ShowDialog(); }
private void SelectList_Click(object sender, SelectionChangedEventArgs e) { if (boardlist.SelectedIndex != -1) { var selectindex = (boardlist.SelectedItem as BoardInfo).Number - 1; string str = studentboardlist[selectindex].ToString(); string[] submistlist = new string[6]; submistlist = str.Split('\a'); string mainlabel = "게시물 확인"; StudentBoardConnet boardcheck = new StudentBoardConnet(service, submistlist, mainlabel, id, 3); boardcheck.DataContext = boardlist.SelectedItem; boardcheck.ShowDialog(); service.ReadStudentBoardWrite(id, submistlist[0], submistlist[5]); // 읽은파일 기록 표시 } boardlist.SelectedIndex = -1; }