예제 #1
0
        public void ShowWriteForm(IBoard board)
        {
            // 글쓰기 폼 보이기
            if (!MainPivot.Items.Contains(writeArticlePivotItem))
            {
                writeArticlePivotItem = new WriteArticlePivotItem(this, board);
                MainPivot.Items.Add(writeArticlePivotItem);
            }

            MainPivot.SelectedItem = writeArticlePivotItem;
        }
예제 #2
0
        public void RemoveWriteForm()
        {
            if (writeArticlePivotItem == null)
            {
                return;
            }

            MainPivot.Items.Remove(writeArticlePivotItem);
            MainPivot.SelectedIndex = 0;

            writeArticlePivotItem = null;
        }