private void lvLinkedTo_DoubleClick(object sender, EventArgs e)
 {
     if (lvLinkedTo.SelectedItems != null)
     {
         if (lvLinkedTo.SelectedItems.Count > 0)
         {
             if (lvLinkedTo.SelectedItems[0].Group.Name.Equals(enterMainForm.View.Id.ToString()))
             {
                 if (lvLinkedTo.SelectedItems[0].Tag is string)
                 {
                     enterMainForm.LoadRecord(int.Parse((string)lvLinkedTo.SelectedItems[0].Tag));
                 }
             }
             else
             {
                 View view = enterMainForm.View.Project.GetViewById(int.Parse(lvLinkedTo.SelectedItems[0].Group.Name));
                 if (lvLinkedTo.SelectedItems[0].Tag is string)
                 {
                     int recordId = int.Parse((string)lvLinkedTo.SelectedItems[0].Tag);
                     enterMainForm.InvokeOpenView(view);
                     enterMainForm.LoadRecord(recordId);
                 }
             }
         }
     }
 }
Beispiel #2
0
 void mapControl_RecordSelected(int id)
 {
     enterMainForm.LoadRecord(id);
 }