コード例 #1
0
        private void ManifestGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (ManifestGrid.Columns[e.ColumnIndex].Name != "View")
                return;

            string resultIndex = ManifestGrid.Rows[e.RowIndex].Cells["Index"].Value.ToString();
            int sourceIndex = int.Parse(resultIndex);

            Manifest selectedManifest = route.Manifests[sourceIndex];

            ManifestEditorDialog dialog = new ManifestEditorDialog(selectedManifest);
            dialog.ShowDialog();
        }
コード例 #2
0
        private void ManifestGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (ManifestGrid.Columns[e.ColumnIndex].Name != "View")
            {
                return;
            }

            string resultIndex = ManifestGrid.Rows[e.RowIndex].Cells["Index"].Value.ToString();
            int    sourceIndex = int.Parse(resultIndex);

            Manifest selectedManifest = route.Manifests[sourceIndex];

            ManifestEditorDialog dialog = new ManifestEditorDialog(selectedManifest);

            dialog.ShowDialog();
        }