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 historyContentWindow = new HistoryContent(currItem.Title, false); historyContentWindow.Owner = this; if (historyContentWindow.ShowDialog() == false) { if (historyContentWindow.pathForDelete != "") { try { System.Threading.Thread.Sleep(50); Directory.Delete(historyContentWindow.pathForDelete, true); System.Threading.Thread.Sleep(50); RefreshFolderList(); } catch (System.Exception ex) { MessageBox.Show(ex.ToString()); } } //MessageBox.Show("modify"); //RefreshFolderList(); } }
private void btn_newBoard_Click(object sender, RoutedEventArgs e) { var historyContentWindow = new HistoryContent("", true); historyContentWindow.Owner = this; historyContentWindow.ShowDialog(); RefreshFolderList(); //if (rushContentWindow.ShowDialog() == false) //{ // RefreshFolderList(); //} }