public void PublishFileToPersonal() { SelectFileForm dlg = new SelectFileForm(); dlg.OnlyFolders = true; dlg.SetDataSource(treeTable); if (dlg.ShowDialog() == DialogResult.OK) { PublishFileIntoGroup(dlg.File as IGroup); } }
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)); } } }
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); } } }