예제 #1
0
        public void Configure
        (
            System.Windows.Forms.IWin32Window Parent,
            Leadtools.Dicom.AddIn.Common.ServerSettings Settings,
            string ServerDirectory
        )
        {
#if LEADTOOLS_V19_OR_LATER
            // do nothing
            if (RasterSupport.KernelExpired)
            {
                Leadtools.Demos.Support.SetLicense();
            }
#elif LEADTOOLS_V175_OR_LATER
            Leadtools.Demos.Support.SetLicense();
#else
            Leadtools.Demos.Support.Unlock(false);
#endif
            Leadtools.Dicom.DicomEngine.Startup( );

            Messager.Caption = Text;

            AddInsSession.SetLoadSettings(ServerDirectory, Settings.AETitle);

            AddInsSession.ConfigureSettings(Settings);

            AddInsSession.RegisterServices(Settings.ServiceName);

            try
            {
                new ShellController( ).Run( );
            }
            finally
            {
                Leadtools.Dicom.DicomEngine.Shutdown( );
            }
        }
 void View_SaveChanges(object sender, EventArgs e)
 {
     AddInsSession.SaveAddInConfiguration( );
 }
 void View_ViewConfigurationChanged(object sender, EventArgs e)
 {
     AddInsSession.OnAddInsConfigurationChanged( );
 }