Exemple #1
0
        public void mnuGroundMission_Click(object sender, RoutedEventArgs e)
        {
            structTransportCommonProperty CommonProperty = (structTransportCommonProperty)((System.Windows.Controls.MenuItem)sender).Tag;


            TDSClient.Forms.frmActivities frm = new Forms.frmActivities(CommonProperty);
            frm.Owner = Application.Current.MainWindow;
            frm.Show();

            //IEnumerable<GeneralActivityDTO> Activites = await TDSClient.SAGInterface.SAGSignalR.GetActivitesByAtomName(VMMainViewModel.Instance.SimulationHubProxy, CommonProperty.AtomName);

            //if(Activites!=null && Activites.Count()>0)
            //{
            //    GeneralActivityDTO pActivityDTO = Activites.ToArray<GeneralActivityDTO>()[0];
            //    TDSClient.Forms.frmRouteActivityRouting frm = new Forms.frmRouteActivityRouting(pActivityDTO);
            //    frm.Owner = Application.Current.MainWindow;
            //    frm.Show();
            //}
        }
Exemple #2
0
        public   void mnuGroundMission_Click(object sender, RoutedEventArgs e)
        {
            structTransportCommonProperty CommonProperty = (structTransportCommonProperty)((System.Windows.Controls.MenuItem)sender).Tag;


            TDSClient.Forms.frmActivities frm = new Forms.frmActivities(CommonProperty);
            frm.Owner = Application.Current.MainWindow;
            frm.Show();

            //IEnumerable<GeneralActivityDTO> Activites = await TDSClient.SAGInterface.SAGSignalR.GetActivitesByAtomName(VMMainViewModel.Instance.SimulationHubProxy, CommonProperty.AtomName);

            //if(Activites!=null && Activites.Count()>0)
            //{
            //    GeneralActivityDTO pActivityDTO = Activites.ToArray<GeneralActivityDTO>()[0];
            //    TDSClient.Forms.frmRouteActivityRouting frm = new Forms.frmRouteActivityRouting(pActivityDTO);
            //    frm.Owner = Application.Current.MainWindow;
            //    frm.Show();
            //}       
                    


        }