コード例 #1
0
ファイル: AddInOptions.cs プロジェクト: sakpung/webstudy
        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( );
            }
        }
コード例 #2
0
 void View_SaveChanges(object sender, EventArgs e)
 {
     AddInsSession.SaveAddInConfiguration( );
 }
コード例 #3
0
 void View_ViewConfigurationChanged(object sender, EventArgs e)
 {
     AddInsSession.OnAddInsConfigurationChanged( );
 }