예제 #1
0
        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 festivalContentWindow = new FestivalContent(currItem.Title, false);

            festivalContentWindow.Owner = this;
            if (festivalContentWindow.ShowDialog() == false)
            {
                if (festivalContentWindow.pathForDelete != "")
                {
                    try
                    {
                        System.Threading.Thread.Sleep(50);
                        Directory.Delete(festivalContentWindow.pathForDelete, true);
                        System.Threading.Thread.Sleep(50);
                        RefreshFolderList();
                    }
                    catch (System.Exception ex)
                    {
                        MessageBox.Show(ex.ToString());
                    }
                }
                //MessageBox.Show("modify");
                //RefreshFolderList();
            }
        }
예제 #2
0
        private void btn_newBoard_Click(object sender, RoutedEventArgs e)
        {
            var festivalContentWindow = new FestivalContent("", true);

            festivalContentWindow.Owner = this;

            festivalContentWindow.ShowDialog();



            RefreshFolderList();
            //if (rushContentWindow.ShowDialog() == false)
            //{
            //    RefreshFolderList();
            //}
        }