public void ShowWriteForm(IBoard board) { // 글쓰기 폼 보이기 if (!MainPivot.Items.Contains(writeArticlePivotItem)) { writeArticlePivotItem = new WriteArticlePivotItem(this, board); MainPivot.Items.Add(writeArticlePivotItem); } MainPivot.SelectedItem = writeArticlePivotItem; }
public void RemoveWriteForm() { if (writeArticlePivotItem == null) { return; } MainPivot.Items.Remove(writeArticlePivotItem); MainPivot.SelectedIndex = 0; writeArticlePivotItem = null; }