示例#1
0
        void addFolder()
        {
            PracticeFolderForm pfForm = new PracticeFolderForm();

            pfForm.MdiParent  = Forms.FClient;
            pfForm.ThisIsNew  = true;
            pfForm.DataType   = Constants.TYPE_FOLDER_NEW;
            pfForm.ParentForm = this;
            pfForm.Show();
        }
示例#2
0
 void editFolder()
 {
     if (listView1.SelectedIndices.Count > 0)
     {
         if (listView1.Items[listView1.SelectedIndices[0]].SubItems[2].Text.ToString() == "Папка" &&
             listView1.Items[listView1.SelectedIndices[0]].SubItems[1].Text.ToString() != ".." &&
             listView1.SelectedItems[0].StateImageIndex == 0)
         {
             PracticeFolderForm pfForm = new PracticeFolderForm();
             pfForm.MdiParent  = Forms.FClient;
             pfForm.ThisIsNew  = false;
             pfForm.ID         = listView1.Items[listView1.SelectedIndices[0]].SubItems[3].Text;
             pfForm.DataType   = Constants.TYPE_FOLDER_EDIT;
             pfForm.ParentForm = this;
             pfForm.Show();
         }
     }
 }