Пример #1
0
        public string AddFolder()
        {
            AddFolder cb = new AddFolder(GetFoldersCollection());

            bool?dialogResult = cb.ShowDialog();

            if (dialogResult.Value)
            {
                //save category
                if (cb.ParentFolder != null)
                {
                    return(pbData.AddFolder(cb.FolderName, false, cb.ParentFolder.Id));
                }
                else
                {
                    return(pbData.AddFolder(cb.FolderName, false));
                }
            }

            return(null);
        }