Esempio n. 1
0
 private void newFolderToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (treeView1.SelectedNode != null && treeView1.SelectedNode.Tag != null)
     {
         NewFolderDlg dlg = new NewFolderDlg();
         if (dlg.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
         {
             ((TaskFolder)treeView1.SelectedNode.Tag).CreateFolder(dlg.FolderName);                     // Create folder under currently selected folder
             RefreshList();
         }
     }
 }
 private void newFolderToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (treeView1.SelectedNode != null && treeView1.SelectedNode.Tag != null)
     {
         NewFolderDlg dlg = new NewFolderDlg();
         if (dlg.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
         {
             ((TaskFolder)treeView1.SelectedNode.Tag).CreateFolder(dlg.FolderName); // Create folder under currently selected folder
             RefreshList();
         }
     }
 }