コード例 #1
0
        private void OpenDir(ListView lV, string DirName)
        {
            CIncident incident = new CIncident();

            incident = GetIncFromListView(lV, DirName);
            if (System.IO.Directory.Exists(incident.GetIncID()))
            {
                Process.Start(incident.GetIncID());
            }
            else
            {
                MessageBox.Show("Err in name of directory");
            }
        }
コード例 #2
0
        private void OpenResurs(ListView lV, String dirName)
        {
            CIncident incident = new CIncident();

            incident = GetIncFromListView(lV, dirName);
            string a = incident.GetIncID();

            if (listBoxResources.SelectedItem != null)
            {
                if (System.IO.File.Exists(a + CIncident.resource + listBoxResources.SelectedItem.ToString()))
                {
                    Process.Start(a + CIncident.resource + listBoxResources.SelectedItem.ToString());
                }
            }
        }