private void OnBtnClick_board_modify(object sender, RoutedEventArgs e) { Button btn = (Button)sender; //MessageBox.Show("modify : "+ btn.Tag); int currIdx = Int32.Parse(btn.Tag.ToString()); ContentItem currItem = (ContentItem)listSubProjects.Items[currIdx]; var rushContentWindow = new RushTicketContent(currItem.Title, false); rushContentWindow.Owner = this; if (rushContentWindow.ShowDialog() == false) { // 창 닫음 if (rushContentWindow.pathForDelete != "") { try { System.Threading.Thread.Sleep(550); Directory.Delete(rushContentWindow.pathForDelete, true); } catch (System.Exception ex) { MessageBox.Show(ex.ToString()); } } RefreshFolderList(); //MessageBox.Show("modify"); //RefreshFolderList(); } }
private void btn_newBoard_Click(object sender, RoutedEventArgs e) { var rushContentWindow = new RushTicketContent("", true); rushContentWindow.Owner = this; rushContentWindow.ShowDialog(); RefreshFolderList(); //if (rushContentWindow.ShowDialog() == false) //{ // RefreshFolderList(); //} }