Example #1
0
        void addFolder()
        {
            FormNomenclatureFolder FNomenclatureFolder = new FormNomenclatureFolder();

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