private void button_Add_Page_To_Selected_Category_Click(object sender, EventArgs e) { this.r_FacadeFormDiscoverMeManageLikedPages.CreateNewItem(string.Format(listBox_Liked_Pages.SelectedItem.ToString())); LikedPagesItem addNewItem = this.r_FacadeFormDiscoverMeManageLikedPages.m_LikedPagesItem; TreeNodeProxy selectedNode = treeView_Liked_Pages_Category.SelectedNode as TreeNodeProxy; if (selectedNode.Node is LikedPagesComposite) { (selectedNode.Node as LikedPagesComposite).OnAddPageComponent(addNewItem); } }
internal void CreateNewItem(string i_PageName) { m_LikedPagesItem = new LikedPagesItem(i_PageName); }