protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing && _desktopWindow != null)
     {
         _desktopWindow = null;
     }
 }
Example #2
0
        public void thumbileChanged(IDisplaySet displayset)
        {
            DesktopWindow     desktopWindow = (DesktopWindow)base.Context.DesktopWindow;
            DesktopWindowView windowview    = (ClearCanvas.Desktop.View.WinForms.DesktopWindowView)desktopWindow.DesktopWindowView;

            Crownwood.DotNetMagic.Docking.Content content = windowview.DesktopForm.DockingManager.Contents["缩略图"];
            if (content == null)
            {
                return;
            }
            ClearCanvas.ImageViewer.Thumbnails.View.WinForms.ThumbnailComponentControl ctrol = (ClearCanvas.ImageViewer.Thumbnails.View.WinForms.ThumbnailComponentControl)content.Control;
            ctrol.getGallaryView().isDisplaySetChoose(displayset);
        }
Example #3
0
        private void btnDownImage_Click(object sender, EventArgs e)
        {
            List <string> l_list = new List <string> ();

            if (listView1.Items.Count > 0)
            {
                foreach (ListViewItem li in listView1.Items)
                {
                    if (li.Selected)
                    {
                        string PatientID = string.Format("{0}", li.SubItems[0].Text);
                        string Modality  = string.Format("{0}", li.SubItems[5].Text);
                        string StudyDate = string.Format("{0}", li.SubItems[4].Text);
                        //string strAccessnum = li.SubItems[8].Text;
                        string strAccessnum = li.SubItems[6].Text;
                        StudyDate = Convert.ToDateTime(StudyDate).ToShortDateString();
                        l_list.Add(strAccessnum);
                    }
                }
                GlobalData.RunParams.listAccessionNumber = l_list.ToArray();
                ClearCanvas.ImageViewer.ImageViewerComponent viewer = null;

                DesktopWindow desktopWindow = null;
                List <string> _filenames    = new List <string>();

                foreach (DesktopWindow window in ClearCanvas.Desktop.Application.DesktopWindows)
                {
                    foreach (Workspace space in window.Workspaces)
                    {
                        if (space.Title == "imageview")
                        {
                            desktopWindow = window;
                            viewer        = space.Component as ClearCanvas.ImageViewer.ImageViewerComponent;
                        }
                    }
                }
                if (viewer != null)
                {
                    DesktopWindowView windowview = (DesktopWindowView)desktopWindow.DesktopWindowView;
                    viewer.LoadHistoryStudyFromFtp(windowview.DesktopForm);
                }
            }
        }
 public override void SetModelObject(object modelObject)
 {
     _desktopWindow = (DesktopWindowView)modelObject;
 }