示例#1
0
        void addFile()
        {
            FormNomenclatureFile FNomenclatureFile = new FormNomenclatureFile();

            FNomenclatureFile.MdiParent    = DataForms.FClient;
            FNomenclatureFile.ID           = null;
            FNomenclatureFile.ParentFolder = openFolder;
            FNomenclatureFile.Show();
        }
示例#2
0
 void editFile()
 {
     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 == 1)
         {
             FormNomenclatureFile FNomenclatureFile = new FormNomenclatureFile();
             FNomenclatureFile.MdiParent    = DataForms.FClient;
             FNomenclatureFile.ID           = listView1.Items[listView1.SelectedIndices[0]].SubItems[3].Text.ToString();
             FNomenclatureFile.ParentFolder = openFolder;
             FNomenclatureFile.Show();
         }
     }
 }