Esempio n. 1
0
        void addFolder()
        {
            FormCounteragentFolder FCounteragentFolder = new FormCounteragentFolder();

            FCounteragentFolder.MdiParent = DataForms.FClient;
            FCounteragentFolder.ID        = null;
            FCounteragentFolder.Show();
        }
Esempio n. 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)
         {
             FormCounteragentFolder FCounteragentFolder = new FormCounteragentFolder();
             FCounteragentFolder.MdiParent = DataForms.FClient;
             FCounteragentFolder.ID        = listView1.Items[listView1.SelectedIndices[0]].SubItems[3].Text.ToString();
             FCounteragentFolder.Show();
         }
     }
 }