private void galleryView_ItemClick(object sender, DevExpress.XtraGrid.Views.WinExplorer.WinExplorerViewItemClickEventArgs e) { DmFile file = (DmFile)this.galleryView.GetRow(e.ItemInfo.Row.RowHandle); if (file.HasGeoLocation) { MapControl.SetCenterPoint(new GeoPoint(file.Latitude, file.Longitude), true); MapControl.ZoomLevel = MapControl.Layers[MapControl.Layers.Count - 1].MinZoomLevel; } }
private void winExplorerView1_ItemClick(object sender, DevExpress.XtraGrid.Views.WinExplorer.WinExplorerViewItemClickEventArgs e) { if (e.MouseInfo.Button == MouseButtons.Left) { var v = (DataRowView)winExplorerView1.GetRow(e.ItemInfo.Row.RowHandle); var path = v.Row.ItemArray[4].ToString(); //.Replace(".ini", ".bmp"); if (!string.IsNullOrEmpty(path)) { System.Diagnostics.Process.Start(path); } } }