示例#1
0
 private void actionsGrid1_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     Logger.LogUserAction();
     EditAction();
 }
示例#2
0
 private void grdPatients_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     LoadAllResult();
 }
		private void objectsGrid_CellDoubleClick(object sender, RowActionEventArgs e)
		{
			if (objectsGrid.CurrentRow != null)
			{
				NuGenIValueFormatter valueFormatter = NuGenHelperFunctions.TaggedObjects[(int)objectsGrid.CurrentRow.Cells[2].Value] as NuGenIValueFormatter;

				if (valueFormatter != null)
				{
					NuGenUIHandler.Instance.ShowObjectInObjectViewer(ActiveFrame, valueFormatter.ValueRefresher, (string)objectsGrid.CurrentRow.Cells[0].Value);
				}
			}
		}
示例#4
0
 private void grdList_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     var document = grdList.GetRow().DataRow as Document;
     if (document != null)
     {
         string downloadPath = Path.Combine(Path.GetTempPath(), "CCHDocuments", document.Name);
         string directory = Path.GetDirectoryName(downloadPath);
         if (!Directory.Exists(directory))
         {
             Directory.CreateDirectory(directory);
         }
         _documentRepo.DownloadDocument(document.DocumentID, directory);
         Process.Start(downloadPath);
     }
 }
示例#5
0
 /// <summary>
 /// PinPoint the village
 /// </summary>
 private void GridExVillage_RowDoubleClick(object sender, RowActionEventArgs e)
 {
     if (e.Row.RowType == RowType.Record)
     {
         var row = e.Row.GetDataRow<PolygonDataSet.VILLAGERow>();
         World.Default.Map.EventPublisher.SelectVillages(null, row.Village, VillageTools.PinPoint);
         World.Default.Map.SetCenter(row.Village.Location);
     }
 }
		private void threadsGrid_CellDoubleClick(object sender, RowActionEventArgs e)
		{
			if (threadsGrid.CurrentRow != null)
			{
                GridEXRow row = threadsGrid.CurrentRow;
                ThreadWrapper thread = (ThreadWrapper)NuGenHelperFunctions.TaggedObjects[(String)row.Cells[1].Value + (String)row.Cells[2].Value];

				ChangeCurrentThread(thread);
			}
		}