Ejemplo n.º 1
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            // initialize the controller
            _theController = new DeviceConfigurationController();

            // setup child controls
            GridPagerTop.InitializeGridPager(SR.GridPagerDeviceSingleItem, SR.GridPagerDeviceMultipleItems, DeviceGridPanel.TheGrid, delegate { return DeviceGridPanel.Devices.Count; }, ImageServerConstants.GridViewPagerPosition.Top);
            DeviceGridPanel.Pager = GridPagerTop;

            MoveConfirmation.Confirmed += delegate(object data)
                                              {

                    IList<Device> devices = data as IList<Device>;

                    StudyController studyController = new StudyController();
                    foreach (Study study in StudyGridView.StudyList)
                    {
                        foreach (Device device in devices)
                            studyController.MoveStudy(study, device);
                    }


                                              };

        }
Ejemplo n.º 2
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            // initialize the controller
            _theController = new DeviceConfigurationController();

            // setup child controls
            GridPagerTop.InitializeGridPager(SR.GridPagerDeviceSingleItem, SR.GridPagerDeviceMultipleItems, DeviceGridPanel.TheGrid, delegate { return DeviceGridPanel.Devices.Count; }, ImageServerConstants.GridViewPagerPosition.Top);
            DeviceGridPanel.Pager = GridPagerTop;

            MoveConfirmation.Confirmed += delegate(object data)
                                              {
                    MoveRequest moveData = MoveConfirmation.Data as MoveRequest;

                    StudyController studyController = new StudyController();

                    foreach(Device device in moveData.DestinationDevices)
                    {
                        studyController.MoveStudy(moveData.SelectedStudy, device, moveData.Series);                        
                    }

                                              };

        }