Ejemplo n.º 1
0
        public FavoritesFolder AddChildFolder(string i_Name)
        {
            FavoritesFolder child = new FavoritesFolder();

            child.FolderName = i_Name;
            Nodes.Add(child);
            this.ExpandAll();
            return(child);
        }
        private void okButton_Click(object sender, EventArgs e)
        {
            FavoritedItem item = (FavoritedItem)m_FavoritesTreeView.SelectedNode;

            if (item == null)
            {
                item = (FavoritedItem)m_FavoritesTreeView.Nodes[0];
            }

            FavoritesFolder folder = item.Folder;

            SelectedFavoritesFolder = folder;
            DialogResult            = DialogResult.OK;
        }
        private void newFolderButton_Click(object sender, EventArgs e)
        {
            FavoritedItem item = (FavoritedItem)m_FavoritesTreeView.SelectedNode;

            if (item == null)
            {
                item = (FavoritedItem)m_FavoritesTreeView.Nodes[0];
            }

            FavoritesFolder folder = item.Folder;

            FavoritesFolder child = folder.AddChildFolder(m_NewFolderNameTextBox.Text);

            m_FavoritesTreeView.SelectedNode = child;

            m_NewFolderNameTextBox.Text = string.Empty;
        }
Ejemplo n.º 4
0
 public FavoritedPhoto(FavoritesFolder i_Folder) : base(i_Folder)
 {
 }
 public FavoritedFriend(FavoritesFolder i_Folder) : base(i_Folder)
 {
 }
        public FavoritedFacebookObject(FavoritesFolder i_Folder)
        {
            m_Folder = i_Folder;

            this.Text = "FavoritedFacebookObject";
        }
Ejemplo n.º 7
0
 public FavoritedCheckin(FavoritesFolder i_Folder) : base(i_Folder)
 {
 }
Ejemplo n.º 8
0
 public FavoritedAlbum(FavoritesFolder i_Folder) : base(i_Folder)
 {
 }
 private FavoritesSingleton()
 {
     Root            = new FavoritesFolder();
     Root.FolderName = "Favorites";
 }