Пример #1
0
        public void PublishFileToPersonal()
        {
            SelectFileForm dlg = new SelectFileForm();

            dlg.OnlyFolders = true;
            dlg.SetDataSource(treeTable);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                PublishFileIntoGroup(dlg.File as IGroup);
            }
        }
Пример #2
0
        public void AddSelectedShapes()
        {
            if (LibraryData.Personal == null)
            {
                MessageBox.Show("Personal Library is not configured.");
            }
            else
            {
                SelectFileForm dlg = new SelectFileForm();
                dlg.SetDataSource(treeTable);

                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    AddSelectedShapes(GetFile(dlg.File));
                }
            }
        }
Пример #3
0
        public void AddSlideOld()
        {
            if ((LibraryData.Personal == null || LibraryData.Personal.Files.Count == 0) &&
                (LibraryData.Shared == null || LibraryData.Shared.Files.Count == 0))
            {
                MessageBox.Show("The is no Customizable Libraries.");
            }
            else if (LibraryData.Personal.Files.Count == 1 && (LibraryData.Shared == null || LibraryData.Shared.Files.Count == 0))
            {
                AddSelectedSlides(LibraryData.Personal.Files[0]);
            }
            else
            {
                SelectFileForm dlg = new SelectFileForm();
                dlg.SetDataSource(treeTable);
                if (dlg.ShowDialog() == DialogResult.OK)
                {
//                    AddSelectedSlides(dlg.File);
                }
            }
        }