Ejemplo n.º 1
0
        private void cmdActivities_Click(object sender, RoutedEventArgs e)
        {
            int i = dtGridActors.SelectedIndex;

            if (i < 0)
            {
                return;
            }
            AtomDTOData currAtomData = (AtomDTOData)dtGridActors.Items[i];

            structTransportCommonProperty Tr = null;

            VMMainViewModel.Instance.colGroundAtoms.TryGetValue(currAtomData.atom.Identification, out Tr);
            if (Tr != null)
            {
                TDSClient.Forms.frmActivities frm = new Forms.frmActivities(Tr);
                frm.Owner = this;
                frm.Show();
            }
        }
Ejemplo n.º 2
0
        private void cmdActivities_Click(object sender, RoutedEventArgs e)
        {
            int i = dtGridActors.SelectedIndex;
            if (i < 0) return;
            AtomDTOData currAtomData = (AtomDTOData)dtGridActors.Items[i];

            structTransportCommonProperty Tr = null;
            VMMainViewModel.Instance.colGroundAtoms.TryGetValue(currAtomData.atom.Identification, out Tr);
            if (Tr != null)
            {
                TDSClient.Forms.frmActivities frm = new Forms.frmActivities(Tr);
                frm.Owner = this;
                frm.Show();
            }
        }