Ejemplo n.º 1
0
        void addFile()
        {
            FormCounteragentFile FCounteragentEdit = new FormCounteragentFile();

            FCounteragentEdit.MdiParent    = DataForms.FClient;
            FCounteragentEdit.ID           = null;
            FCounteragentEdit.ParentFolder = openFolder;
            FCounteragentEdit.Show();
        }
Ejemplo n.º 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)
         {
             FormCounteragentFile FCounteragentEdit = new FormCounteragentFile();
             FCounteragentEdit.MdiParent    = DataForms.FClient;
             FCounteragentEdit.ID           = listView1.Items[listView1.SelectedIndices[0]].SubItems[3].Text.ToString();
             FCounteragentEdit.ParentFolder = openFolder;
             FCounteragentEdit.ExcelTableID = listView1.Items[listView1.SelectedIndices[0]].SubItems[4].Text.ToString();
             FCounteragentEdit.Show();
         }
     }
 }