示例#1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            Messager.Caption = "C# Modality Worklist WCF Demo";
            Text             = Messager.Caption;

            try
            {
                _ConfigFile = DicomDemoSettingsManager.GetSettingsFilename("WCFClient");
                if (!File.Exists(_ConfigFile))
                {
                    DicomDemoSettingsManager.RunPacsConfigDemo();
                    if (!File.Exists(_ConfigFile))
                    {
                        Messager.Show(this, "No configuration file.\nApplication cannot continue without configuration", MessageBoxIcon.Warning, MessageBoxButtons.OK);
                        Close();
                    }
                }
                SetServiceClient();

                _introductionPage           = new IntroductionPage();
                _patientPage                = new PatientPage();
                _imagingServiceRequestPage  = new ImagingServiceRequestPage();
                _requestedProcedurePage     = new RequestedProcedurePage();
                _scheduledProcedureStepPage = new ScheduledProcedureStepPage();

                wizardSheet.Pages.Add(_introductionPage);
                wizardSheet.Pages.Add(_patientPage);
                wizardSheet.Pages.Add(_imagingServiceRequestPage);
                wizardSheet.Pages.Add(_requestedProcedurePage);
                wizardSheet.Pages.Add(_scheduledProcedureStepPage);
                wizardSheet.SetActivePage(0);
            }
            catch (Exception ex)
            {
                Messager.ShowError(this, ex.Message + "\r\n\r\nApplication will exit.");
                Application.Exit();
            }
        }
示例#2
0
        public App()
        {
            InitializeComponent();

            MainPage = new IntroductionPage();
        }