public override void OnSetActive(object sender, WizardCancelEventArgs e) { try { base.OnSetActive(sender, e); if (!e.Cancel) { if (null == RightBannerPictureBox.Image) { if (null != BannerImage) { RightBannerPictureBox.Image = BannerImage; } } } } catch (Exception exception) { System.Diagnostics.Debug.Assert(false, exception.Message); throw; } }
public override void OnSetActive(object sender, WizardCancelEventArgs e) { base.OnSetActive(sender, e); if (e.PreviousPage.GetType() == typeof(IntroductionPage)) { buttonQuery_Click(buttonQuery, EventArgs.Empty); } }
private void radWizard1_Previous(object sender, WizardCancelEventArgs e) { if (this.radWizard1.SelectedPage != this.radWizard1.CompletionPage && this.radWizard1.SelectedPage != this.wizardPage4) { return; } e.Cancel = true; this.radWizard1.SelectedPage = this.wizardPage3; }
public override void OnSetActive(object sender, WizardCancelEventArgs e) { base.OnSetActive(sender, e); labelUnscheduled.Visible = MainForm.Mpps.Patient != null; if (!labelUnscheduled.Visible) { UpdateUI(false); } SetControlsState(); }
private void radWizard1_Next(object sender, WizardCancelEventArgs e) { if (this.radWizard1.SelectedPage == this.wizardPage2 && !this.installationCompleted) { this.radLabelInstallation.Visible = true; this.radProgressBarInstallation.Visible = true; this.radWizard1.BackButton.Enabled = false; this.radWizard1.NextButton.Enabled = false; this.timerInstallation.Start(); e.Cancel = true; } }
public override void OnSetActive(object sender, WizardCancelEventArgs e) { base.OnSetActive(sender, e); if (e.PreviousPage != null && e.PreviousPage.GetType() == typeof(ImagingServiceRequestPage)) { ImagingServiceRequestPage p = e.PreviousPage as ImagingServiceRequestPage; ImagingServiceRequest o = _ImagingServiceRequest; _ImagingServiceRequest = p.ImagingServiceRequest; comboBoxRequestedId.Items.Clear(); // *** if ( (o == null) || (o.AccessionNumber != _ImagingServiceRequest.AccessionNumber) || (string.IsNullOrEmpty(comboBoxRequestedId.Text)) ) { ProgressDialog dlgProgresss = new ProgressDialog(); BrokerServiceClient client = GetWizard().Tag as BrokerServiceClient; List <string> ids = null; ids = new List <string>(); dlgProgresss.Title = "Find"; dlgProgresss.Description = "Getting list of requested procedure ids"; dlgProgresss.Action = () => { ids = client.GetRequestedProcedureIDs(_ImagingServiceRequest.AccessionNumber); }; UpdateUI(true); comboBoxRequestedId.Items.Clear(); if (dlgProgresss.ShowDialog(this) == DialogResult.OK) { foreach (string id in ids) { comboBoxRequestedId.Items.Add(id); } } if (dlgProgresss.Exception != null) { Messager.ShowError(this, dlgProgresss.Exception); } if (dlgProgresss.Exception != null) { Messager.ShowError(this, dlgProgresss.Exception); } } } }
private void RadWizardOnNext(object sender, WizardCancelEventArgs e) { RadWizard wizard = (RadWizard)sender; var page = wizard.SelectedPage; var groupBox = page.ContentArea.Controls.OfType <RadGroupBox>().FirstOrDefault(); var button = groupBox.Controls.OfType <RadRadioButton>().FirstOrDefault(x => x.IsChecked); if (button == null) { e.Cancel = true; } }
private void radWizard1_Next(object sender, WizardCancelEventArgs e) { if (this.radWizard1.SelectedPage != this.wizardPage3) { return; } e.Cancel = true; if (this.radRadioButtonCompletionPage1.ToggleState == ToggleState.On) { this.radWizard1.SelectedPage = this.radWizard1.CompletionPage; } else { this.radWizard1.SelectedPage = this.wizardPage4; } }
public override void OnSetActive(object sender, WizardCancelEventArgs e) { base.OnSetActive(sender, e); if (e.PreviousPage != null && e.PreviousPage.GetType() == typeof(PatientPage)) { PatientPage p = e.PreviousPage as PatientPage; Patient previous = _Patient; _Patient = p.Patient; comboBoxAccessionNumber.Items.Clear(); // *** if ( (previous == null) || (previous.IssuerOfPatientID != p.Patient.IssuerOfPatientID || previous.PatientID != p.Patient.PatientID) || string.IsNullOrEmpty(Program.MyMainForm.MyImagingServiceRequestPage.comboBoxAccessionNumber.Text)) { ProgressDialog dlgProgresss = new ProgressDialog(); CustomBrokerClient client = GetWizard().Tag as CustomBrokerClient; List <string> accessionNumbers = null; dlgProgresss.Title = "Find"; dlgProgresss.Description = "Getting list of accession numbers"; dlgProgresss.Action = () => { accessionNumbers = client.GetAccessionNumbers(_Patient.PatientID, _Patient.IssuerOfPatientID); }; UpdateUI(true); comboBoxAccessionNumber.Items.Clear(); if (dlgProgresss.ShowDialog(this) == DialogResult.OK) { foreach (string accessionNumber in accessionNumbers) { comboBoxAccessionNumber.Items.Add(accessionNumber); } } if (dlgProgresss.Exception != null) { Messager.ShowError(this, dlgProgresss.Exception); } } } errorProvider.SetIconAlignment(comboBoxAccessionNumber, ErrorIconAlignment.TopLeft); }
public override void OnSetActive(object sender, WizardCancelEventArgs e) { base.OnSetActive(sender, e); GetWizard().Option1Caption = "Clear"; if (_PatientKeys == null) { ProgressDialog dlgProgresss = new ProgressDialog(); CustomBrokerClient client = GetWizard().Tag as CustomBrokerClient; List <string> ids = null; dlgProgresss.Title = "Find"; dlgProgresss.Description = "Getting list of patient ids"; dlgProgresss.Action = () => { ids = client.GetPatientIDs(); }; if (dlgProgresss.ShowDialog(this) == DialogResult.OK) { _PatientKeys = new List <PatientKey>(); foreach (string id in ids) { string[] info = id.Split(';'); PatientKey key = new PatientKey() { PatientId = info[0], IssurerOfPatientId = info[1] }; _PatientKeys.Add(key); comboBoxPatientId.Items.Add(key); } } if (dlgProgresss.Exception != null) { string errorMessage = dlgProgresss.Exception.Message; if (errorMessage.Contains("There was no endpoint listening at")) { string append = string.Format("\n\nThis can happen if the '{0}' listening service is not running. To start '{0}' listening service:\n* Run 'CSLeadtools.Dicom.Server.Manager_Original.exe'\n* Click the double-green arrow (Start All Servers)", _worklistServer); errorMessage += append; } Messager.ShowError(this, errorMessage); } } }
private void wizardControl_Next(object sender, WizardCancelEventArgs e) { WizardPage currentPage = wizardControl.Pages.Where(x => x.IsSelected).FirstOrDefault(); if (currentPage == wizardWelcomePage) { if (!_welcomeControl.ValidateChildren()) { e.Cancel = true; return; } try { Cursor = Cursors.WaitCursor; _completionControl.DriverOrigination = _welcomeControl.PrintDriverLocation; _completionControl.Initialize(_welcomeControl.PrintDriverPaths); } finally { Cursor = Cursors.Default; } } }
public override void OnSetActive(object sender, WizardCancelEventArgs e) { base.OnSetActive(sender, e); LoadSequences(); }
private void importWizard_Next(object sender, WizardCancelEventArgs e) { ProcessNext(importWizard.Pages.Where(x => x.IsSelected).First()); e.Cancel = true; }
private void main_Wizard_Previous(object sender, WizardCancelEventArgs e) { _movingNext = false; }
private void main_Wizard_Next(object sender, WizardCancelEventArgs e) { _movingNext = true; }
public override void OnSetActive(object sender, WizardCancelEventArgs e) { base.OnSetActive(sender, e); UpdateUI(false); }